summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-05-13 21:13:01 +0000
committerjlam <jlam>2005-05-13 21:13:01 +0000
commit69bb1458fb737b69a082e4c64418c3a8f916ce7e (patch)
tree3c0c6e0ea63f9502ccacb8b549258f9a3d6ef33d /mk/bsd.pkg.mk
parentbd260d1c4175f4ec96543605242830f68c1cf449 (diff)
downloadpkgsrc-69bb1458fb737b69a082e4c64418c3a8f916ce7e.tar.gz
Don't check for ${SHLOCK}, which isn't defined yet that early in
bsd.pkg.mk under the new tools framework. Instead, just note that if we set PKGSRC_LOCKTYPE, that pkgsrc will require shlock. Remove "shlock" from the large PKGSRC_USE_TOOLS list since we don't need it all of the time. This fixes PKGSRC_LOCKTYPE != none when using the new tools framework.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 7fee8a1c4cc..93d762d211b 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1643 2005/05/13 16:54:13 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1644 2005/05/13 21:13:01 jlam Exp $
#
# This file is in the public domain.
#
@@ -291,9 +291,13 @@ PKG_FAIL_REASON+='ONLY/NOT_FOR_ARCHS/OPSYS are deprecated and must be replaced w
.if (${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once")
. if !defined(OBJHOSTNAME)
PKG_FAIL_REASON+='PKGSRC_LOCKTYPE needs OBJHOSTNAME defined.'
-. elif !exists(${SHLOCK})
+. elif empty(_USE_NEW_TOOLS:M[yY][eE][sS])
+. if !exists(${SHLOCK})
PKG_FAIL_REASON+='The ${SHLOCK} utility does not exist, and is necessary for locking.'
PKG_FAIL_REASON+='Please "${MAKE} install" in ../../pkgtools/shlock.'
+. endif
+. else
+PKGSRC_USE_TOOLS+= shlock
. endif
.endif
@@ -968,8 +972,8 @@ PKGSRC_USE_TOOLS+= \
[ awk basename cat chgrp chmod chown cmp cp cut date dirname \
echo egrep env expr false fgrep file find grep gtar gunzip \
gzcat gzip head hostname id install ln ls m4 mkdir mtree mv \
- nice pax pwd rm rmdir sed sh shlock sort tail tee test touch tr \
- true tsort wc xargs
+ nice pax pwd rm rmdir sed sh sort tail tee test touch tr true \
+ tsort wc xargs
# We need a mail command to send mail to ${PKGSRC_MESSAGE_RECIPIENTS}.
.if !empty(PKGSRC_MESSAGE_RECIPIENTS)