Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 May 2018 18:49:20 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334177 - head/share/mk
Message-ID:  <201805241849.w4OInKV0038467@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



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