[Reproducible-builds] Bug#795975: unoconv: please make the build reproducible
Dhole
dhole at openmailbox.org
Tue Aug 18 12:58:33 UTC 2015
Source: unoconv
Version: 0.6-6
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 unoconv 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, unoconv
can be builtreproducibly in our current experimental framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
Dhole
-------------- next part --------------
diff -Nru unoconv-0.6/debian/changelog unoconv-0.6/debian/changelog
--- unoconv-0.6/debian/changelog 2014-01-11 20:02:32.000000000 +0100
+++ unoconv-0.6/debian/changelog 2015-08-17 12:22:44.000000000 +0200
@@ -1,3 +1,11 @@
+unoconv (0.6-6.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Set TZ=UTC in 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 12:22:05 +0200
+
unoconv (0.6-6) unstable; urgency=low
* Add support for Microsoft Works and Microsoft Excel 2007 XML.
diff -Nru unoconv-0.6/debian/patches/fix-timezone-asciidoc.patch unoconv-0.6/debian/patches/fix-timezone-asciidoc.patch
--- unoconv-0.6/debian/patches/fix-timezone-asciidoc.patch 1970-01-01 01:00:00.000000000 +0100
+++ unoconv-0.6/debian/patches/fix-timezone-asciidoc.patch 2015-08-17 12:24:30.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>
+
+--- unoconv-0.6.orig/doc/Makefile
++++ unoconv-0.6/doc/Makefile
+@@ -20,7 +20,7 @@ clean:
+ rm -f unconv.1 *.html *.xml
+
+ %.1.html: %.1.txt
+- asciidoc -d manpage $<
++ TZ=UTC asciidoc -d manpage $<
+
+ %.1: %.1.xml
+ xmlto man $<
diff -Nru unoconv-0.6/debian/patches/series unoconv-0.6/debian/patches/series
--- unoconv-0.6/debian/patches/series 2014-01-11 20:02:32.000000000 +0100
+++ unoconv-0.6/debian/patches/series 2015-08-17 12:23:40.000000000 +0200
@@ -4,3 +4,4 @@
python3-stdout-fix.patch
support-for-wps.patch
support-for-xlsx.patch
+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/cac550b6/attachment.sig>
More information about the Reproducible-builds
mailing list