Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jul 2000 15:23:50 +0200
From:      Anton Berezin <tobez@plab.ku.dk>
To:        Mike Meyer <mwm@mired.org>
Cc:        current@FreeBSD.ORG
Subject:   Re: perl vs. LOCALBASE, again
Message-ID:  <20000731152350.U48988@plab.ku.dk>
In-Reply-To: <14724.55841.514697.67191@guru.mired.org>; from mwm@mired.org on Sun, Jul 30, 2000 at 08:45:05PM -0500
References:  <14724.55841.514697.67191@guru.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 30, 2000 at 08:45:05PM -0500, Mike Meyer wrote:

> Basically, the problem is that ports that install Perl modules ignore
> LOCALBASE for the perl modules. A little bit of investigation turns up
> /usr/libdata/perl/5.6.0/Config.pm, which has "/usr/local" wired
> through it as a prefix for nearly everything.

> I suspect the ideal situation would be for the Perl module installer
> to detect (how?) to try and sniff LOCALBASE out of /etc/make.conf if
> this is part of a port install. If that works, use LOCALBASE.
> Otherwise, use the default Config.pm values. People who want that
> default to be something other than /usr/local can then change those
> values themselves.

IMHO, the easiest thing to do would be to modify the Config.pm itself.
For example, it might look for, say, PERL_USE_PREFIX environment
variable and change its %Config accordingly.  Then the Makefiles in p5
ports will just set this variable to whatever LOCALBASE is, before
invoking perl Makefile.PL.

There is another problem with your idea, though.  Such Perl modules will
not be found by perl unless PERL5LIB points to the right place, i.e.
your installed p5 ports will not work out of the box.  That is pretty
bad, and setting PERL5LIB globally will not help much since at least
some people set it to their private directories without spelling
PERL5LIB=$PERL5LIB:bla mantra.

> Is there someone who can *fix* this?

Cheers,
-- 
Anton Berezin <tobez@plab.ku.dk>
The Protein Laboratory, University of Copenhagen


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?20000731152350.U48988>