Current-Users archive

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

Re: [HEADS UP] pkgsrc default database directory changed



On Wed, 2 Dec 2020, Thomas Klausner wrote:

On Wed, Dec 02, 2020 at 02:57:01PM -0800, Paul Goyette wrote:
On Wed, 2 Dec 2020, Thomas Klausner wrote:

On Wed, Dec 02, 2020 at 11:28:41AM +0100, Thomas Klausner wrote:
The new default for the pkgsrc database (which contains information
about all installed packages) in pkgsrc-HEAD has changed from
/var/db/pkg to ${PREFIX}/pkgdb (so usually /usr/pkg/pkgdb).

Since some people have trouble installing a new pkg_install from
pkgsrc (because it depends on cwrappers, which depends on pkg_install)
- the easiest way to get a new pkg_install from pkgsrc is this:

cd /usr/pkgsrc/pkgtools/pkg_install
make USE_CWRAPPERS=no install

That will build pkg_install without cwrappers.

I suggest replacing /usr/sbin/pkg_* with /usr/pkg/sbin/pkg_* after
this succeeds to avoid further problems.

(I'm one of the "somple haqve trouble installing..." mentioned above!)

Well, that's a bit of a problem for me.  I'm building everything in
a chroot to a freshly-created sandbox (from sysutils/mksandbox) and
/usr is a read-only null-mount file-system.  So I cannot copy the
pkgsrc images to the "real" system.  (And I'm not sure I would want
to be able to affect the "real" system's /usr/bin/ from within the
chroot sandbox.)

You can cp it outside the sandbox... and use pkg_install.conf if you
want to keep using the old database directory.

This is just getting too complicated.  Too many manual steps, and too
many changes to too many long-established procedures.

It sounds to me like this was not very well thought out and not very
well tested (in sufficient environments) before the change was made.

FWIW, I also don't remember ever seeing any discussion of this change
being made on any non-pkgsrc lists.  (If it was discusssed, and I
simply missed it, skip this paragraph!)  Since you've changed defaults
withing programs in the base system, a discussion on tech-userlevel
would probably have been appropriate (in addition to any relevant
pkgsrc lists).



+--------------------+--------------------------+-----------------------+
| Paul Goyette       | PGP Key fingerprint:     | E-mail addresses:     |
| (Retired)          | FA29 0E3B 35AF E8AE 6651 | paul%whooppee.com@localhost     |
| Software Developer | 0786 F758 55DE 53BA 7731 | pgoyette%netbsd.org@localhost   |
+--------------------+--------------------------+-----------------------+


Home | Main Index | Thread Index | Old Index