From owner-freebsd-questions Mon Feb 24 9:43:25 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86D6137B405 for ; Mon, 24 Feb 2003 09:43:23 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4445743FBD for ; Mon, 24 Feb 2003 09:43:21 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) by smtp.infracaninophile.co.uk (8.12.7/8.12.7) with ESMTP id h1OHhC5U050594 for ; Mon, 24 Feb 2003 17:43:12 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.7/8.12.7/Submit) id h1OHhC9W050593 for freebsd-questions@FreeBSD.ORG; Mon, 24 Feb 2003 17:43:12 GMT Date: Mon, 24 Feb 2003 17:43:12 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD 4.7 and buildkernel perl5 references Message-ID: <20030224174312.GB50266@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <5.2.0.9.0.20030224110602.00adf8f8@pop.swbell.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.0.9.0.20030224110602.00adf8f8@pop.swbell.yahoo.com> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-3.3 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, USER_AGENT,USER_AGENT_MUTT version=2.44 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Feb 24, 2003 at 11:10:33AM -0600, Sean O'Neill wrote: > Just curious if anyone knows why the kernel source has references to both > "perl5" as well as "perl" and if work is being done to make make the calls > to perl more standard e.g. using either "perl" or "perl5" everywhere. > > This isn't a problem but more of a one-time-annoyance. Right at the > beginning of the buildkernel stuff, the make runs "perl5" on a couple of > things. Further on it uses "perl" for other stuff. It's historic. In two senses. The distinction between 'perl' and 'perl5' dates back to when perl-4.036 was being superceded by perl-5.x and there were some incompatibilities that had to be smoothed over. (Of course, nowadays, it's all perl5 anyhow, but the distinction might as well remain to help disambiguate perl5 and the upcoming perl6...) The other reason that it's historic is that perl has been stripped out of the system sources in 5-CURRENT. This change is unlikely ever to be backported to the 4-STABLE tree, but on the other hand, no one is likely to put much effort into enhancing code that's slated for the chop in a few months time anyhow. > On my system, I removed all the old FreeBSD perl stuff. Apparently > buildkernel doesn't include /usr/localb/bin as part of its path so it > didn't find /usr/local/bin/perl5. Basically, it failed. Easy fix of > simply adding a symlink of /usr/bin/perl5 to /usr/local/bin/perl. Yeah --- I noticed that too. All it takes is installing one of the perl ports, running 'use.perl port', creating the perl5 symlink you mention, and you can compile with 'NO_PERL=yes' and delete all of the system supplied perl-5.005.03 stuff. Unfortunately you need to keep /usr/bin/perl5 as the original system perl binary if you want the capability to switch back and forth between the system and port versions of perl. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message