Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2002 21:45:07 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Mark Murray <markm@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   TO MARK MURRAY, perldoc(1) IS BROKEN :)
Message-ID:  <20020412184507.GF61841@sunbay.com>

next in thread | raw e-mail | index | archive | help

--WkfBGePaEyrk4zXB
Content-Type: multipart/mixed; boundary="Wb5NtZlyOqqy58h0"
Content-Disposition: inline


--Wb5NtZlyOqqy58h0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Here's the repost of my previous posting.


--=20
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

--Wb5NtZlyOqqy58h0
Content-Type: message/rfc822
Content-Disposition: inline

Date: Wed, 27 Mar 2002 18:43:37 +0200
From: Ruslan Ermilov <ru@FreeBSD.org>
To: Mark Murray <markm@FreeBSD.org>, Hiten Pandya <hiten@uk.FreeBSD.org>
Cc: Juriy Goloveshkin <j@gu.ru>, 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

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

--Wb5NtZlyOqqy58h0--

--WkfBGePaEyrk4zXB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8tyszUkv4P6juNwoRArD8AJ4z6vHhUOcqrGXAlxJkdgToT4+MCgCfTK1v
mJ26kqNTm0OosQsZMVKiqsM=
=LuuW
-----END PGP SIGNATURE-----

--WkfBGePaEyrk4zXB--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020412184507.GF61841>