summaryrefslogtreecommitdiff
path: root/mk/defs.SunOS.mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2002-01-19 21:29:41 +0000
committeragc <agc@pkgsrc.org>2002-01-19 21:29:41 +0000
commit22bb6a588bfb3c4b05327ccc3ffd96d538e446c5 (patch)
tree1c7f29838f14cee7e116674d22a180e6efa01a47 /mk/defs.SunOS.mk
parent36b6349ad8ad8b83193bc2de88077d8247161cec (diff)
downloadpkgsrc-22bb6a588bfb3c4b05327ccc3ffd96d538e446c5.tar.gz
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.
Diffstat (limited to 'mk/defs.SunOS.mk')
-rw-r--r--mk/defs.SunOS.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/defs.SunOS.mk b/mk/defs.SunOS.mk
index 6d2a6616dac..ed705c49ce0 100644
--- a/mk/defs.SunOS.mk
+++ b/mk/defs.SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.SunOS.mk,v 1.19 2001/12/19 10:29:11 agc Exp $
+# $NetBSD: defs.SunOS.mk,v 1.20 2002/01/19 21:29:41 agc Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -47,11 +47,13 @@ PATCH?= ${LOCALBASE}/bin/patch -b
.endif
PAX?= /bin/pax
PKGLOCALEDIR?= lib
+PS?= /bin/ps
RM?= /usr/bin/rm
RMDIR?= /usr/bin/rmdir
SED?= /usr/xpg4/bin/sed
SETENV?= /usr/bin/env
SH?= /bin/ksh
+SHLOCK= ${LOCALBASE}/bin/shlock
SORT?= /usr/bin/sort
SU?= /usr/bin/su
TAIL?= /usr/xpg4/bin/tail