pkgsrc-Users archive

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

Re: pkgin not respecting LOCALBASE



On 05/03/2019 00:43, Greg Troxel wrote:
Mike Pumford <mpumford%mudcovered.org.uk@localhost> writes:

Just built packages for my 7.2_STABLE system which still has LOCALBASE
set to /usr/local

Not what you asked, but why are you doing that?   I believe you can get
a system to work that way (and on mac the norm is /opt/pkg), but
especially if you are not a pkgsrc wizard I suspect you'll have a better
time using the default LOCALBASE.


Its historical the system is old enough that when I started building packages for it /usr/local was actually the default for LOCALBASE and its been easier to preserve that rather than worry about moving all the config and data from /usr/local to /usr/pkg

There was no mixing of tools built for /usr/pkg and /usr/local everything was build in a clean chroot using pkgcomp1 with LOCALBASE set from the beginning. I do my builds under jenkins so I have the complete compilation output. Looking back to the beginning of the log LOCALBASE is clearly set even when pkgcomp is building cwrapper for libkver (the chroot host is 8.0 stable).

Heres a link output from the very start of the build:
gcc -L/pkg_comp/obj/pkgsrc/pkgtools/cwrappers/default/libnbcompat -Wl,-R/usr/local/lib -o ld-wrapper alloc.o cleanup-cc.o common.o reorder-cc.o generic-transform-ld.o normalise-ld.o ld-wrapper.o -Wl,-rpath-link,/lib -L=/lib -lnbcompat

This clearly shows /usr/local being used for binaries and setting LOCALBASE used to be sufficient to move /usr/pkg/etc to /usr/local/etc has that now changed? If so thats a fairly big change that I'd have expected to see mentioned on one of the pkgsrc mailing lists.

Mike


Home | Main Index | Thread Index | Old Index