Source: mueller
Version: 2002.02.27-9
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 mueller could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, mueller 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 mueller.orig/mueller-2002.02.27/debian/Makefile 
mueller/mueller-2002.02.27/debian/Makefile
--- mueller.orig/mueller-2002.02.27/debian/Makefile     2015-01-27 
11:44:59.770873907 +0000
+++ mueller/mueller-2002.02.27/debian/Makefile  2015-01-27 11:50:40.057930640 
+0000
@@ -6,9 +6,13 @@
 
 OPENDICT_DIR=$(sharedir)/opendict/dictionaries/plain
 
+BUILD_DATE := $(shell dpkg-parsechangelog -l./changelog --show-field Date)
+
 all: mueller7.dict.dz mueller7accent.dict.dz
 
 %.dict.dz: %.dict
+       # Ensure deterministic mtime for dictzip to inherit
+       touch --date='$(BUILD_DATE)' $^
        dictzip -k $^
 
 mueller7accent.dict: mueller7accent.data
diff -urNad mueller.orig/mueller-2002.02.27/debian/scripts/df.sh 
mueller/mueller-2002.02.27/debian/scripts/df.sh
--- mueller.orig/mueller-2002.02.27/debian/scripts/df.sh        2015-01-27 
11:44:59.770873907 +0000
+++ mueller/mueller-2002.02.27/debian/scripts/df.sh     2015-01-27 
11:50:58.618746102 +0000
@@ -8,4 +8,5 @@
         --columns 0 \
         -u "http://www.chat.ru/~mueller_dic"; \
         -s "Mueller English-Russian Dictionary$3" \
+       --without-time \
         "${1%.data}" < "$1"
_______________________________________________
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