Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2017 04:48:30 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314372 - head/sys/conf
Message-ID:  <201702280448.v1S4mUK7049536@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Tue Feb 28 04:48:30 2017
New Revision: 314372
URL: https://svnweb.freebsd.org/changeset/base/314372

Log:
  Use "build" instead of "all" when building ports modules
  
  "all" in ports currently means "stage the ports", which requires root today,
  and brings to light other potential issues, like ENAMETOOLONG with staged
  directories (bug 161481, etc).
  
  This fixes buildkernel for me when run as a non-root user, assuming all
  of the prerequisites have been installed beforehand and are up-to-date.
  
  MFC after:	1 month
  Discussed with:	swills (IRC)
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/conf/kern.post.mk

Modified: head/sys/conf/kern.post.mk
==============================================================================
--- head/sys/conf/kern.post.mk	Tue Feb 28 04:31:28 2017	(r314371)
+++ head/sys/conf/kern.post.mk	Tue Feb 28 04:48:30 2017	(r314372)
@@ -79,7 +79,7 @@ PORTSMODULESENV=\
 all:
 .for __i in ${PORTS_MODULES}
 	@${ECHO} "===> Ports module ${__i} (all)"
-	cd $${PORTSDIR:-/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE} -B clean all
+	cd $${PORTSDIR:-/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE} -B clean build
 .endfor
 
 .for __target in install reinstall clean



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702280448.v1S4mUK7049536>