From owner-freebsd-ports Tue Nov 27 13:40:14 2001 Delivered-To: freebsd-ports@freebsd.org Received: from sploo.aagh.net (pc2-hart4-0-cust103.mid.cable.ntl.com [213.107.122.103]) by hub.freebsd.org (Postfix) with ESMTP id 5B04B37B41C for ; Tue, 27 Nov 2001 13:40:09 -0800 (PST) Received: from freaky by sploo.aagh.net with local (Exim 3.33 #1) id 168pxT-000FwA-00 for freebsd-ports@FreeBSD.org; Tue, 27 Nov 2001 21:40:03 +0000 Date: Tue, 27 Nov 2001 21:40:03 +0000 From: Thomas Hurst To: freebsd-ports@FreeBSD.org Subject: Re: ports/32234: Perl ports not $LOCALBASE clean Message-ID: <20011127214003.GA61073@sploo.aagh.net> Mail-Followup-To: freebsd-ports@FreeBSD.org References: <200111240315.fAO3Fgd22633@freefall.freebsd.org> <20011127172040.G32687@heechee.tobez.org> <20011127122059.B55012@squall.waterspout.com> <20011127183533.C35261@heechee.tobez.org> <20011127183147.GB58337@sploo.aagh.net> <20011127221457.B38343@heechee.tobez.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011127221457.B38343@heechee.tobez.org> User-Agent: Mutt/1.3.23.2i Organization: Not much. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Anton Berezin (tobez@tobez.org) wrote: > On Tue, Nov 27, 2001 at 06:31:47PM +0000, Thomas Hurst wrote: > > > Does BSDPAN also fix world's perl setup so @INC always contains the > > ports tree dir? > > Did you mean to say `has sitelib and sitearch before privlib and > archlib in @INC' ? No, I mean: -% perl -e 'foreach (@INC) { print "$_\n"}' /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . With LOCALBASE set to /usr/pkg, and having perl ports going in there instead of /usr/local, perl will no longer detect them. > If yes, then the answer is no. BSDPAN could easily do that, but that > would only work for the modules BSDPAN overrides. I should add that > nothing short of changing the @INC for the system perl itself will > solve this problem. This is what I'm refering to. Yes, I can set PERL5LIB and so, but Perl ignores this in both taint mode and when suid, relying instead on the compiled-in @INC. This isn't desirable behaviour, since /usr/pkg is just as trustworthy as /usr/local. -- Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message