[Reproducible-builds] Bug#828790: debiandoc-sgml-doc: please make the build reproducible

Dhole dhole at riseup.net
Mon Jun 27 20:35:08 UTC 2016


Source: debiandoc-sgml-doc 
Version: 1.1.24+nm 
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

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

When generating the documentation files, a timestamp of the last changelog entry
is embedded in the local timezone.

The attached patch fixes this setting the timestamp to UTC. Once applied,
debiandoc-sgml-doc can be built reproducibly in our current experimental
framework.

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

Regards,
-- 
Dhole
-------------- next part --------------
diff -Nru debiandoc-sgml-doc-1.1.24/debian/changelog debiandoc-sgml-doc-1.1.24+nmu1/debian/changelog
--- debiandoc-sgml-doc-1.1.24/debian/changelog	2015-08-12 18:31:34.000000000 +0200
+++ debiandoc-sgml-doc-1.1.24+nmu1/debian/changelog	2016-06-27 21:34:23.000000000 +0200
@@ -1,3 +1,10 @@
+debiandoc-sgml-doc (1.1.24+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Set the embedded date to UTC to make it reproducible. 
+
+ -- Eduard Sanou <dhole at openmailbox.org>  Mon, 27 Jun 2016 21:34:14 +0200
+
 debiandoc-sgml-doc (1.1.24) unstable; urgency=medium
 
   * Reproducible build with the new debiandoc-sgml 1.2.31-1.
diff -Nru debiandoc-sgml-doc-1.1.24/debian/rules debiandoc-sgml-doc-1.1.24+nmu1/debian/rules
--- debiandoc-sgml-doc-1.1.24/debian/rules	2015-08-12 18:18:25.000000000 +0200
+++ debiandoc-sgml-doc-1.1.24+nmu1/debian/rules	2016-06-27 21:34:09.000000000 +0200
@@ -8,7 +8,7 @@
 #export DH_VERBOSE=1
 
 # Reproduceble build
-DEBIANDOC_DATE ?= $(shell date +'%Y-%m-%d' -d"`dpkg-parsechangelog -SDate`")
+DEBIANDOC_DATE ?= $(shell date --utc +'%Y-%m-%d' -d"`dpkg-parsechangelog -SDate`")
 export DEBIANDOC_DATE
 
 ## ----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160627/21bccf9b/attachment.sig>


More information about the Reproducible-builds mailing list