Source: dict-xdict
Version: 0.1-4.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-xdict could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, dict-xdict 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-xdict.orig/dict-xdict-0.1/debian/rules 
dict-xdict/dict-xdict-0.1/debian/rules
--- dict-xdict.orig/dict-xdict-0.1/debian/rules 2015-01-27 11:41:03.120393427 
+0000
+++ dict-xdict/dict-xdict-0.1/debian/rules      2015-01-27 11:42:52.793249931 
+0000
@@ -9,7 +9,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
 
 CFLAGS = -Wall -g
 
@@ -24,7 +24,9 @@
 build-stamp:
        dh_testdir
 
-       cat Dictionary | /usr/bin/dictfmt -t xdict
+       cat Dictionary | /usr/bin/dictfmt -t xdict --without-time
+       # Ensure deterministic mtime for dictzip to inherit
+       touch --date='$(BUILD_DATE)' xdict.dict
        /usr/bin/dictzip -v xdict.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