From owner-freebsd-current Fri Jun 7 23:26:24 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail-green.research.att.com (H-135-207-30-103.research.att.com [135.207.30.103]) by hub.freebsd.org (Postfix) with ESMTP id 9A7AF37B404 for ; Fri, 7 Jun 2002 23:26:21 -0700 (PDT) Received: from alliance.research.att.com (alliance.research.att.com [135.207.26.26]) by mail-green.research.att.com (Postfix) with ESMTP id 1B28F1E071 for ; Sat, 8 Jun 2002 02:26:21 -0400 (EDT) Received: from windsor.research.att.com (windsor.research.att.com [135.207.26.46]) by alliance.research.att.com (8.8.7/8.8.7) with ESMTP id CAA19002 for ; Sat, 8 Jun 2002 02:26:20 -0400 (EDT) From: Bill Fenner Received: (from fenner@localhost) by windsor.research.att.com (8.8.8+Sun/8.8.5) id XAA22903; Fri, 7 Jun 2002 23:26:19 -0700 (PDT) Message-Id: <200206080626.XAA22903@windsor.research.att.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: current@freebsd.org Subject: perl wrapper and PATH Date: Fri, 7 Jun 2002 23:26:18 -0700 Versions: dmail (solaris) 2.4c/makemail 2.9d 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 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