Date: Tue, 27 Nov 2001 23:12:39 +0100 From: Anton Berezin <tobez@tobez.org> To: Thomas Hurst <tom.hurst@clara.net> Cc: freebsd-ports@FreeBSD.org, FreeBSD-gnats-submit@freebsd.org Subject: Re: ports/32234: Perl ports not $LOCALBASE clean Message-ID: <20011127231239.E38343@heechee.tobez.org> In-Reply-To: <20011127214003.GA61073@sploo.aagh.net>; from tom.hurst@clara.net on Tue, Nov 27, 2001 at 09:40:03PM %2B0000 References: <E167NZm-000PtM-00@sploo.aagh.net> <20011127222334.D38343@heechee.tobez.org> <20011127214539.GB61073@sploo.aagh.net> <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> <20011127214003.GA61073@sploo.aagh.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 27, 2001 at 09:45:39PM +0000, Thomas Hurst wrote: > * Anton Berezin (tobez@tobez.org) wrote: > > > On Fri, Nov 23, 2001 at 09:09:34PM +0000, Thomas Hurst wrote: > > > > > Additionally, the build of world seems to ignore $LOCALBASE in > > > setting the compiled-in value of @INC in perl, so if the modules > > > *were* installed in the correct location they wouldn't actually > > > work. Sigh :) > > > > I do not think it is a good idea to make perl world build aware of > > port-specific LOCALBASE variable. > > Port-specific? LOCALBASE isn't port specific (which suggests specific > to a single port), it's global for the entire ports tree. No, I meant port specific as opposed to base system specific (or system wide). > > I guess this can be discussed but I really think that for this one you > > might be better off specifying PERL5LIB in your /etc/login.conf using > > setenv capability. > > This is ignored when perl's in taint mode or suid, relying on the > compiled-in @INC; if I have ports set to install to /usr/pkg (this being > the entire reason I noticed this issue), Perl won't use them, despite > that being a trusted location. I see. Well, how about SITEPERL tunable in /etc/make.conf, which would alter perl's notion of sitelib and sitearch, and default to /usr/local? One will have to rebuild world (or at least perl) to take advantage of it, but on the other hand, people who set LOCALBASE to anything different from /usr/local are expected to know what they are doing. On Tue, Nov 27, 2001 at 09:40:03PM +0000, Thomas Hurst wrote: > 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. I see indeed. +Anton. -- | Anton Berezin | FreeBSD: The power to serve | | catpipe Systems ApS _ _ |_ | http://www.FreeBSD.org | | tobez@catpipe.net (_(_|| | tobez@FreeBSD.org | | +45 7021 0050 | Private: tobez@tobez.org | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011127231239.E38343>