Subject: Re: Changes to reference count directories
To: Greg Troxel <gdt@ir.bbn.com>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 01/26/2005 16:02:47
On Wed, Jan 26, 2005 at 09:16:39AM -0500, Greg Troxel wrote:
> It would be really nice to have
> 
>   pkg_admin check-dirs
> 
> be able to grovel over /var/db/pkg, and for each dir count how many
> packages require it, compare that to the refcount, and fix the
> refcount.  This will enable both recovery and checking the recount
> invariant.  I'm pessimistic enough that I believe unless invariants
> are checked there will be bugs that lead to them being violated.

Another item for the wish list:

I'd also like to see a way to recreate PKG_SYSCONFDIR from the examples
tree.  Why?  Suppose you have PKG_SYSCONFBASE=/etc/pkg and /usr/pkg shared
among several computers.

It'd be nice to be able to simply recreate a clean /etc/pkg tree on each
of the machines using the same /usr/pkg tree.

Well, this could really affect all the files managed by the install scripts,
not only those in PKG_SYSCONFBASE; i.e., any files needed under VARBASE, or
any other place, could have to be recreated if necessary.

Cheers,

-- 
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/