Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jul 2017 23:32:46 +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: r321443 - head
Message-ID:  <201707242332.v6ONWkn7055476@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Mon Jul 24 23:32:46 2017
New Revision: 321443
URL: https://svnweb.freebsd.org/changeset/base/321443

Log:
  NO_CLEAN: Utilize delete-old to remove old orphaned libraries/headers in WORLDTMP.
  
  This prevents situations with -DNO_CLEAN from finding stale headers or
  libraries in places that no longer exist or have moved.  It avoids
  the need to remove all of WORLDTMP by reusing what we already know
  is obsolete.
  
  MFC after:	1 month
  Sponsored by:	Dell EMC Isilon

Modified:
  head/Makefile.inc1

Modified: head/Makefile.inc1
==============================================================================
--- head/Makefile.inc1	Mon Jul 24 23:32:43 2017	(r321442)
+++ head/Makefile.inc1	Mon Jul 24 23:32:46 2017	(r321443)
@@ -761,6 +761,13 @@ _worldtmp: .PHONY
 	rm -rf ${LIBCOMPATTMP}
 .endif
 .else
+	${_+_}cd ${.CURDIR}; ${WMAKE} -DBATCH_DELETE_OLD_FILES \
+	    delete-old delete-old-libs
+.if defined(LIBCOMPAT)
+	${_+_}cd ${.CURDIR}; ${WMAKE} -DBATCH_DELETE_OLD_FILES \
+	    DESTDIR=${LIBCOMPATTMP} \
+	    delete-old delete-old-libs
+.endif
 	rm -rf ${WORLDTMP}/legacy/usr/include
 .if ${USING_SYSTEM_COMPILER} == "yes"
 .for cc in cc c++



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