diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2004-11-25 00:02:38 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2004-11-25 00:02:38 +0000 |
commit | 33afdf33e91e3297cae1d633e1aa641e698fadda (patch) | |
tree | 4dbd321793501d2196c60f8033672b0d2879fd47 /Tools/portbuild/scripts/buildscript | |
parent | 371cf3071c3cfa74fdab5b275447cee2e7748e6b (diff) | |
download | ports-33afdf33e91e3297cae1d633e1aa641e698fadda.tar.gz ports-33afdf33e91e3297cae1d633e1aa641e698fadda.zip |
* Recursively list all files detected as having been left behind after
the port deinstall; mtree does not recurse into subdirectories it does
not know about
* Break out the 'files incorrectly removed' and 'files incorrectly changed'
into their own sections
Notes
Notes:
svn path=/head/; revision=122354
Diffstat (limited to 'Tools/portbuild/scripts/buildscript')
-rwxr-xr-x | Tools/portbuild/scripts/buildscript | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/Tools/portbuild/scripts/buildscript b/Tools/portbuild/scripts/buildscript index 986d2ff8e097..bfe2342c5470 100755 --- a/Tools/portbuild/scripts/buildscript +++ b/Tools/portbuild/scripts/buildscript @@ -165,6 +165,17 @@ EOF mtree -X /tmp/mtree.exclude -x -f /tmp/mtree -p / | egrep -v '^(usr/local/share/nls/POSIX|usr/local/share/nls/en_US.US-ASCII|etc/shells.bak|etc/services|compat |usr/X11R6 |etc/manpath.config|usr/local/info/dir)' > /tmp/list3 + if [ -s /tmp/list3 ]; then + cd / + grep ' extra$' /tmp/list3 | awk '{print $1}' | xargs -J % find % -ls > /tmp/list4 + grep ' missing$' /tmp/list3 > /tmp/list5 + grep -vE ' (extra|missing)$' /tmp/list3 > /tmp/list6 + if [ "x${PLISTCHECK}" != "x" ]; then + echo "1" > /tmp/status + fi + echo "================================================================" + fi + # BUILD_DEPENDS need to be present at install-time, e.g. gmake # Concatenate and remove duplicates BRD=$(echo $BD $RD | tr ' ' '\n' | sort -u | tr '\n' ' ') @@ -175,13 +186,17 @@ EOF del_pkg * fi - if [ -s /tmp/list3 ]; then - echo "================================================================" - echo "list of extra files and directories in /" - cat /tmp/list3 - if [ "x${PLISTCHECK}" != "x" ]; then - echo "1" > /tmp/status - fi + if [ -s /tmp/list4 ]; then + echo "list of extra files and directories in / (not present before this port was installed but present after it was deinstalled)" + cat /tmp/list4 + fi + if [ -s /tmp/list5 ]; then + echo "list of files present before this port was installed but missing after it was deinstalled)" + cat /tmp/list5 + fi + if [ -s /tmp/list6 ]; then + echo "list of filesystem changes from before and after port installation and deinstallation" + cat /tmp/list6 fi else cleanup 5 |