Bug#795977: dahdi-tools: please make the build reproducible
Dhole
dhole at openmailbox.org
Tue Aug 18 13:04:03 UTC 2015
Source: dahdi-tools
Version: 1:2.10.2-2
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 dahdi-tools 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,
dahdi-tools can be built reproducibly in our current experimental framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
Dhole
-------------- next part --------------
diff -Nru dahdi-tools-2.10.2/debian/changelog dahdi-tools-2.10.2/debian/changelog
--- dahdi-tools-2.10.2/debian/changelog 2015-06-28 22:08:29.000000000 +0200
+++ dahdi-tools-2.10.2/debian/changelog 2015-08-17 12:46:16.000000000 +0200
@@ -1,3 +1,11 @@
+dahdi-tools (1:2.10.2-2.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 12:44:19 +0200
+
dahdi-tools (1:2.10.2-2) unstable; urgency=medium
* gcc5.patch (Closes: #777829).
diff -Nru dahdi-tools-2.10.2/debian/patches/fix-timezone-asciidoc.patch dahdi-tools-2.10.2/debian/patches/fix-timezone-asciidoc.patch
--- dahdi-tools-2.10.2/debian/patches/fix-timezone-asciidoc.patch 1970-01-01 01:00:00.000000000 +0100
+++ dahdi-tools-2.10.2/debian/patches/fix-timezone-asciidoc.patch 2015-08-17 12:47:13.000000000 +0200
@@ -0,0 +1,20 @@
+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>
+
+--- dahdi-tools-2.10.2.orig/Makefile
++++ dahdi-tools-2.10.2/Makefile
+@@ -209,10 +209,10 @@ genconf_parameters.sample: xpp/genconf_p
+ README.html: README system.conf.asciidoc init.conf.asciidoc tonezones.txt \
+ UPGRADE.txt genconf_parameters.asciidoc assigned-spans.conf.asciidoc \
+ span-types.conf.asciidoc
+- $(ASCIIDOC) -n -a toc -a toclevels=4 $<
++ TZ=UTC $(ASCIIDOC) -n -a toc -a toclevels=4 $<
+
+ README.Astribank.html: xpp/README.Astribank
+- $(ASCIIDOC) -o $@ -n -a toc -a toclevels=4 $<
++ TZ=UTC $(ASCIIDOC) -o $@ -n -a toc -a toclevels=4 $<
+
+ # on Debian: this requires the full groff, not just groff-base.
+ %.8.html: %.8
diff -Nru dahdi-tools-2.10.2/debian/patches/series dahdi-tools-2.10.2/debian/patches/series
--- dahdi-tools-2.10.2/debian/patches/series 2015-06-28 07:16:50.000000000 +0200
+++ dahdi-tools-2.10.2/debian/patches/series 2015-08-17 12:46:44.000000000 +0200
@@ -4,3 +4,4 @@
remove_dahdi_speed
debian-cflags.patch
gcc5.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/pkg-voip-maintainers/attachments/20150818/04a87513/attachment.sig>
More information about the Pkg-voip-maintainers
mailing list