Source: keyutils
Version: 1.5.9-9
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that keyutils could not be built reproducibly.
In the last upload support for SOURCE_DATE_EPOCH was added, but it is
still evaluated timezone-dependent.

The attached patch fixes this reading SOURCE_DATE_EPOCH in UTC.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index 272feb5..27bba4a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 # $SOURCE_DATE_EPOCH is exported by debhelper
-CHANGEDATE = $(shell date -d @$(SOURCE_DATE_EPOCH) +%F)
+CHANGEDATE = $(shell date -u -d @$(SOURCE_DATE_EPOCH) +%F)
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 

Reply via email to