summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-04-26 06:56:29 +0000
committerrillig <rillig@pkgsrc.org>2020-04-26 06:56:29 +0000
commit7240e232dd91ccb41792600bf3952338ee353bb5 (patch)
treed1677c67601007bd557dafff7f805f4c27423d21
parent8b6d41814fa1c881ce2c79c3fa57cd811f19701e (diff)
downloadpkgsrc-7240e232dd91ccb41792600bf3952338ee353bb5.tar.gz
mk/misc/can-be-built-here.mk: remove NOT_FOT_UNPRIVILEGED
It is unused, and its error message wrongly said "only for unprivileged", which nobody complained about for 13 years.
-rw-r--r--mk/misc/can-be-built-here.mk15
1 files changed, 2 insertions, 13 deletions
diff --git a/mk/misc/can-be-built-here.mk b/mk/misc/can-be-built-here.mk
index 93852febf9b..4d132874577 100644
--- a/mk/misc/can-be-built-here.mk
+++ b/mk/misc/can-be-built-here.mk
@@ -1,4 +1,4 @@
-# $NetBSD: can-be-built-here.mk,v 1.9 2018/05/16 21:23:02 rillig Exp $
+# $NetBSD: can-be-built-here.mk,v 1.10 2020/04/26 06:56:29 rillig Exp $
#
# This file checks whether a package can be built in the current pkgsrc
# environment. It checks the following variables:
@@ -7,7 +7,7 @@
# * NOT_FOR_PLATFORM, ONLY_FOR_PLATFORM
# * BROKEN_ON_PLATFORM, BROKEN_EXCEPT_ON_PLATFORM
# * NOT_FOR_BULK_PLATFORM
-# * NOT_FOR_UNPRIVILEGED, ONLY_FOR_UNPRIVILEGED
+# * NOT_FOR_UNPRIVILEGED
# * PKG_FAIL_REASON, PKG_SKIP_REASON
#
# It also depends on the following internal variables:
@@ -127,17 +127,6 @@ _CBBH.nunpriv= no
. endif
.endif
-# Check ONLY_FOR_UNPRIVILEGED
-_CBBH_CHECKS+= ounpriv
-_CBBH_MSGS.ounpriv= "This package is not available in unprivileged mode."
-
-_CBBH.ounpriv= yes
-.if defined(ONLY_FOR_UNPRIVILEGED) && !empty(ONLY_FOR_UNPRIVILEGED:M[Yy][Ee][Ss])
-. if empty(UNPRIVILEGED:M[Yy][Ee][Ss])
-_CBBH.ounpriv= no
-. endif
-.endif
-
# Check PKG_FAIL_REASON
_CBBH_CHECKS+= fail
_CBBH_MSGS.fail= "This package has set PKG_FAIL_REASON:" ${PKG_FAIL_REASON}