Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Oct 2013 11:35:50 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r257053 - stable/10
Message-ID:  <201310241135.r9OBZo8M043193@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery (ports committer)
Date: Thu Oct 24 11:35:50 2013
New Revision: 257053
URL: http://svnweb.freebsd.org/changeset/base/257053

Log:
  MFC r256842:
  
    Fix 'make delete-old-libs' and 'make check-libs' to delete .debug
    files created by WITH_DEBUG_FILES. Also cleanup .symbols files from
    the period between r244236 when .symbols were supported and r251512
    when they were renamed to .debug.
  
    Only propose to delete a .debug file if the corresponding library
    itself was deleted already.
  
  Approved by:	bapt
  Approved by:	re (glebius)

Modified:
  stable/10/Makefile.inc1   (contents, props changed)

Modified: stable/10/Makefile.inc1
==============================================================================
--- stable/10/Makefile.inc1	Thu Oct 24 10:53:35 2013	(r257052)
+++ stable/10/Makefile.inc1	Thu Oct 24 11:35:50 2013	(r257053)
@@ -1722,6 +1722,13 @@ delete-old-libs:
 			chflags noschg "${DESTDIR}/$${file}" 2>/dev/null || true; \
 			rm ${RM_I} "${DESTDIR}/$${file}" <&3; \
 		fi; \
+		for ext in debug symbols; do \
+		  if ! [ -e "${DESTDIR}/$${file}" ] && [ -f \
+		      "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}" ]; then \
+			  rm ${RM_I} "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}" \
+			      <&3; \
+		  fi; \
+		done; \
 	done
 	@echo ">>> Old libraries removed"
 
@@ -1733,6 +1740,11 @@ check-old-libs:
 		if [ -f "${DESTDIR}/$${file}" -o -L "${DESTDIR}/$${file}" ]; then \
 			echo "${DESTDIR}/$${file}"; \
 		fi; \
+		for ext in debug symbols; do \
+		  if [ -f "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}" ]; then \
+			  echo "${DESTDIR}${DEBUGDIR}/$${file}.$${ext}"; \
+		  fi; \
+		done; \
 	done
 
 delete-old-dirs:



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