Source: cryptsetup
Version: 2:1.6.6-5
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps

Hi,

I noticed that the package cryptsetup[1] could not be build reproducibly.

The attached patch fixes the timestamp included in the man pages (taken
from the changelog) to be the same independently of the timezone of the
machine.


[1] https://reproducible.debian.net/rb-pkg/unstable/amd64/cryptsetup.html
--- cryptsetup-1.6.6/debian/rules.cpy   2015-03-20 19:33:43.298048409 +0100
+++ cryptsetup-1.6.6/debian/rules       2015-03-20 19:35:03.738447291 +0100
@@ -7,9 +7,8 @@
 
 DEB_VERSION := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |          \
                                egrep '^Version:' | head -n1 | cut -f2 -d ' '    ))
-DEB_DATE    := $(strip $(shell LC_ALL=C dpkg-parsechangelog          |          \
-                               egrep '^Date:'    | head -n1 | cut -f2- -d ' ' | \
-                               LC_ALL=C date --file=- +%F                       ))
+DEB_DATE    := $(strip $(shell LC_ALL=C dpkg-parsechangelog --show-field Date | \
+                               LC_ALL=C date -u --file=- +%F                    ))
 
 # These are used for cross-compiling and for saving the configure script
 # from having to guess our platform (since we know it already)

Reply via email to