pkgsrc-Users archive

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

Re: pkgin not respecting LOCALBASE



On 2019-03-05 00:26, Mike Pumford wrote:
Just built packages for my 7.2_STABLE system which still has LOCALBASE
set to /usr/local

All the packages (including pkgin) are correctly installed in
/usr/local/bin but pkgin is taking its config from:

/usr/pkg/etc/pkgin/repositories.conf

# strings /usr/local/bin/pkgin  | grep '/usr/pkg'
You probably want to modify /usr/pkg/etc/pkgin/repositories.conf.
/usr/pkg/etc/pkgin/repositories.conf has no repositories or does not exist.
/usr/pkg/etc/pkgin/repositories.conf
/usr/pkg/etc/pkgin/preferred.conf

This is my first build with a new build environment so I could have
screwed something up but everything else in in /usr/local so that
seems unlikely. Am I missing something?

It is easy to work round but it would be nice to fix the inconsistency. :)

Actually on further digging its much worse. Apache also seems to be
looking for config in /usr/pkg and fontconfig I think is looking for
fontdata there. I've pretty much had to symlink /usr/pkg to /usr/local
to make the packages work and get the system running again.

For reference I used a mk.conf fed into pkgcomp1 containing:

ACCEPTABLE_LICENSES+= xv-license
ACCEPTABLE_LICENSES+= mozilla-trademark-license
ACCEPTABLE_LICENSES+= lame-license

PKG_APACHE_DEFAULT=apache24
DEPENDS_TARGET=package-install
UPDATE_TARGET=package-install
X11_TYPE=native
LOCALBASE=/usr/local
MAKE_JOBS=8

LOCALBASE was respected for executable path but seems to be being
universally ignored for config in /usr/local/etc even though the
manual pages still say that's where it should be.

Mike

Hi!

It looks like you built packages using the tools build with LOCALBASE=/usr/pkg. I don't know if this is supported, but I tried it a few years back and it never worked for me.

Building from scratch (i.e. bootstraping the tools with the proper LOCALBASE) though always worked:

    a@nl1mcl-506669:~$ uname -a
Darwin nl1mcl-506669 17.7.0 Darwin Kernel Version 17.7.0: Thu Dec 20 21:47:19 PST 2018; root:xnu-4570.71.22~1/RELEASE_X86_64 x86_64
    a@nl1mcl-506669:~$ strings /pkg/bin/pkgin  | grep /usr/pkg
    <nothing>

    root@mmpos-server:/usr/pkgsrc/pkgtools/pkgin# uname -a
Linux mmpos-server 4.4.0-42-generic #62-Ubuntu SMP Fri Oct 7 23:11:45 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux root@mmpos-server:/usr/pkgsrc/pkgtools/pkgin# strings /pkg/bin/pkgin | grep /usr/pkg
    <nothing>

Btw, I personally always build with LOCALBASE=/pkg - that way it's the same on Mac, Linux & Dragonfly ;-).

--
Aleksej Lebedev


Home | Main Index | Thread Index | Old Index