PORTS_MODULES if you built head between r359681 - r359690

From: David Wolfskill <david_at_catwhisker.org>
Date: Wed, 8 Apr 2020 18:52:08 -0700
TL;DR: You may want to take evasive action, such as manually copying
the r359690 (or later) from src/share/mk/bsd.sys.mk to
/usr/share/mk/bsd.sys.mk before attempting to make use of the
PORTS_MODULES specificsation if the current version of
/usr/share/mk/bsd.sys.mk is from r359681.

Details & rationale:
I track head daily on my laptop, which uses x11/nvidia-driver, so I
have:

PORTS_MODULES=x11/nvidia-driver

in /etc/src.conf -- and that has served well for years.

Yesterday, I had updated head from r359656 to r359686 without incident
(as far as I could tell at the time).

Today, during the attempt to update from r359686 to r359724 -- which
had worked on my headless "build machine" -- failed during the attempt
to rebuild nividia.ko, whining:

make[6]: "/usr/share/mk/bsd.sys.mk" line 219: Malformed conditional (${MK_CLANG_BOOTSTRAP} == "no" && ${COMPILER_RESOURCE_DIR} != "unknown" &&  !defined(BOOTSTRAPPING))
make[6]: Fatal errors encountered -- cannot continue
make[6]: stopped in /common/S4/obj/usr/src/amd64.amd64/sys/CANARY/common/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-440.64/doc
*** Error code 1


Once I finally(!) had a chance to look at the commits between r359686
and r359724, I found r359690 ... and looking at the whine, I note
that the path for share/mk/bsd.sys.mk starts with /usr -- which,
of course, had not yet been updated, since this was part of "make
buildkernel," and "make installworld" comes rather later in the sequence
(ref src/UPDATING).

Once I realized the above, I made the r359690 changes in
/usr/share/mk/bsd.sys.mk, then re-ran the build/install, which worked
without issue.

Peace and good health,
david
--
David H. Wolfskill				david_at_catwhisker.org
"The most basic duty of government is to defend the lives of its own
citizens.  Any government that fails to do so is a government unworthy
to lead." -- Donald Trump, to the RNC, 2016

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Wed Apr 08 2020 - 23:52:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC