diff options
author | kris <kris@FreeBSD.org> | 2004-11-25 08:02:38 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2004-11-25 08:02:38 +0800 |
commit | 976ca59f4e769089a0af0b2d83e9546fa5b5f3e4 (patch) | |
tree | 91d16e9298e00b5fb8fea9095d3d1691b40ce2b4 /Tools | |
parent | b874b932ec6343ebcdfd32681f2218bf970c9a7a (diff) | |
download | freebsd-ports-gnome-976ca59f4e769089a0af0b2d83e9546fa5b5f3e4.tar.gz freebsd-ports-gnome-976ca59f4e769089a0af0b2d83e9546fa5b5f3e4.tar.zst freebsd-ports-gnome-976ca59f4e769089a0af0b2d83e9546fa5b5f3e4.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
Diffstat (limited to 'Tools')
-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 |