[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#830922: kernel-handbook: please make the build reproducible



Source: kernel-handbook
Version: 1.0.17+nm
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-builds@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
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@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

Attachment: signature.asc
Description: PGP signature


Reply to: