From owner-freebsd-current Sun Jun 9 3:57:11 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail-relay1.yahoo.com (mail-relay1.yahoo.com [216.145.48.34]) by hub.freebsd.org (Postfix) with ESMTP id 375C337B408 for ; Sun, 9 Jun 2002 03:57:06 -0700 (PDT) Received: from FreeBSD.org (12-234-90-219.client.attbi.com [12.234.90.219]) by mail-relay1.yahoo.com (Postfix) with ESMTP id ED3A98B5C1; Sun, 9 Jun 2002 03:57:05 -0700 (PDT) Message-ID: <3D033481.AE78818C@FreeBSD.org> Date: Sun, 09 Jun 2002 03:57:05 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.79 [en] (X11; U; FreeBSD 4.6-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Bill Fenner Cc: current@FreeBSD.ORG Subject: Re: perl wrapper and PATH References: <200206080626.XAA22903@windsor.research.att.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Bill Fenner wrote: > > I know that the specific mergemaster issues have been addressed, but I > thought this experience pointed out something subtly astonishing, so I > figured I'd point it out. > > I ran mergemaster, and the perl wrapper started complaining that I > needed to install perl, so I did "pkg_add -r perl". The port talked > all about "use.perl port" or "use.perl system", but I figured > "system" was "wrapper" so I didn't bother running use.perl . I tried > "perl -de 0", and voila, I had perl. So I ran mergemaster again, > and the wrapper started complaining again that I needed to install > perl. > > Turns out that mergemaster sets a restrictive PATH, and the wrapper > (apparently) looks for the "real" perl in the PATH. This can be > awfully confusing -- "/usr/bin/perl" works, but "env PATH=/usr/bin perl" > doesn't work. Actually in the case of the old mergemaster, I don't think even /usr/bin/perl would have worked, since PATH would still exclude /usr/local/bin, therefore the wrapper wouldn't have found it. > I ran "use.perl port", and that gave me a working perl for mergemaster. > Interestingly, "use.perl system" didn't give me back the perl wrapper; > I'm not sure what I got. Sigh. I think I have a new version of use.perl that will handle this problem. I'm fixin' to post the patch. Doug -- "We have known freedom's price. We have shown freedom's power. And in this great conflict, ... we will see freedom's victory." - George W. Bush, President of the United States State of the Union, January 28, 2002 Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message