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 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 pkg_admin pkg_create pkg_delete pkg_info /usr/sbin/
> > mv /var/db/pkg /usr/pkg/pkgdb
> > mv /var/db/pkg.refcount /usr/pkg/pkgdb.refcount
> 
> A problem with pkg.refcount might be that files in that directory
> contain absolute pathnames starting with /var/db/pkg. E.g.:
> 
> $ cat /var/db/pkg.refcount/groups/mail/cyrus-sasl-2.1.27nb1 
> /var/db/pkg/cyrus-sasl-2.1.27nb1
> 
> $ cat /var/db/pkg.refcount/files/usr/pkg/lib/perl5/vendor_perl/5.32.0/XML/SAX/ParserDetails.ini/p5-XML-SAX-1.02 
> /var/db/pkg/p5-XML-SAX-1.02
> 
> $ cat /var/db/pkg.refcount/users/smmsp/sendmail-8.15.2nb9 
> /var/db/pkg/sendmail-8.15.2nb9

That looks like a design flaw :(

IIUC the effect will be that some empty directories are not deleted
when the last packages using them are deleted.

Is anyone willing to write up a shell script to fix them?
 Thomas


Home | Main Index | Thread Index | Old Index