Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@NetBSD.org>
From: Roland Illig <rillig@netbsd.org>
List: pkgsrc-changes
Date: 08/03/2006 19:12:43
Module Name:	pkgsrc
Committed By:	rillig
Date:		Thu Aug  3 19:12:43 UTC 2006

Modified Files:
	pkgsrc/mk: bsd.pkg.mk
	pkgsrc/mk/install: deinstall.mk

Log Message:
When installing or deinstalling a package, it is not enough to lock the
WRKDIR against foreign processes. Instead, the PKG_DBDIR is locked,
preventing other (pkgsrc) processes from modifying the set of installed
packages while another one is doing that.

This allows to use "bmake update" efficiently on multi-processor
machines by just running it in four different package directories.

Note that the pkg_add and pkg_delete tools may still interfere with this
locking when they are directly run.


To generate a diff of this commit:
cvs rdiff -r1.1879 -r1.1880 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -r1.3 -r1.4 pkgsrc/mk/install/deinstall.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.