Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jun 2002 23:26:18 -0700
From:      Bill Fenner <fenner@research.att.com>
To:        current@freebsd.org
Subject:   perl wrapper and PATH
Message-ID:  <200206080626.XAA22903@windsor.research.att.com>

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

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.

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.

  Bill

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?200206080626.XAA22903>