This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug] gcc-mingw preremove script


The gcc-mingw preremove script does not correctly delete files in
gcc-mingw-manifest.lst.

The filenames in the manifest are relative to /usr, so the script must "cd
/usr" before attempting to act on the manifest.

Also, I suggest adding -v to the rm command, to assist debugging (it only
goes into setup.log.full, anyway).


--------------------------------------------------------------
--- Makefile.in.orig 2003-06-21 14:10:33.000000000 +0100
+++ Makefile.in 2003-06-21 14:11:01.000000000 +0100
@@ -72,7 +72,8 @@
  (echo '#!/bin/sh';\
   echo '[ -f /etc/preremove/gcc-mingw-manifest.lst ] || exit 0';\
   echo 'echo "*** Removing gcc-mingw files.  Please wait. ***"';\
-  echo '/bin/rm -rf `cat /etc/preremove/gcc-mingw-manifest.lst`
/etc/preremove/gcc-mingw-manifest.lst';\
+  echo 'cd /usr';\
+  echo '/bin/rm -rvf `cat /etc/preremove/gcc-mingw-manifest.lst`
/etc/preremove/gcc-mingw-manifest.lst';\
   echo '[ -L /usr/i686-pc-mingw32/include -a -L /usr/i686-pc-mingw32/lib ]
&& /bin/rm -rf /usr/i686-pc-mingw32';\
  ) > $@
  chmod a+x $@
--------------------------------------------------------------


Max.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]