Module Name:    src
Committed By:   apb
Date:           Mon Jan 13 20:00:20 UTC 2014

Modified Files:
        src: build.sh

Log Message:
In the sanitycheck function, treat undefined MKUNPRIVED like "no".

Other uses of MKUNPRIVED should not need this treatment, because
bsd.own.mk sets it to "no" by default, and build.sh uses getmakevar to
pick up that default (but that happens too late for the sanitycheck
function to take advantage of it).


To generate a diff of this commit:
cvs rdiff -u -r1.273 -r1.274 src/build.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/build.sh
diff -u src/build.sh:1.273 src/build.sh:1.274
--- src/build.sh:1.273	Fri Aug 30 10:29:06 2013
+++ src/build.sh	Mon Jan 13 20:00:20 2014
@@ -1,5 +1,5 @@
 #! /usr/bin/env sh
-#	$NetBSD: build.sh,v 1.273 2013/08/30 10:29:06 pooka Exp $
+#	$NetBSD: build.sh,v 1.274 2014/01/13 20:00:20 apb Exp $
 #
 # Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -1286,7 +1286,7 @@ sanitycheck()
 	#
 	if ! ${do_expertmode} && \
 	    [ "$id_u" -ne 0 ] && \
-	    [ "${MKUNPRIVED}" = "no" ] ; then
+	    [ "${MKUNPRIVED:-no}" = "no" ] ; then
 		bomb "-U or -E must be set for build as an unprivileged user."
 	fi
 
@@ -1745,7 +1745,7 @@ createmakewrapper()
 	eval cat <<EOF ${makewrapout}
 #! ${HOST_SH}
 # Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from:  \$NetBSD: build.sh,v 1.273 2013/08/30 10:29:06 pooka Exp $
+# Generated from:  \$NetBSD: build.sh,v 1.274 2014/01/13 20:00:20 apb Exp $
 # with these arguments: ${_args}
 #
 

Reply via email to