From a69b5a224293e35d0dd759d456418c0d5506148d Mon Sep 17 00:00:00 2001 From: agc Date: Sat, 19 Jan 2002 21:29:41 +0000 Subject: 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. --- mk/defs.NetBSD.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mk/defs.NetBSD.mk') diff --git a/mk/defs.NetBSD.mk b/mk/defs.NetBSD.mk index ae691cff5bc..397d4b1b927 100644 --- a/mk/defs.NetBSD.mk +++ b/mk/defs.NetBSD.mk @@ -1,4 +1,4 @@ -# $NetBSD: defs.NetBSD.mk,v 1.19 2001/12/19 10:29:11 agc Exp $ +# $NetBSD: defs.NetBSD.mk,v 1.20 2002/01/19 21:29:41 agc Exp $ # # Variable definitions for the NetBSD operating system. @@ -36,11 +36,13 @@ MV?= /bin/mv PATCH?= /usr/bin/patch PAX?= /bin/pax PKGLOCALEDIR?= share +PS?= /bin/ps RM?= /bin/rm RMDIR?= /bin/rmdir SED?= /usr/bin/sed SETENV?= /usr/bin/env SH?= /bin/sh +SHLOCK= /usr/bin/shlock SORT?= /usr/bin/sort SU?= /usr/bin/su TAIL?= /usr/bin/tail -- cgit v1.2.3