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

Bug#795981: x11proto-input: please make the build reproducible



Source: x11proto-input
Version: 2.3.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

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

The attached patch sets the timezone to UTC before calling asciidoc to
avoid timezone differences in the generated docs. Once applied,
x11proto-input can be built reproducibly in our current experimental
framework.

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


Regards,
-- 
Dhole
diff -u x11proto-input-2.3.1/debian/changelog x11proto-input-2.3.1/debian/changelog
--- x11proto-input-2.3.1/debian/changelog
+++ x11proto-input-2.3.1/debian/changelog
@@ -1,3 +1,11 @@
+x11proto-input (2.3.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Set TZ=UTC before calling asciidoc to make the embedded dates invariant to 
+    timezones in order to make the package build reproducibly.
+
+ -- Eduard Sanou <dhole@openmailbox.org>  Mon, 17 Aug 2015 16:22:00 +0200
+
 x11proto-input (2.3.1-1) unstable; urgency=medium
 
   * New upstream release.
only in patch2:
unchanged:
--- x11proto-input-2.3.1.orig/specs/Makefile.am
+++ x11proto-input-2.3.1/specs/Makefile.am
@@ -6,7 +6,7 @@
 dist_doc_DATA = XI2proto.txt XIproto.txt
 
 %.html: %.txt
-	$(AM_V_GEN)$(ASCIIDOC) -o $@ $<
+	TZ=UTC $(AM_V_GEN)$(ASCIIDOC) -o $@ $<
 
 CLEANFILES = $(doc_DATA)
 

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: