[Reproducible-builds] Bug#795984: postgresql-plproxy: please make the build reproducible
Dhole
dhole at openmailbox.org
Tue Aug 18 13:15:05 UTC 2015
Source: postgresql-plproxy
Version: 2.5-5
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 postgresql-plproxy 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,
postgresql-plproxy can be built reproducibly in our current experimental
framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
Dhole
-------------- next part --------------
diff -Nru postgresql-plproxy-2.5/debian/changelog postgresql-plproxy-2.5/debian/changelog
--- postgresql-plproxy-2.5/debian/changelog 2014-07-27 11:44:25.000000000 +0200
+++ postgresql-plproxy-2.5/debian/changelog 2015-08-17 16:29:06.000000000 +0200
@@ -1,3 +1,11 @@
+postgresql-plproxy (2.5-5.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 16:28:54 +0200
+
postgresql-plproxy (2.5-5) unstable; urgency=medium
* Rebuild against PostgreSQL 9.4.
diff -Nru postgresql-plproxy-2.5/debian/patches/fix-timezone-asciidoc.patch postgresql-plproxy-2.5/debian/patches/fix-timezone-asciidoc.patch
--- postgresql-plproxy-2.5/debian/patches/fix-timezone-asciidoc.patch 1970-01-01 01:00:00.000000000 +0100
+++ postgresql-plproxy-2.5/debian/patches/fix-timezone-asciidoc.patch 2015-08-17 16:31:06.000000000 +0200
@@ -0,0 +1,14 @@
+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>
+
+--- postgresql-plproxy-2.5.orig/doc/Makefile
++++ postgresql-plproxy-2.5/doc/Makefile
+@@ -16,5 +16,5 @@ web: $(HTML)
+ rsync -avz $(HTML) $(web)/doc/
+
+ %.html: %.txt
+- $(ASCIIDOC) -a toc $<
++ TZ=UTC $(ASCIIDOC) -a toc $<
+
diff -Nru postgresql-plproxy-2.5/debian/patches/series postgresql-plproxy-2.5/debian/patches/series
--- postgresql-plproxy-2.5/debian/patches/series 2013-08-16 22:33:28.000000000 +0200
+++ postgresql-plproxy-2.5/debian/patches/series 2015-08-17 16:30:54.000000000 +0200
@@ -1,2 +1,3 @@
makefile
plproxy.h
+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/ba5249d1/attachment.sig>
More information about the Reproducible-builds
mailing list