Source: dict-foldoc
Version: 20140720-1
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-foldoc could not be built reproducibly.
The attached patch removes timestamps from the build system. Once
applied, dict-foldoc 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-foldoc.orig/dict-foldoc-20140720/debian/rules
dict-foldoc/dict-foldoc-20140720/debian/rules
--- dict-foldoc.orig/dict-foldoc-20140720/debian/rules 2015-01-27
16:16:03.441961800 +
+++ dict-foldoc/dict-foldoc-20140720/debian/rules 2015-01-27
17:05:00.383934417 +
@@ -2,7 +2,7 @@
FILES_TO_CLEAN = foldoc.* newdict
DICTDIR = debian/dict-foldoc/usr/share/dictd
-
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
install_file = install -p -o root -g root -m 644
@@ -33,7 +33,9 @@
/usr/bin/dictfmt -f --headword-separator %%% --break-headwords \
--allchars -u http://foldoc.org/Dictionary.gz \
-s The Free On-line Dictionary of Computing ($$udate) \
- --utf8 foldoc
+ --utf8 --without-time foldoc
+ # Ensure deterministic mtime for dictzip to inherit
+ touch --date='$(BUILD_DATE)' foldoc.dict
/usr/bin/dictzip -v foldoc.dict
touch $@