svn commit: r334177 - head/share/mk
Bryan Drewery
bdrewery at FreeBSD.org
Thu May 24 18:49:21 UTC 2018
Author: bdrewery
Date: Thu May 24 18:49:19 2018
New Revision: 334177
URL: https://svnweb.freebsd.org/changeset/base/334177
Log:
rescue: Restore 'make depend' call to fix WITH_META_MODE after r334008.
The rescue/crunchgen build avoids linking binaries for the objects it is
building by doing 'make foo.o bar.o' rather than 'make all'. This breaks the
implicit 'beforebuild: depend' dependency which ensured that all source files
were generated and up-to-date before building the object files. This
manifested as a WITH_META_MODE build problem for bin/sh in the rescue build
with syntax.{c,h} not properly being regenerated or recognized as changed in
the dependency graph.
Sponsored by: Dell EMC
MFC after: 1 week
Reported by: many
Modified:
head/share/mk/bsd.crunchgen.mk
Modified: head/share/mk/bsd.crunchgen.mk
==============================================================================
--- head/share/mk/bsd.crunchgen.mk Thu May 24 18:32:54 2018 (r334176)
+++ head/share/mk/bsd.crunchgen.mk Thu May 24 18:49:19 2018 (r334177)
@@ -122,10 +122,8 @@ ${OUTPUTS}: ${CONF}
${CRUNCHGEN} -fq -m ${OUTMK} -c ${OUTC} ${CONF}
# Avoid redundantly calling 'make objs' which we've done by our
# own dependencies.
- # Also avoid unneeded 'make depend' call.
sed -i '' \
-e "s/^\(${PROG}:.*\) \$$(SUBMAKE_TARGETS)/\1/" \
- -e '/$$(CRUNCHMAKE) $$(BUILDOPTS).* \<depend\> &&.*/d' \
${OUTMK}
# These 2 targets cannot use .MAKE since they depend on the generated
More information about the svn-src-all
mailing list