On Tue, Nov 25, 2008 at 05:34:18PM -0800, Ed McKnight wrote: > Thanks, Bart, your reply makes me realize that my testing was insufficient > in that my preexisting directory hadn't been created by IPS and so was > unavailable to the reference counter. Apologies for the scream. > > So is the best practice to (1) create the dirs from the first package to > need them, as opposed to in a parent package, and (2) not do the SVR4 > thing of 'declaring' all parent dirs of your new dir?
If you expect that everything delivering to /var/optional-components will be delivering via pkg(5), then you should create a base package that everyone else depends on, that creates the directory structure that all the other packages will depend on, and then each individual package won't need to deliver the infrastructure. Then simply never remove the base package, or you'll run into bug 2434 again. You could also do the SVr4 thing and just deliver all the directories, which will be okay, but *only* as long as you still had at least one package delivering the directory -- as soon as the last one is removed, the directory will go along with it. Or you can just plan for the directory to be populated by means other than pkg(5), in which case just let the directory be created automatically. It's less clean, because there's no way for us to know that it needs to be cleaned up (at least, until a higher-level directory needs to be cleaned), but it's a workaround for 2434, at least for now. Danek _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
