[Reproducible-builds] Bug#792709: dict-jargon: please support timestamps from environment

Dhole dhole at openmailbox.org
Fri Jul 17 16:55:50 UTC 2015


Source: dict-jargon
Version: 4.4.7-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

While working on the "reproducible builds" effort [1], we have noticed
that dict-jargon could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, dict-jargon can be built reproducibly in our current
experimental framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds


Regards,
-- 
Dhole
-------------- next part --------------
diff -u dict-jargon-4.4.7/debian/jargon2dict.sh dict-jargon-4.4.7/debian/jargon2dict.sh
--- dict-jargon-4.4.7/debian/jargon2dict.sh
+++ dict-jargon-4.4.7/debian/jargon2dict.sh
@@ -77,7 +77,8 @@
 echo " [+] formatting dictionary database"
-  dictfmt -j -s "The Jargon File (version 4.4.7, 29 Dec 2003)" \
+  dictfmt -j -s "The Jargon File (version 4.4.7, 29 Dec 2003)" --without-time \
 	-u "http://catb.org/~esr/jargon/jargsrc.tar.gz" \
 	--utf8 --allchars --columns 79 'jargon' < 'extracted'
 
 echo " [+] compressing dictionary"
+  touch --date="$BUILD_DATE" jargon.dict
   dictzip 'jargon.dict'
diff -u dict-jargon-4.4.7/debian/rules dict-jargon-4.4.7/debian/rules
--- dict-jargon-4.4.7/debian/rules
+++ dict-jargon-4.4.7/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+export BUILD_DATE
 DICTDIR=$(CURDIR)/debian/dict-jargon/usr/share/dictd
 
 include /usr/share/quilt/quilt.make
diff -u dict-jargon-4.4.7/debian/changelog dict-jargon-4.4.7/debian/changelog
--- dict-jargon-4.4.7/debian/changelog
+++ dict-jargon-4.4.7/debian/changelog
@@ -1,3 +1,12 @@
+dict-jargon (4.4.7-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Replace timestamps with the last debian/changelog entry timestamp
+    before calling dictzip and remove timestamps in call to dictfmt to 
+    make the package build reproducibly.
+
+ -- Dhole <dhole at openmailbox.org>  Fri, 17 Jul 2015 17:56:55 +0200
+
 dict-jargon (4.4.7-2) unstable; urgency=low
 
   * Add dict-server to Depends (Closes: #533717)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150717/1258c992/attachment.sig>


More information about the Reproducible-builds mailing list