diff options
author | rillig <rillig> | 2006-08-04 20:52:27 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-08-04 20:52:27 +0000 |
commit | e137a2b3fcdb863c1612110706e2ef09b46feb25 (patch) | |
tree | c6403946f8ea93813813b4b26d0a6531fa3c42b7 /mk/install/bin-install.mk | |
parent | 9d8ae8279a4e165ea7b3395cc36f5aed7025ae75 (diff) | |
download | pkgsrc-e137a2b3fcdb863c1612110706e2ef09b46feb25.tar.gz |
Fixed the locking, as suggested by Johnny on the tech-pkg mailing list.
Added two targets acquire-localbase-lock and release-localbase-lock,
which mark the complete LOCALBASE directory as locked, so that multiple
packages cannot run the install, deinstall or bin-install targets at the
same time.
The install target aquires locks in both WRKSRC and LOCALBASE, the other
two targets only need the LOCALBASE lock, since they may be run without
WRKSRC being present on the system.
locking.mk must be included before tools.mk and the PKG_FAIL_REASON
check.
Diffstat (limited to 'mk/install/bin-install.mk')
-rw-r--r-- | mk/install/bin-install.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/install/bin-install.mk b/mk/install/bin-install.mk index 8ef5fabd848..0fb73ed3d2b 100644 --- a/mk/install/bin-install.mk +++ b/mk/install/bin-install.mk @@ -1,4 +1,4 @@ -# $NetBSD: bin-install.mk,v 1.2 2006/08/04 07:17:58 rillig Exp $ +# $NetBSD: bin-install.mk,v 1.3 2006/08/04 20:52:27 rillig Exp $ # # This file provides the following targets: @@ -28,8 +28,8 @@ _SU_BIN_INSTALL_TARGETS+= locked-su-bin-install _SU_BIN_INSTALL_TARGETS+= release-bin-install-lock .PHONY: acquire-bin-install-lock release-bin-install-lock -acquire-bin-install-lock: acquire-lock -release-bin-install-lock: release-lock +acquire-bin-install-lock: acquire-localbase-lock +release-bin-install-lock: release-localbase-lock # Install binary pkg, without strict uptodate-check first .PHONY: su-bin-install |