From owner-freebsd-current Wed Mar 27 8:44:10 2002 Delivered-To: freebsd-current@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 2FB4B37B41B; Wed, 27 Mar 2002 08:43:57 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g2RGhbj31391; Wed, 27 Mar 2002 18:43:37 +0200 (EET) (envelope-from ru) Date: Wed, 27 Mar 2002 18:43:37 +0200 From: Ruslan Ermilov To: Mark Murray , Hiten Pandya Cc: Juriy Goloveshkin , current@FreeBSD.org Subject: Re: perldoc broken? Message-ID: <20020327164337.GB10537@sunbay.com> References: <20020327142831.A3927@hpdi.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020327142831.A3927@hpdi.ath.cx> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Mar 27, 2002 at 02:28:31PM +0000, Hiten Pandya wrote: > > vaio@juriy[~]> perldoc open > > /usr/local/bin/pod2man: not found > > Can't open /var/tmp/tmp.0.lXkGaq: File exists at /usr/bin/perldoc line 351. > > For some odd reason, it doesn't show up, because the $bindir in: > src/contrib/perl5/utils/perldoc.PL (line 375) > > is changed to (or is) /usr/local/bin. You can issue yourself a temp. > fix by changing the $bindir variable on line 335 of /usr/bin/perldoc to > /usr/bin. Your final line should look like this: > > open('/usr/bin', 'pod2man'); ... and the rest ... > > Although you can make the actual change in the perldoc.PL file and then > rebuild the utilties.. (in /usr/src/contrib/perl5), but this is how it > can be done.. I solved it this way.. but I may be wrong.. ;) > > After this, you should be able to run 'perldoc open' nicely without > glitches.. hehe. > The actual problem is how Perl 5.6.1 was configured for FreeBSD. `grep config_args gnu/usr.bin/perl/libperl/config.SH-elf.i386' for details. The problem seems to be due to -Dprefix=/usr/local as opposed to the right -Dprefix=/usr. The following minimalistic patch should fix it (i386 version only), though the proper fix is to re-configure and re-commit all such files: %%% Index: config.SH-elf.i386 =================================================================== RCS file: /home/ncvs/src/gnu/usr.bin/perl/libperl/config.SH-elf.i386,v retrieving revision 1.22 diff -u -p -u -r1.22 config.SH-elf.i386 --- config.SH-elf.i386 16 Mar 2002 21:36:07 -0000 1.22 +++ config.SH-elf.i386 27 Mar 2002 16:29:29 -0000 @@ -655,8 +655,8 @@ plibpth='' pm_apiversion='5.005' pmake='' pr='' -prefix='/usr/local' -prefixexp='/usr/local' +prefix='/usr' +prefixexp='/usr' privlib='/usr/libdata/perl/5.6.1' privlibexp='/usr/libdata/perl/5.6.1' prototype='define' @@ -686,8 +686,8 @@ sPRIu64='"llu"' sPRIx64='"llx"' sSCNfldbl='"Lf"' sched_yield='sched_yield()' -scriptdir='/usr/local/bin' -scriptdirexp='/usr/local/bin' +scriptdir='/usr/bin' +scriptdirexp='/usr/bin' sed='sed' seedfunc='srand48' selectminbits='32' %%% Cheers, -- Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message