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 Mon, 7 Dec 2020 at 13:18, Thomas Klausner <wiz%gatalith.at@localhost> wrote:
>
> On Mon, Dec 07, 2020 at 06:53:57PM +0700, Robert Elz wrote:
> >     Date:        Mon, 7 Dec 2020 11:38:14 +0100
> >     From:        Thomas Klausner <wiz%gatalith.at@localhost>
> >     Message-ID:  <20201207103814.xbnkdiwpzo6xlwy3%yt.nih.at@localhost>
> >
> >   | > 2) requires a more recent pkg_install than the one from NetBSD 9.1
> >   |
> >   | That is correct. If you are on any currently supported release you
> >   | will have to manually update pkg_install first before using pkgsrc.
> >
> > Actually, no, that shouldn't be needed - something needs to manually be
> > done, but it doesn't need to be that one, (it is non trivial).
> >
> > Either symlinking the old pgkdb to the new one, or adding
> >       PKG_DBDIR=/usr/pkg/pkgdb
> > (or whevever it will be placed) in /etc/pkg_install.conf (which probably
> > doesn't exist, so that one line will be all it contains .. the line should
> > be at the left margin - might not be required, but works if it is).
> >
> > Either of those is much easier than replacing the old pkg_install just
> > for this change.  After doing either (on NetBSD) the system pkg_install
> > set of tools will all work just fine with the relocated pkg database.
>
> While that is true, pkgsrc will insist on using pkg_install 20200828
> or newer, so if you want to build packages from source, you'll still
> have to update your installed pkg_install.

Agreed, but mixing pkg tools from /usr/sbin and /usr/pkg/sbin no
longer triggers a disaster.

Maybe we could update the migration script to put the symlinks in place?

David


Home | Main Index | Thread Index | Old Index