Source: xlsx2csv Version: 0.20+20121013+gitfa44ba6-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 xlsx2csv could not be built reproducibly. The attached patch replaces the timestamp in the docs with the latest debian/changelog entry timestamp. Once applied, xlsx2csv can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds Regards, -- Dhole
diff -Nru xlsx2csv-0.20+20121013+gitfa44ba6/debian/changelog xlsx2csv-0.20+20121013+gitfa44ba6/debian/changelog --- xlsx2csv-0.20+20121013+gitfa44ba6/debian/changelog 2013-06-06 06:43:15.000000000 +0200 +++ xlsx2csv-0.20+20121013+gitfa44ba6/debian/changelog 2015-08-10 23:39:03.000000000 +0200 @@ -1,3 +1,11 @@ +xlsx2csv (0.20+20121013+gitfa44ba6-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Replace man timestamp by the latest debian/changelog entry timestamp + to make the package build reproducible. + + -- Eduard Sanou <dh...@openmailbox.org> Mon, 10 Aug 2015 23:38:31 +0200 + xlsx2csv (0.20+20121013+gitfa44ba6-1) unstable; urgency=low * Initial release (Closes: #690354). diff -Nru xlsx2csv-0.20+20121013+gitfa44ba6/debian/patches/honour-SOURCE_DATE_EPOCH.patch xlsx2csv-0.20+20121013+gitfa44ba6/debian/patches/honour-SOURCE_DATE_EPOCH.patch --- xlsx2csv-0.20+20121013+gitfa44ba6/debian/patches/honour-SOURCE_DATE_EPOCH.patch 1970-01-01 01:00:00.000000000 +0100 +++ xlsx2csv-0.20+20121013+gitfa44ba6/debian/patches/honour-SOURCE_DATE_EPOCH.patch 2015-08-10 23:40:17.000000000 +0200 @@ -0,0 +1,20 @@ +Description: Fix man timestamp + Replace man timestamp with the latest debian/changelog timestamp entry to + make the man pages reproducible. +Author: Eduard Sanou <dh...@openmailbox.org> + +--- xlsx2csv-0.20+20121013+gitfa44ba6.orig/man/pod2man.mk ++++ xlsx2csv-0.20+20121013+gitfa44ba6/man/pod2man.mk +@@ -40,7 +40,11 @@ PACKAGE ?= package + # Optional variables to set + MANSECT ?= 1 + PODCENTER ?= User Commands +-PODDATE ?= $$(date "+%Y-%m-%d") ++ifdef SOURCE_DATE_EPOCH ++ PODDATE ?= $$(date -u -d @${SOURCE_DATE_EPOCH} "+%Y-%m-%d") ++else ++ PODDATE ?= $$(date "+%Y-%m-%d") ++endif + + # Directories + MANSRC ?= diff -Nru xlsx2csv-0.20+20121013+gitfa44ba6/debian/patches/series xlsx2csv-0.20+20121013+gitfa44ba6/debian/patches/series --- xlsx2csv-0.20+20121013+gitfa44ba6/debian/patches/series 2013-06-06 06:43:15.000000000 +0200 +++ xlsx2csv-0.20+20121013+gitfa44ba6/debian/patches/series 2015-08-10 23:39:23.000000000 +0200 @@ -1 +1,2 @@ 10-eol-handler.patch +honour-SOURCE_DATE_EPOCH.patch diff -Nru xlsx2csv-0.20+20121013+gitfa44ba6/debian/rules xlsx2csv-0.20+20121013+gitfa44ba6/debian/rules --- xlsx2csv-0.20+20121013+gitfa44ba6/debian/rules 2013-06-06 06:43:15.000000000 +0200 +++ xlsx2csv-0.20+20121013+gitfa44ba6/debian/rules 2015-08-10 23:34:29.000000000 +0200 @@ -4,6 +4,8 @@ URL = git://github.com/dilshod/xlsx2csv.git UPSTREAMDIR = ../upstream.git +export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SDate)" +%s) + man: $(MAKE) -C man -f pod2man.mk PACKAGE=$(PACKAGE) makeman
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