From owner-freebsd-current Sat May 25 5:54:26 2002 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 963E337B401 for ; Sat, 25 May 2002 05:54:20 -0700 (PDT) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 57748535E; Sat, 25 May 2002 14:54:14 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Peter Wemm Cc: current@FreeBSD.ORG Subject: Re: i386 tinderbox failure References: <20020525063255.B16483807@overcee.wemm.org> From: Dag-Erling Smorgrav Date: 25 May 2002 14:54:13 +0200 In-Reply-To: <20020525063255.B16483807@overcee.wemm.org> Message-ID: Lines: 28 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Peter Wemm 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