Source: sen
Version: 0.3.0-1
Severity: wishlist
Tags: patch
Usertags: timestamps fileordering


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

The attached patch renders the build timestamp in a consistent timezone,
causing the "build date" comment in the man page nroff source to be



P.S. Incidentally, setting the "build date" to the changelog timestamp —
as sen does — is indeed the recommended approach: see [3]. 

diff --git a/debian/rules b/debian/rules
index d5be1f2..d39019d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,7 @@
 #export DH_VERBOSE = 1
 export LC_ALL=C.UTF-8
-DATE := $(shell date --date="$$(dpkg-parsechangelog --show-field Date)" +%F)
+DATE := $(shell env TZ=UTC date --date="$$(dpkg-parsechangelog --show-field Date)" +%F)
 	dh $@ --with python3 --buildsystem=pybuild
Reproducible-builds mailing list

Reply via email to