Source-Changes-HG archive

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

[src/trunk]: src/distrib/common Pass -U to maketars if we are not building as...



details:   https://anonhg.NetBSD.org/src/rev/a7a689dadb38
branches:  trunk
changeset: 808625:a7a689dadb38
user:      martin <martin%NetBSD.org@localhost>
date:      Wed May 27 09:27:40 2015 +0000

description:
Pass -U to maketars if we are not building as root.

diffstat:

 distrib/common/Makefile.bootcd |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 391daa11c2da -r a7a689dadb38 distrib/common/Makefile.bootcd
--- a/distrib/common/Makefile.bootcd    Wed May 27 09:26:46 2015 +0000
+++ b/distrib/common/Makefile.bootcd    Wed May 27 09:27:40 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.bootcd,v 1.28 2015/05/25 15:38:33 martin Exp $
+#      $NetBSD: Makefile.bootcd,v 1.29 2015/05/27 09:27:40 martin Exp $
 #
 # Makefile snipped to create a CD/DVD ISO
 #
@@ -78,8 +78,10 @@
 
 .if ${MKUNPRIVED} == "no"
 CD_METALOG.unpriv=
+mtunpriv=""
 .else
 CD_METALOG.unpriv=-M ${METALOG}.sanitised
+mtunpriv="-U"
 .endif
 
 # Stuff that should come from elsewhere - XXX where? - HF
@@ -248,7 +250,7 @@
                ${CHMOD} +w ${CUROBJDIR:Q}/cdrom/etc/mtree/set.${set};  \
        fi;                                                             \
        ${CDSETSCMD} ./maketars -i "${CUROBJDIR}/cdrom"                 \
-           ${CD_METALOG.unpriv} -N ${NETBSDSRCDIR}/etc                 \
+           ${CD_METALOG.unpriv} ${mtunpriv} -N ${NETBSDSRCDIR}/etc     \
            -F "${CUROBJDIR}/cdrom/etc/mtree"                           \
            -d "${DESTDIR:S,^$,/,}" ${set}
 .endfor



Home | Main Index | Thread Index | Old Index