Package: dpkg
Version: 1.10.28
Severity: wishlist

Hi,

I noticed that dpkg updates the config.guess/sub files during build.
Unfortunately the clean target does not reverse this source change and
subsequent debdiffs include the config.guess/sub change.

Below is a small patch that saves the original config.guess/sub files
during build and restores them in clean. It also removes backup files
which I find most anoying in debdiffs.

MfG
        Goswin

-----------------------------------------------------------------------------
diff -Nru /tmp/filezvS0El/dpkg-1.10.28/debian/rules /tmp/filearq67w/dpkg-1.10.2\
8/debian/rules 
--- /tmp/filezvS0El/dpkg-1.10.28/debian/rules   Thu Nov 11 04:16:32 2004 
+++ /tmp/filearq67w/dpkg-1.10.28/debian/rules   Mon Aug 22 15:20:10 2005 
@@ -43,6 +43,7 @@ 
        autoheader 
  
 config.guess config.sub: %: /usr/share/misc/% 
+       [ -f [EMAIL PROTECTED] ] || cp -a $@ [EMAIL PROTECTED] 
        cp -a $< [EMAIL PROTECTED] 
        mv [EMAIL PROTECTED] $@ 
  
@@ -73,6 +74,9 @@ 
        rm -fr $(BUILD-DIRS) $(TMP) 
        rm -f po/{cat-id-tbl.c,stamp-cat-id,*.gmo} 
        rm -f stamp-build stamp-binary 
+       [ ! -f config.sub.orig ] || mv config.sub.orig config.sub 
+       [ ! -f config.guess.orig ] || mv config.guess.orig config.guess 
+       find -name "*~" -print0 | xargs -0 -r rm -- 
  
 build: stamp-build 
  
@@ -302,7 +306,7 @@ 
        install -d -m 755 -o root -g root $(TMP_DPKG_DOC)/usr/share/doc-base 
        install -p -m 644 -o root -g root debian/dpkg-doc.doc-base \ 
                $(TMP_DPKG_DOC)/usr/share/doc-base/dpkg-doc 
-        
+ 
 # Final package creation 
        install -d -m 755 -o root -g root $(TMP_DPKG_DOC)/DEBIAN 
        install -p -m 755 -o root -g root debian/dpkg-doc.prerm $(TMP_DPKG_DOC)\
/DEBIAN/prerm 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to