Re: [HEADS UP] pkgsrc default database directory changed

2020-12-13 Thread Taylor R Campbell
> Date: Sun, 13 Dec 2020 20:11:53 +0100 > From: Thomas Klausner > > On Sun, Dec 13, 2020 at 02:18:32PM +0100, Rhialto wrote: > > A problem with pkg.refcount might be that files in that directory > > contain absolute pathnames starting with /var/db/pkg. E.g.: > > > > $ cat

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-13 Thread Thomas Klausner
On Sun, Dec 13, 2020 at 02:18:32PM +0100, Rhialto wrote: > On Sat 05 Dec 2020 at 15:14:52 +0100, Thomas Klausner wrote: > > So the complete instructions as of now are: > > > > cd /usr/pkgsrc/pkgtools/pkg_install > > make USE_CWRAPPERS=no install > > cd /usr/pkg/sbin && install -c pkg_add

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-13 Thread Rhialto
On Sat 05 Dec 2020 at 15:14:52 +0100, Thomas Klausner wrote: > So the complete instructions as of now are: > > cd /usr/pkgsrc/pkgtools/pkg_install > make USE_CWRAPPERS=no install > cd /usr/pkg/sbin && install -c pkg_add pkg_admin pkg_create pkg_delete > pkg_info /usr/sbin/ > mv /var/db/pkg

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-10 Thread Simon Burge
Thomas Klausner wrote: > (The problem is that pkg_install and pkgsrc/mk need to be changed at > the same time, which is why this change is so difficult in the first > place.) Can one of either pkg_install or pkgsrc/mk be changed now to cater for the change in advance, at the other changed "soon"

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-10 Thread Thomas Klausner
On Thu, Dec 10, 2020 at 07:29:05PM +0300, Valeriy E. Ushakov wrote: > On Wed, Dec 02, 2020 at 11:28:41 +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

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-10 Thread Valery Ushakov
On Wed, Dec 02, 2020 at 11:28:41 +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). This seems to be broken with current

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread David Holland
On Mon, Dec 07, 2020 at 11:23:38AM +0100, Matthias Petermann wrote: > while I think the change makes sense (if I understand it correctly, it will > make it easier for me in the future to switch between different PKG > locations including the corresponding metadata just by renaming the >

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread Thomas Klausner
On Mon, Dec 07, 2020 at 03:16:44PM +, Mike Pumford wrote: > And that requires a manual build of pkg_install (skipping the normal > cwrappers dependency) on 9-stable and 8-stable. Not sure if that will be > true after pullups have happened but I suspect it might still be as there > won't be a

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread Mike Pumford
On 07/12/2020 13:17, Thomas Klausner wrote: 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. And that requires a manual build of pkg_install (skipping the normal

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread David Brownlee
On Mon, 7 Dec 2020 at 13:18, Thomas Klausner 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 > > Message-ID: <20201207103814.xbnkdiwpzo6xl...@yt.nih.at> > > > > | > 2) requires

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread Thomas Klausner
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 > Message-ID: <20201207103814.xbnkdiwpzo6xl...@yt.nih.at> > > | > 2) requires a more recent pkg_install than the one from NetBSD 9.1 > | > |

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread Robert Elz
Date:Mon, 7 Dec 2020 11:38:14 +0100 From:Thomas Klausner Message-ID: <20201207103814.xbnkdiwpzo6xl...@yt.nih.at> | > 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 |

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread Thomas Klausner
On Mon, Dec 07, 2020 at 11:23:38AM +0100, Matthias Petermann wrote: > Hello everybody, > > while I think the change makes sense (if I understand it correctly, it will > make it easier for me in the future to switch between different PKG > locations including the corresponding metadata just by

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread Mike Pumford
On 07/12/2020 10:06, Thomas Klausner wrote: On Mon, Dec 07, 2020 at 09:53:46AM +, Mike Pumford wrote: More fallout from this change: => Build dependency cwrappers>=20150314: NOT found => Verifying reinstall for ../../pkgtools/cwrappers ===> Trying to handle out-dated pkg_install... ===>

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread Matthias Petermann
Hello everybody, while I think the change makes sense (if I understand it correctly, it will make it easier for me in the future to switch between different PKG locations including the corresponding metadata just by renaming the respective /usr/pkg directory), I would be very happy to read a

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread Thomas Klausner
On Mon, Dec 07, 2020 at 09:53:46AM +, Mike Pumford wrote: > More fallout from this change: > > => Build dependency cwrappers>=20150314: NOT found > => Verifying reinstall for ../../pkgtools/cwrappers > ===> Trying to handle out-dated pkg_install... > ===> Cleaning for pkg_install-20201205 >

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-07 Thread Mike Pumford
On 07/12/2020 02:13, Thomas Mueller wrote: from Thomas Klausner : I've collected specific advice outside of the basic ones here: http://pkgsrc.org/news/pkgdb-change/ More fallout from this change: => Build dependency cwrappers>=20150314: NOT found => Verifying reinstall for

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-06 Thread Thomas Mueller
from Thomas Klausner : > I've collected specific advice outside of the basic ones here: > http://pkgsrc.org/news/pkgdb-change/ My installed packages are in a mess, and I probably need to rebuild from the beginning; also I intend to switch from modular pkgsrc Xorg to native Xorg Packages mess

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-06 Thread Benny Siegert
On Sat, Dec 5, 2020 at 9:19 PM Thomas Klausner wrote: > http://pkgsrc.org/news/pkgdb-change/ Thanks, that's helpful. I need some more advice. Apparently, I have gotten into a split-brain situation where /usr/sbin/pkg_info and /usr/pkg/sbin/pkg_info show me disjoint sets of packages. I would

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-05 Thread Thomas Klausner
On Sat, Dec 05, 2020 at 10:32:57AM -0800, John Nemeth wrote: > On Dec 5, 15:14, 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

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-05 Thread John Nemeth
On Dec 5, 15:14, 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

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-05 Thread David Brownlee
On Sat, 5 Dec 2020 at 14:15, 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

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-05 Thread Thomas Klausner
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). martin@ just pointed out to me that

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-04 Thread John Nemeth
On Dec 4, 11:07, Mike Pumford wrote: } On 02/12/2020 23:41, Thomas Klausner wrote: } > On Wed, Dec 02, 2020 at 03:07:55PM -0800, Paul Goyette wrote: } >> This is just getting too complicated. Too many manual steps, and too } >> many changes to too many long-established procedures. } > } > Yeah,

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-04 Thread Connor McLaughlan
On Fri, Dec 4, 2020 at 1:52 PM David Brownlee wrote: > > On Fri, 4 Dec 2020 at 11:07, Mike Pumford wrote: > > On 02/12/2020 23:41, Thomas Klausner wrote: > > > On Wed, Dec 02, 2020 at 03:07:55PM -0800, Paul Goyette wrote: > > >> This is just getting too complicated. Too many manual steps, and

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-04 Thread David Brownlee
On Fri, 4 Dec 2020 at 11:07, Mike Pumford wrote: > On 02/12/2020 23:41, Thomas Klausner wrote: > > On Wed, Dec 02, 2020 at 03:07:55PM -0800, Paul Goyette wrote: > >> This is just getting too complicated. Too many manual steps, and too > >> many changes to too many long-established procedures. >

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-04 Thread Mike Pumford
On 02/12/2020 23:41, Thomas Klausner wrote: On Wed, Dec 02, 2020 at 03:07:55PM -0800, Paul Goyette wrote: This is just getting too complicated. Too many manual steps, and too many changes to too many long-established procedures. Yeah, I'm sorry that you spent too much time on this.

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Thomas Klausner
On Wed, Dec 02, 2020 at 03:07:55PM -0800, Paul Goyette wrote: > This is just getting too complicated. Too many manual steps, and too > many changes to too many long-established procedures. Yeah, I'm sorry that you spent too much time on this. Actually, the easiest way is to just: cd

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Paul Goyette
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

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Thomas Klausner
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

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Paul Goyette
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

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Thomas Klausner
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

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Robert Elz
Date:Wed, 2 Dec 2020 07:25:48 -0800 (PST) From:Paul Goyette Message-ID: | If one adds tnn's suggested entry to /etc/mk.conf, is it also needed | to apply uwe's update to /etc/pkgpath.conf? Depends what state you leave the system, mk.conf is used when building

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Thomas Klausner
On Wed, Dec 02, 2020 at 07:25:48AM -0800, Paul Goyette wrote: > If one adds tnn's suggested entry to /etc/mk.conf, is it also needed > to apply uwe's update to /etc/pkgpath.conf? The advise helps in different use cases: If you follow tnn's advise, you'll keep using the old database location and

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread David Brownlee
On Wed, 2 Dec 2020 at 10:28, 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). > > This matches the default the bootstrap

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Paul Goyette
On Wed, 2 Dec 2020, Valery Ushakov wrote: On Wed, Dec 02, 2020 at 11:28:41 +0100, Thomas Klausner wrote: There is one potential pitfall: you'll have to make sure ${PREFIX}/sbin/pkg_* is used and not mixed with /usr/sbin/pkg_* (which will default to the old location until -current and the

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Robert Elz
Date:Wed, 2 Dec 2020 12:01:08 +0100 From:Thomas Klausner Message-ID: <20201202110108.7ml5gw3jospli...@yt.nih.at> | The change is documented here: | | http://pkgsrc.org/news/pkgdb-change/ I have been using ${PREFIX}/db now for years, on regular NetBSD. (It

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Thomas Klausner
On Wed, Dec 02, 2020 at 11:54:31AM +0100, Tobias Nygren wrote: > On Wed, 2 Dec 2020 11:28:41 +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

Re: [HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Tobias Nygren
On Wed, 2 Dec 2020 11:28:41 +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 this is about changing a default, it

[HEADS UP] pkgsrc default database directory changed

2020-12-02 Thread Thomas Klausner
Hi! 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). This matches the default the bootstrap script had for a long time. pkgsrc-HEAD will insist on using