Bug#854492: xlsx2csv: please make the build reproducible (timestamps)

Daniel Shahaf danielsh at apache.org
Tue Feb 7 17:16:14 UTC 2017


Source: xlsx2csv
Version: 0.20+20161027+git5785081-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that xlsx2csv could not be built reproducibly:

> make[1]: Entering directory '/build/1st/xlsx2csv-0.20+20161027+git5785081'
> tail: cannot open 'changelog' for reading: No such file or directory
> dpkg-parsechangelog: error: tail of changelog gave error exit status 1
> /usr/bin/make -C man -f pod2man.mk \
> PODDATE="2018-03-12" \
> PACKAGE=xlsx2csv \
> makeman

The attached patch fixes this.  (Tested with stable's version of
devscripts because my sbuild is broken.)

Cheers,

Daniel

 [1]: https://wiki.debian.org/ReproducibleBuilds

diff --git a/debian/rules b/debian/rules
index e902925..2cf0f62 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
 PACKAGE		= xlsx2csv
 URL		= git://github.com/dilshod/xlsx2csv.git
 UPSTREAMDIR	= ../upstream.git
-BUILD_DATE      = $(shell dpkg-parsechangelog -S Date -lchangelog)
+BUILD_DATE      = $(shell dpkg-parsechangelog -S Date)
 PODDATE         = $(shell date -u "+%Y-%m-%d" -d "$(BUILD_DATE)")
 
 man:



More information about the Reproducible-bugs mailing list