Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Jul 2002 22:44:31 -0500
From:      Sean O'Neill <sean@seanoneill.info>
To:        freebsd-questions@FreeBSD.org
Subject:   Question relating to Perl modules and ports that needs them
Message-ID:  <5.1.0.14.0.20020726222923.00af9830@postoffice.swbell.net>

next in thread | raw e-mail | index | archive | help
Lets say I've installed several Perl p5 ports into the directory 
/usr/local/perl-modules/.... by modifying the PREFIX variable just prior to 
their configuration/installation.  Apps that need them work fine because I 
have the PERL5LIB variable setup to update @INC appropriately.

Now, let's say I want upgrade a port (say webmin in this case).  I don't 
want PREFIX predefined before I try to upgrade webmin.  I want webmin going 
to its normal installation area of /usr/local/...

Unfortunately, without PREFIX defined the webmin port looks in 
/usr/local/lib/perl5 for the Perl modules its dependant on - and not in 
/usr/local/perl-modules/... where the modules are actually installed.  I 
know this has to do with these lines in the Makefile:

RUN_DEPENDS= 
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay 
\
${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Authen/PAM.pm:${PORTSDIR}/security/p5-Authen-PAM

So my question - is there anyway to have webmin still get installed in 
/usr/local/..... and the make process look for the Perl modules in 
/usr/local/perl-modules ??

I'm pretty sure /usr/ports/Mk/bsd.port.mk is where $LOCALBASE is being 
defined but I don't know if there is anything I can do without manually 
editing the Makefile file.

Any thoughts ?


--
........................................................
......... ..- -. .. -..- .-. ..- .-.. . ... ............
.-- .. -. -... .-.. --- .-- ... -.. .-. --- --- .-.. ...

Sean O'Neill


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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