Module Name: src
Committed By: christos
Date: Wed Nov 8 13:02:03 UTC 2023
Modified Files:
src/etc: Makefile
Log Message:
add umask for kernel creation consistency
To generate a diff of this commit:
cvs rdiff -u -r1.467 -r1.468 src/etc/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/Makefile
diff -u src/etc/Makefile:1.467 src/etc/Makefile:1.468
--- src/etc/Makefile:1.467 Sat Aug 26 01:27:14 2023
+++ src/etc/Makefile Wed Nov 8 08:02:03 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.467 2023/08/26 05:27:14 riastradh Exp $
+# $NetBSD: Makefile,v 1.468 2023/11/08 13:02:03 christos Exp $
# from: @(#)Makefile 8.7 (Berkeley) 5/25/95
# Environment variables without default values:
@@ -589,6 +589,7 @@ build_kernels: .PHONY
.for configfile in ${ALL_KERNELS:O:u} # {
build_kernels: kern-${configfile}
kern-${configfile}: .PHONY .MAKE
+ umask 022
cd ${KERNCONFDIR} && ${TOOL_CONFIG} ${CONFIGOPTS} -s ${KERNSRCDIR} \
${MKDEBUGKERNEL == "yes" :? -DDEBUG=-g :} \
-b ${KERNOBJDIR}/${configfile:C/.*\///} ${configfile}
@@ -615,6 +616,7 @@ kernset-${configfile}: .PHONY build_kern
kernsuffixes="${KERNEL_SUFFIXES:S/^/./}"; \
kern_tgz=${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/sets/kern-${configfile}.${TAR_SUFF}; \
pax_cmd="GZIP=${GZIP_FLAGS:Q} XZ_OPT=${XZ_OPT:Q} ${TOOL_PAX} ${PAX_TIMESTAMP} --use-compress-program ${COMPRESS_PROGRAM:Q} -O -w -M -N ${NETBSDSRCDIR}/etc -f $${kern_tgz}"; \
+ umask 022;
cd $${kerndir} && { \
kernels=; newest=; \
for kernel in $${kernlist}; do \
@@ -677,6 +679,7 @@ releasekern-${configfile}: .PHONY build_
kerndir=${KERNOBJDIR}/${configfile:C/.*\///}; \
kernsuffixes="${KERNEL_SUFFIXES:S/^/./}"; \
dest="${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel"; \
+ umask 022; \
cd $${kerndir} && { \
for kernel in $${kernlist}; do \
for s in "" $${kernsuffixes}; do \