Source: wcd Version: 5.2.5-1 Severity: wishlist Tags: patch User: reproducible-builds@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-builds@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
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 <dh...@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 <dh...@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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Reproducible-builds mailing list Reproducible-builds@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds