[Reproducible-builds] Bug#796375: wcd: please make the build reproducible
Dhole
dhole at openmailbox.org
Fri Aug 21 15:27:53 UTC 2015
Source: wcd
Version: 5.2.5-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 wcd could not be built reproducibly.
The attached patch sets the embedded date in the man pages generated by
podman to the latest debian/changelog entry timestamp instead of local
date. Once applied, wcd can be built reproducibly in our current
experimental framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
Dhole
-------------- next part --------------
diff -Nru wcd-5.2.5/debian/changelog wcd-5.2.5/debian/changelog
--- wcd-5.2.5/debian/changelog 2014-06-13 04:35:22.000000000 +0200
+++ wcd-5.2.5/debian/changelog 2015-08-21 17:13:05.000000000 +0200
@@ -1,3 +1,11 @@
+wcd (5.2.5-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Replace date embedded in man page by the latest debian/changelog entry
+ timestamp to make the package build reproducibly.
+
+ -- Eduard Sanou <dhole at openmailbox.org> Fri, 21 Aug 2015 16:58:37 +0200
+
wcd (5.2.5-1) unstable; urgency=low
* New upstream release.
diff -Nru wcd-5.2.5/debian/patches/fix-timestamp-man.patch wcd-5.2.5/debian/patches/fix-timestamp-man.patch
--- wcd-5.2.5/debian/patches/fix-timestamp-man.patch 1970-01-01 01:00:00.000000000 +0100
+++ wcd-5.2.5/debian/patches/fix-timestamp-man.patch 2015-08-21 17:14:29.000000000 +0200
@@ -0,0 +1,20 @@
+Description: Fix timestamp in man pages
+ Replace the embedded timestamp in man pages by the latest debian/changelog
+ entry timestamp to make the man pages reproducible.
+Author: Eduard Sanou <dhole at openmailbox.org>
+
+--- wcd-5.2.5.orig/src/man/man1/Makefile
++++ wcd-5.2.5/src/man/man1/Makefile
+@@ -33,7 +33,11 @@ PACKAGE ?= wcd
+
+ # Optional variables to set
+ MANSECT ?= 1
+-PODCENTER ?= $$(date "+%Y-%m-%d")
++ifdef SOURCE_DATE_EPOCH
++ PODCENTER ?= $$(date -u -d @${SOURCE_DATE_EPOCH} "+%Y-%m-%d")
++else
++ PODCENTER ?= $$(date "+%Y-%m-%d")
++endif
+
+ # Directories
+ MANSRC =
diff -Nru wcd-5.2.5/debian/patches/series wcd-5.2.5/debian/patches/series
--- wcd-5.2.5/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ wcd-5.2.5/debian/patches/series 2015-08-21 17:13:34.000000000 +0200
@@ -0,0 +1 @@
+fix-timestamp-man.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/20150821/4ce021d2/attachment.sig>
More information about the Reproducible-builds
mailing list