Date: 25 May 2002 14:54:13 +0200 From: Dag-Erling Smorgrav <des@ofug.org> To: Peter Wemm <peter@wemm.org> Cc: current@FreeBSD.ORG Subject: Re: i386 tinderbox failure Message-ID: <xzpvg9c8k22.fsf@flood.ping.uio.no> In-Reply-To: <20020525063255.B16483807@overcee.wemm.org> References: <20020525063255.B16483807@overcee.wemm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter Wemm <peter@wemm.org> writes: > Indeed it is installed. Note that you have exposed a fundamental bug > in the perl wrapper. It only searches $PATH, and /usr/local/bin is not > in $PATH for many system tools (eg: pkg_add -r). How about this: Index: perl.c =================================================================== RCS file: /home/ncvs/src/usr.bin/perl/perl.c,v retrieving revision 1.2 diff -u -u -r1.2 perl.c --- perl.c 18 May 2002 05:33:28 -0000 1.2 +++ perl.c 25 May 2002 12:52:43 -0000 @@ -59,5 +59,6 @@ if (errno != ENOENT) err(1, "%s", path); } + execve("/usr/local/bin/perl", argv, environ); errx(1, "Perl is not installed, try 'pkg_add -r perl'"); } Of course, it won't work if Perl was installed with a non-standard PREFIX. DES -- Dag-Erling Smorgrav - des@ofug.org 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?xzpvg9c8k22.fsf>