Subject: CVS commit: pkgsrc/mk
To: None <pkgsrc-changes@netbsd.org>
From: Alistair G. Crooks <agc@netbsd.org>
List: pkgsrc-changes
Date: 01/19/2002 23:29:42
Module Name: pkgsrc
Committed By: agc
Date: Sat Jan 19 21:29:42 UTC 2002
Modified Files:
pkgsrc/mk: bsd.pkg.defaults.mk bsd.pkg.mk defs.Darwin.mk defs.Linux.mk
defs.NetBSD.mk defs.SunOS.mk
Log Message:
Add coarse-grained locking to pkgsrc builds, by means of a beefed
up version of the bare-bones code in PR 7590, from David Maxwell.
The definition governing the type of locking used is PKGSRC_LOCKTYPE,
which can take any of the values "none", "sleep", and "once". The
default is "none". If "sleep" locking is used, and process A is
building a package, when process B attempts to build the same package,
process B will sleep for PKGSRC_SLEEPSECS seconds, and attempt to grab
the lock again.
Coarse-grained locking uses the OBJHOSTNAME definition to ensure that
the PID space is regular for shlock(1) to do its work. The
pkgsrc/pkgtools/shlock package has been provided for environments
where shlock is not standard.
To generate a diff of this commit:
cvs rdiff -r1.32 -r1.33 pkgsrc/mk/bsd.pkg.defaults.mk
cvs rdiff -r1.906 -r1.907 pkgsrc/mk/bsd.pkg.mk
cvs rdiff -r1.16 -r1.17 pkgsrc/mk/defs.Darwin.mk
cvs rdiff -r1.21 -r1.22 pkgsrc/mk/defs.Linux.mk
cvs rdiff -r1.19 -r1.20 pkgsrc/mk/defs.NetBSD.mk pkgsrc/mk/defs.SunOS.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.