[Reproducible-builds] Bug#830922: kernel-handbook: please make the build reproducible
Dhole
dhole at openmailbox.org
Tue Jul 12 23:50:55 UTC 2016
Source: kernel-handbook
Version: 1.0.17+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 kernel-handbook could not be built reproducibly.
A date and timestamp is embedded in the documentation using the local
timezone and locale.
The attached patch fixes this by fixing the timezone to UTC and the
locale to "C" in the timestamp. Once applied, kernel-handbook can be
built reproducibly in our current experimental framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
Dhole
-------------- next part --------------
diff -Nru kernel-handbook-1.0.17/debian/changelog kernel-handbook-1.0.17+nmu1/debian/changelog
--- kernel-handbook-1.0.17/debian/changelog 2016-03-07 03:08:15.000000000 +0100
+++ kernel-handbook-1.0.17+nmu1/debian/changelog 2016-07-13 01:29:10.000000000 +0200
@@ -1,3 +1,10 @@
+kernel-handbook (1.0.17+nmu1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix locale and timezone in embedded timestamp to make it reproducible.
+
+ -- Eduard Sanou <dhole at openmailbox.org> Wed, 13 Jul 2016 01:28:52 +0200
+
kernel-handbook (1.0.17) unstable; urgency=medium
* debian/control: Change Vcs-Git and Vcs-Browser to canonical HTTP-S URLs
diff -Nru kernel-handbook-1.0.17/Makefile kernel-handbook-1.0.17+nmu1/Makefile
--- kernel-handbook-1.0.17/Makefile 2015-11-13 22:33:04.000000000 +0100
+++ kernel-handbook-1.0.17+nmu1/Makefile 2016-07-13 01:37:47.000000000 +0200
@@ -1,5 +1,5 @@
version := $(shell dpkg-parsechangelog -SVersion)
-date := $(shell date -d "$$(dpkg-parsechangelog -SDate)")
+date := $(shell LC_ALL=C date --utc -d "$$(dpkg-parsechangelog -SDate)")
LANG_PO := ja
LANG_EN := en
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160713/0611847d/attachment.sig>
More information about the Reproducible-builds
mailing list