Source: mailfilter
Version: 0.8.3-1
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 mailfilter could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, mailfilter can be built reproducibly in our current
reproducible
toolchain.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad mailfilter.orig/mailfilter-0.8.3/debian/rules 
mailfilter/mailfilter-0.8.3/debian/rules
--- mailfilter.orig/mailfilter-0.8.3/debian/rules       2015-02-12 
22:05:39.709241365 +0000
+++ mailfilter/mailfilter-0.8.3/debian/rules    2015-02-12 22:19:23.497813728 
+0000
@@ -1,11 +1,13 @@
 #!/usr/bin/make -f
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 %:
        dh $@ --with autotools_dev
 
 override_dh_auto_install:
        dh_auto_install
-       tar -czf ./debian/mailfilter/usr/share/doc/mailfilter/contrib.tar.gz 
./contrib
+       GZIP="-9n" tar -czf 
./debian/mailfilter/usr/share/doc/mailfilter/contrib.tar.gz 
--mtime="$(BUILD_DATE)" ./contrib
 
 override_dh_auto_clean:
        dh_auto_clean
_______________________________________________
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