From c2efbb75c6178be675602a588c5476140c461a45 Mon Sep 17 00:00:00 2001 From: natano <> Date: Thu, 6 Oct 2016 15:37:42 +0000 Subject: [PATCH] Build kernels as root for now. Otherwise we run into permission issues when the source tree is not owned by ${BUILDUSER}. ok deraadt --- src/etc/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/etc/Makefile b/src/etc/Makefile index ee20368d..1fd7a25a 100644 --- a/src/etc/Makefile +++ b/src/etc/Makefile @@ -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 LOCALTIME= Canada/Mountain @@ -252,13 +252,15 @@ release: echo 'must be called by root' 2>&1; \ false; \ fi - su ${BUILDUSER} -c 'exec ${MAKE} release-sets' + ${MAKE} release-sets ${MAKE} distrib su ${BUILDUSER} -c 'exec ${MAKE} sha' release-sets: + su ${BUILDUSER} -c 'exec ${MAKE} distribution' + ${MAKE} kernels cd ${RELEASEDIR} && rm -f SHA256 - cd ../distrib/sets && exec sh maketars ${OSrev} + cd ../distrib/sets && exec su ${BUILDUSER} -c 'exec sh maketars ${OSrev}' sha: -cd ${RELEASEDIR}; \ @@ -266,8 +268,6 @@ sha: cksum -a sha256 BUILDINFO INSTALL.`arch -ks` \ ${ALL_KERNELS} ${MDEXT} ${MISETS} | sort > SHA256 -release-sets: distribution kernels - .endif .endif # DESTDIR check