Source: dbusada
Version: 0.3-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 dbusada 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, dbusada
can be built reproducibly in our current experimental framework.

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


Regards,
-- 
Dhole
diff -Nru dbusada-0.3/debian/changelog dbusada-0.3/debian/changelog
--- dbusada-0.3/debian/changelog        2014-08-14 16:39:43.000000000 +0200
+++ dbusada-0.3/debian/changelog        2015-08-17 13:25:10.000000000 +0200
@@ -1,3 +1,13 @@
+dbusada (0.3-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 <dh...@openmailbox.org>  Mon, 17 Aug 2015 13:24:33 +0200
+
 dbusada (0.3-1) unstable; urgency=medium
 
   * Update gbp.conf settings
diff -Nru dbusada-0.3/debian/patches/fix-timezone-asciidoc.patch 
dbusada-0.3/debian/patches/fix-timezone-asciidoc.patch
--- dbusada-0.3/debian/patches/fix-timezone-asciidoc.patch      1970-01-01 
01:00:00.000000000 +0100
+++ dbusada-0.3/debian/patches/fix-timezone-asciidoc.patch      2015-08-17 
13:26:01.000000000 +0200
@@ -0,0 +1,16 @@
+Description: Fix timezone in asciidoc
+ Set TZ=UTC before calling asciidoc to make the embedded dates invariant
+ to timezone so that the package can be build reproducibly.
+Author: Eduard Sanou <dh...@openmailbox.org>
+
+--- dbusada-0.3.orig/doc/Makefile
++++ dbusada-0.3/doc/Makefile
+@@ -16,7 +16,7 @@ $(DESTDIR)/asciidoc.css: asciidoc.css
+       cp $< $@
+ 
+ $(DESTDIR)/index.html: index page.conf ../README
+-      asciidoc $(ASCIIDOC_OPTS) $< > $@
++      TZ=UTC asciidoc $(ASCIIDOC_OPTS) $< > $@
+ 
+ clean:
+       rm -f $(DESTDIR)/*
diff -Nru dbusada-0.3/debian/patches/series dbusada-0.3/debian/patches/series
--- dbusada-0.3/debian/patches/series   1970-01-01 01:00:00.000000000 +0100
+++ dbusada-0.3/debian/patches/series   2015-08-17 13:25:39.000000000 +0200
@@ -0,0 +1 @@
+fix-timezone-asciidoc.patch

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to