Source: dict-moby-thesaurus
Version: 1.0-6.2
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 dict-moby-thesaurus could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, dict-moby-thesaurus 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 dict-moby-thesaurus.orig/dict-moby-thesaurus-1.0/debian/rules 
dict-moby-thesaurus/dict-moby-thesaurus-1.0/debian/rules
--- dict-moby-thesaurus.orig/dict-moby-thesaurus-1.0/debian/rules       
2015-01-27 12:09:08.070699663 +0000
+++ dict-moby-thesaurus/dict-moby-thesaurus-1.0/debian/rules    2015-01-27 
12:10:17.097743701 +0000
@@ -17,6 +17,8 @@
        INSTALL_PROGRAM += -s
 endif
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 configure: configure-stamp
 configure-stamp:
        dh_testdir
@@ -32,6 +34,8 @@
 
        # Add here commands to compile the package.
        $(PYTHON) conv.py < mthesaur.txt
+       # Ensure deterministic mtime for dictzip to inherit
+       touch --date='$(BUILD_DATE)' moby-thesaurus.dict
        dictzip moby-thesaurus.dict
        touch build-stamp
 
_______________________________________________
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