Source: dict-stardic Version: 1.3.1-4 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi, While working on the "reproducible builds" effort [1], we have noticed that dict-stardic could not be built reproducibly. The attached patch removes timestamps from the build system. Once applied, dict-stardic 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-stardic.orig/dict-stardic-1.3.1/debian/rules dict-stardic/dict-stardic-1.3.1/debian/rules --- dict-stardic.orig/dict-stardic-1.3.1/debian/rules 2015-01-27 22:51:14.699367508 +0000 +++ dict-stardic/dict-stardic-1.3.1/debian/rules 2015-01-27 22:52:14.426009212 +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 @@ -25,7 +25,9 @@ dh_testdir ./convert.sh - cat stardic | /usr/bin/dictfmt -t -s "Stardic English-Chinese Dictionary" stardic + cat stardic | /usr/bin/dictfmt -t -s "Stardic English-Chinese Dictionary" --without-time stardic + # Ensure deterministic mtime for dictzip to inherit + touch --date='$(BUILD_DATE)' stardic.dict /usr/bin/dictzip -v stardic.dict touch build-stamp