Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2018 02:10:04 -0800
From:      Jason Harmening <jason.harmening@gmail.com>
To:        "O. Hartmann" <ohartmann@walstatt.org>, David Wolfskill <david@catwhisker.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r328489 - head/sys/conf
Message-ID:  <98501f75-1a1b-9221-c52d-24415230a886@gmail.com>
In-Reply-To: <20180127214755.3c59661e@thor.intern.walstatt.dynvpn.de>
References:  <201801272013.w0RKDaMU098200@repo.freebsd.org> <20180127214755.3c59661e@thor.intern.walstatt.dynvpn.de>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
> 
> This happens now if PORTS_MODULE=x11/nvidia-driver is defined in /etc/src.conf:
> 
> [...]
> --- kernel-install ---
> mkdir -p /boot/kernel
> install -p -m 555 -o root -g wheel kernel /boot/kernel/
> --- ports-install ---
> Variable OBJTOP is recursive.
> 
> make[8]: stopped
> in /usr/obj/usr/src/amd64.amd64/sys/FY/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-387.34/src/nvidia
> *** Error code 2
> 
> Stop.
> make[7]: stopped
> in /usr/obj/usr/src/amd64.amd64/sys/THOR/usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-387.34/src
> *** Error code 1
> 

David sent me logs of the failing case; thanks David!

The failure happens when buildkernel and installkernel are run 
separately instead of all-up, e.g. 'make kernel'.  The installkernel 
step is leaving MK_AUTO_OBJ=no in the env passed to the port build.  It 
looks like at least one of the install stages of nvidia-driver needs to 
generate temporary output, which leads to confusion when the port isn't 
built as though it's an in-tree component.

Can you guys try out the attached patch?


[-- Attachment #2 --]
Index: sys/conf/kern.post.mk
===================================================================
--- sys/conf/kern.post.mk	(revision 328489)
+++ sys/conf/kern.post.mk	(working copy)
@@ -70,7 +70,8 @@
 	-u CXX \
 	-u CPP \
 	-u MAKESYSPATH \
-	MAKEFLAGS="${MAKEFLAGS:M*:tW:S/^-m /-m_/g:S/ -m / -m_/g:tw:N-m_*}" \
+	MK_AUTO_OBJ=yes \
+	MAKEFLAGS="${MAKEFLAGS:M*:tW:S/^-m /-m_/g:S/ -m / -m_/g:tw:N-m_*:NMK_AUTO_OBJ=*}" \
 	SYSDIR=${SYSDIR} \
 	PATH=${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin \
 	SRC_BASE=${SRC_BASE} \

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98501f75-1a1b-9221-c52d-24415230a886>