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

Dhole dhole at riseup.net
Sun Jun 26 17:40:06 UTC 2016


Source: debiandoc-sgml-doc-pt-br 
Version: 1.1.12+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-pt-br could not be built reproducibly.

When generating the documentation files, a timestamp of the current month and
year is embedded.

The attached patch fixes this by setting the timestamp to a reproducible value.
Once applied, debiandoc-sgml-doc-pt-br can be built reproducibly in our current
experimental framework.

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

Regards,

-- 
Dhole
-------------- next part --------------
diff -Nru debiandoc-sgml-doc-pt-br-1.1.12/debian/changelog debiandoc-sgml-doc-pt-br-1.1.12+nmu1/debian/changelog
--- debiandoc-sgml-doc-pt-br-1.1.12/debian/changelog	2016-02-03 12:48:25.000000000 +0100
+++ debiandoc-sgml-doc-pt-br-1.1.12+nmu1/debian/changelog	2016-06-25 20:47:02.000000000 +0200
@@ -1,3 +1,10 @@
+debiandoc-sgml-doc-pt-br (1.1.12+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Replace debiandoc timestamp by SOURCE_DATE_EPOCH.
+
+ -- Eduard Sanou <dhole at openmailbox.org>  Sat, 25 Jun 2016 20:46:48 +0200
+
 debiandoc-sgml-doc-pt-br (1.1.12) unstable; urgency=medium
 
   * Use onsgml for the migration from sp to opensp. Closes: #812188
diff -Nru debiandoc-sgml-doc-pt-br-1.1.12/debian/rules debiandoc-sgml-doc-pt-br-1.1.12+nmu1/debian/rules
--- debiandoc-sgml-doc-pt-br-1.1.12/debian/rules	2016-02-02 10:21:32.000000000 +0100
+++ debiandoc-sgml-doc-pt-br-1.1.12+nmu1/debian/rules	2016-06-26 00:15:08.000000000 +0200
@@ -7,6 +7,10 @@
 ## uncomment this to turn on verbose mode
 #export DH_VERBOSE=1
 
+ifdef SOURCE_DATE_EPOCH
+	export DEBIANDOC_DATE ?= $(shell LC_ALL=pt_BR date -u -d "@$(SOURCE_DATE_EPOCH)" +"%d %B %Y")
+endif
+
 ## ----------------------------------------------------------------------
 ## Targets
 
-------------- 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/20160626/55b8a6da/attachment.sig>


More information about the Reproducible-builds mailing list