tech-pkg archive

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

Re: PKG_DBDIR and pbulk



On Tue, Sep 21, 2021 at 08:14:16AM -0400, Greg Troxel wrote:
> 
> Manuel Bouyer <bouyer%antioche.eu.org@localhost> writes:
> 
> > Hello,
> > for the new upcoming branch we tried to switch PKG_DBDIR from /var/db/pkg
> > to /usr/pkg/pkgdb on the TNF build cluster.
> > cwrappers has been built, but then digest fails with:
> > ===> Installing dependencies for digest-20190127
> > => Build dependency cwrappers>=20150314: NOT found
> > => Verifying /nonexistent for ../../pkgtools/cwrappers
> > make[1]: don't know how to make /nonexistent. Stop
> 
> I am guessing a bit here but hope it's helpful.  Please straighten me
> out where I'm off.
> 
> Let's assume we are talking about 9 amd64 first, even though I think all
> 4 cases (8,9)x(i386,amd64) are the same.
> 
> I am assuming that you have started in a state where /var/db/pkg does
> not exist at all.

it exists, but is empty

> 
> I think we have a situation where the system has a 9.0 userland and 9.0
> kernel.  (Perhaps it's updated past some fixes for xen issues or threads
> provoked by rust issues.)  This means that the pkg_install that is part
> of base, or at least what's put int he chroot, is going to be hard-coded
> for /var/db/pkg.

true

> 
> So, I think that any system with older pkg_foo that is going to build
> recent pkgsrc, needs to have PKG_DBDIR=/usr/pkg/pkgdb in
> /etc/pkg_install.conf, so that the older tools look in the new place.

/etc/pkg_install.conf do have PKG_DBDIR=/usr/pkg/pkgdb, as well as
/etc/mk.conf

So something else is going wrong ...

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index