Source: dpatch
Version: 2.0.35
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that dpatch could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, dpatch can be built reproducibly in our current experimental
framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad dpatch.orig/dpatch-2.0.35/debian/rules 
dpatch/dpatch-2.0.35/debian/rules
--- dpatch.orig/dpatch-2.0.35/debian/rules      2015-02-03 12:29:31.338453886 
+0000
+++ dpatch/dpatch-2.0.35/debian/rules   2015-02-03 12:31:08.423002368 +0000
@@ -30,7 +30,7 @@
 
 # General compresser rule
 ${DOCDIR}/%.gz: docs/%
-       gzip -9fc $< >$@
+       gzip -9fcn $< >$@
 
 # Install directories
 installdirs:
@@ -53,16 +53,16 @@
        install -m0644 debian/dh_dpatch_unpatch.1 ${MAN1DIR}
        install -m0755 debhelper/dh_dpatch_* ${DPATCH}/usr/bin/
 # Compress stuff
-       find ${MAN1DIR} -type f -not -name '*.gz' | xargs gzip -9f
-       find ${MAN7DIR} -type f -not -name '*.gz' | xargs gzip -9f
-       find ${EXDIR} -type f -not -name '*.gz' | xargs gzip -9f
+       find ${MAN1DIR} -type f -not -name '*.gz' | xargs gzip -9fn
+       find ${MAN7DIR} -type f -not -name '*.gz' | xargs gzip -9fn
+       find ${EXDIR} -type f -not -name '*.gz' | xargs gzip -9fn
        find ${DOCDIR}/history -type d -name '.arch-ids' | xargs rm -rf
-       find ${DOCDIR}/history -type f -not -name '*.gz' | xargs gzip -9f
+       find ${DOCDIR}/history -type f -not -name '*.gz' | xargs gzip -9fn
 
 # Install the whole thing, including DEBIAN/ and stuff from debian/
 binary-dpatch: testroot install
-       gzip -9fc debian/NEWS >${DOCDIR}/NEWS.Debian.gz
-       gzip -9fc debian/changelog >${DOCDIR}/changelog.gz
+       gzip -9fcn debian/NEWS >${DOCDIR}/NEWS.Debian.gz
+       gzip -9fcn debian/changelog >${DOCDIR}/changelog.gz
        install -m 0644 debian/copyright ${DOCDIR}/copyright
        cd ${DPATCH} >/dev/null ;\
          find etc -type f -printf "/%p\n" >DEBIAN/conffiles
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to