Author: bdrewery
Date: Mon Oct 26 17:49:13 2015
New Revision: 290017
URL: https://svnweb.freebsd.org/changeset/base/290017

Log:
  MFC r289407:
  
    Fix delete-old and check-old-files not removing old debug symbols.

Modified:
  stable/10/Makefile.inc1
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/Makefile.inc1
==============================================================================
--- stable/10/Makefile.inc1     Mon Oct 26 17:45:37 2015        (r290016)
+++ stable/10/Makefile.inc1     Mon Oct 26 17:49:13 2015        (r290017)
@@ -1902,6 +1902,13 @@ delete-old-files:
                        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
 # Remove catpages without corresponding manpages.
        @exec 3<&0; \
@@ -1924,6 +1931,11 @@ check-old-files:
                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
 # Check for catpages without corresponding manpages.
        @find ${DESTDIR}/usr/share/man/cat* ! -type d | \
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to