Date: Wed, 8 Apr 2020 18:52:08 -0700 From: David Wolfskill <david@catwhisker.org> To: current@freebsd.org Subject: PORTS_MODULES if you built head between r359681 - r359690 Message-ID: <20200409015208.GC1689@albert.catwhisker.org>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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@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.
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
iQGTBAEBCgB9FiEE4owz2QxMJyaxAefyQLJg+bY2PckFAl6Of8hfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUy
OEMzM0Q5MEM0QzI3MjZCMTAxRTdGMjQwQjI2MEY5QjYzNjNEQzkACgkQQLJg+bY2
PcmFswgA19/IdJQkxZczPivaVgtYJkfiy3zDuLJXuDzuGOSUm+asHfexL522E0xt
KTX0R8ke5j3/TOfykbvQu1t9lzt1VxVPO+NecZTDneuOgO6Mv8ijLV8WI46KiYx0
o8tCM6n1godnPcrB+TIYoN6ekkDqZQg7ayf9DNBwDmjMdpukjmO2jMPBxbSxu4O5
N0HLaBnX6WbUuxO/3qEOkoByK6cjV4rPtn7LyHoB9Is7FEljEqa0tt1wqJSwBtXl
isX68p8Z+AhUkfseNCVrEuwd7sJrqeWcnSs1vQIvwHqJTvAMwKqau7dcdOu07abb
Rq9G9GMCoB3UPjiO50VexGV0cB0nwg==
=ZZko
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200409015208.GC1689>
