Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2001 21:40:03 +0000
From:      Thomas Hurst <tom.hurst@clara.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/32234: Perl ports not $LOCALBASE clean
Message-ID:  <20011127214003.GA61073@sploo.aagh.net>
In-Reply-To: <20011127221457.B38343@heechee.tobez.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>

next in thread | previous in thread | raw e-mail | index | archive | help
* 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011127214003.GA61073>