Subject: Re: CVS commit: pkgsrc/mk
To: NetBSD Packages Technical Discussion List <tech-pkg@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-pkg
Date: 08/04/2006 22:10:57
On Fri, Aug 04, 2006 at 03:08:04PM -0400, Johnny Lam wrote:
> I believe that locking ${LOCALBASE} is not necessary unless you are 
> running certain targets, e.g. check-files or print-PLIST.

And at least check-files is a part of PKG_DEVELOPER, so this is IMO very
useful to have. It should be conditionalized, but I don't think it hurts
very much (when lockf exists). 

>  I think 
> locking the package metadata directory is more important as that is the 
> part that can really get corrupted with simultaneous updates.  Even 
> though the package tools themselves don't do any locking, we can ensure 
> that the pkgsrc tree itself doesn't have multiple processes updating the 
> metadata directory at the same time.

That's a bug in pkg_install.

Joerg