Bug#886989: fox1.6: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Jan 12 10:08:31 UTC 2018


Source: fox1.6
Version: 1.6.55-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed
that fox1.6 could not be built reproducibly.

This is because the date call in debian/rules (which does use
SOURCE_DATE_EPOCH - thanks!) does not correct ensure the timezone
is consistent across builds).

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/debian/rules b/debian/rules
index 17ab40c..5291ee9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,7 @@ endif
 
 include /usr/share/dpkg/pkg-info.mk
 export DEB_CPPFLAGS_MAINT_APPEND = -D_DEBDATE_=\"$(shell \
-	date -d @$(SOURCE_DATE_EPOCH) +%b-%d-%Y)\"
+	LC_ALL=C date -u -d @$(SOURCE_DATE_EPOCH) +%b-%d-%Y)\"
 
 %:
 	dh $@ --with autoreconf


More information about the Reproducible-bugs mailing list