Browse Source

Build kernels as root for now. Otherwise we run into permission issues

when the source tree is not owned by ${BUILDUSER}.
ok deraadt
OPENBSD_6_1
natano 8 years ago
parent
commit
c2efbb75c6
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/etc/Makefile

+ 5
- 5
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.437 2016/10/05 21:39:57 deraadt Exp $
# $OpenBSD: Makefile,v 1.438 2016/10/06 15:37:42 natano Exp $
TZDIR= /usr/share/zoneinfo TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain LOCALTIME= Canada/Mountain
@ -252,13 +252,15 @@ release:
echo 'must be called by root' 2>&1; \ echo 'must be called by root' 2>&1; \
false; \ false; \
fi fi
su ${BUILDUSER} -c 'exec ${MAKE} release-sets'
${MAKE} release-sets
${MAKE} distrib ${MAKE} distrib
su ${BUILDUSER} -c 'exec ${MAKE} sha' su ${BUILDUSER} -c 'exec ${MAKE} sha'
release-sets: release-sets:
su ${BUILDUSER} -c 'exec ${MAKE} distribution'
${MAKE} kernels
cd ${RELEASEDIR} && rm -f SHA256 cd ${RELEASEDIR} && rm -f SHA256
cd ../distrib/sets && exec sh maketars ${OSrev}
cd ../distrib/sets && exec su ${BUILDUSER} -c 'exec sh maketars ${OSrev}'
sha: sha:
-cd ${RELEASEDIR}; \ -cd ${RELEASEDIR}; \
@ -266,8 +268,6 @@ sha:
cksum -a sha256 BUILDINFO INSTALL.`arch -ks` \ cksum -a sha256 BUILDINFO INSTALL.`arch -ks` \
${ALL_KERNELS} ${MDEXT} ${MISETS} | sort > SHA256 ${ALL_KERNELS} ${MDEXT} ${MISETS} | sort > SHA256
release-sets: distribution kernels
.endif .endif
.endif # DESTDIR check .endif # DESTDIR check


Loading…
Cancel
Save