Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src In the sanitycheck function, treat undefined MKUNPRIVED like...



details:   https://anonhg.NetBSD.org/src/rev/a3ec55d13c52
branches:  trunk
changeset: 325956:a3ec55d13c52
user:      apb <apb%NetBSD.org@localhost>
date:      Mon Jan 13 20:00:20 2014 +0000

description:
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).

diffstat:

 build.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 37c57d85cc0e -r a3ec55d13c52 build.sh
--- a/build.sh  Mon Jan 13 19:30:33 2014 +0000
+++ b/build.sh  Mon Jan 13 20:00:20 2014 +0000
@@ -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 @@
        #
        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 @@
        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}
 #
 



Home | Main Index | Thread Index | Old Index