Subject: CVS commit: pkgsrc/mk/internal
To: None <pkgsrc-changes@NetBSD.org>
From: Roland Illig <email@example.com>
Date: 02/20/2007 22:11:11
Module Name: pkgsrc
Committed By: rillig
Date: Tue Feb 20 22:11:10 UTC 2007
Made the locking more flexible by letting the user choose different
locking types for WRKDIR and LOCALBASE.
The default values are currently based on PKGSRC_LOCKTYPE, but the
recommended values are different. For LOCALBASE, the recommended value
is "sleep", since after one transaction has finished, the next can be
done in the new LOCALBASE without problems.
The situation is different though in WRKDIR. After one transaction has
finished there, it is often the case that the directory is removed,
including the lockfile. In that case, the package has usually been
installed and packaged successfully, and it would be a bad idea to let
the next transaction try to do the same again. Therefore, the
recommended value here is "once".
To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 pkgsrc/mk/internal/locking.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.