summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2015-04-17 12:46:00 +0000
committermanu <manu@pkgsrc.org>2015-04-17 12:46:00 +0000
commit534169f0a92b98a74a2d8bfbc18fe688f9fb1fd3 (patch)
tree4e695b19da33fac9e5ceab323aec21b345929e92
parentd610c8d9319051274fd3b1fd95617c7c02e3a358 (diff)
downloadpkgsrc-534169f0a92b98a74a2d8bfbc18fe688f9fb1fd3.tar.gz
Allow GNU coreuitls to be built as root
GNU coreutils's configure script will abort if ran as root. Although pkgsrc can do that step under an unprivilegied user, there are still situations, such as pkg_comp bulk builds, where the common usage is to run as root. We therefore override configure's root check by setting FORCE_UNSAFE_CONFIGURE in the environement.
-rw-r--r--sysutils/coreutils/Makefile.common5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysutils/coreutils/Makefile.common b/sysutils/coreutils/Makefile.common
index 75038959980..ef406aaebbe 100644
--- a/sysutils/coreutils/Makefile.common
+++ b/sysutils/coreutils/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.9 2015/01/29 21:58:34 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.10 2015/04/17 12:46:00 manu Exp $
# used by sysutils/coreutils/Makefile
# used by misc/gnuls/Makefile
@@ -25,6 +25,9 @@ TEST_TARGET= check
.include "../../mk/bsd.prefs.mk"
+# Otherwise configure aborts when ran by root
+CONFIGURE_ENV+= FORCE_UNSAFE_CONFIGURE=yes
+
.if ${OPSYS} == "Interix"
CONFIGURE_ENV+= ac_list_mounted_fs=found
.endif