Source: sen
Version: 0.3.0-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps fileordering

Hi!

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
reproducible.

Cheers,

Daniel

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
 [2]: 
https://tests.reproducible-builds.org/dbdtxt/unstable/amd64/sen_0.3.0-1.diffoscope.txt
 [3]: https://reproducible-builds.org/specs/source-date-epoch/
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
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to