[Reproducible-builds] Bug#795983: dbusada: please make the build reproducible

Dhole dhole at openmailbox.org
Tue Aug 18 13:06:47 UTC 2015


Source: dbusada
Version: 0.3-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at 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
-------------- next part --------------
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 <dhole at 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 <dhole at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150818/453d992d/attachment.sig>


More information about the Reproducible-builds mailing list