tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Hardcoded paths in perl package

On Sat, Mar 03, 2012 at 03:23:00AM +0000, John Klos wrote:
 > While trying to figure out why perl won't compile on VAX (netbsd-5,
 > pkgsrc-2011Q4), I noticed some hardcoded paths. My mk.conf has
 > LOCALBASE set to /usr/local.
 > ...
 > Any additional ld flags (NOT including libraries)?
 > [ -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/local/lib
 > -fstack-protector -L/usr/local/lib]
 > ...
 > cc -o generate_uudmap -Wl,-rpath,/usr/pkg/lib -fstack-protector
 > generate_uudmap.o -lm -lcrypt
 > ...
 > LD_LIBRARY_PATH=/usr/pkgsrc/lang/perl5/work/perl-5.14.2 cc
 > -Wl,-rpath,/usr/pkg/lib -fstack-protector -o miniperl    gv.o
 > toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o
 > keywords.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o
 > pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o
 > globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o
 > pp_sort.o    miniperlmain.o opmini.o perlmini.o -lm -lcrypt
 > ...
 > LD_LIBRARY_PATH=/usr/pkgsrc/lang/perl5/work/perl-5.14.2 cc -o perl
 > -Wl,-rpath,/usr/pkg/lib -fstack-protector -Wl,-E
 > -Wl,-R/usr/local/lib/perl5/5.14.0/vax-netbsd/CORE perlmain.o  -L.
 > -lperl `cat ext.libs` -lm -lcrypt
 > ...
 > cc -o a2p -Wl,-rpath,/usr/pkg/lib -fstack-protector hash.o  str.o
 > util.o walk.o a2p.o -lm -lcrypt
 > ...
 > It doesn't seem to cause any problems, but I just thought someone
 > might like to know.

The string /usr/pkg doesn't appear anywhere under lang/perl5 that I
can see. I'm not sure you can just set LOCALBASE and expect things to
work without also bootstrapping...

David A. Holland

Home | Main Index | Thread Index | Old Index