Source: stressapptest Version: 1.0.6-2 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi, Whilst working on the "reproducible builds" effort [0], we noticed that stressapptest could not be built reproducibly. Patch attached. [0] https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproducible_build 1970-01-01 02:00:00.000000000 +0200 --- b/debian/patches/reproducible_build 2016-07-17 15:55:23.021436026 +0200 @@ -0,0 +1,18 @@ +Author: Chris Lamb <la...@debian.org> +Last-Update: 2016-07-17 + +--- stressapptest-1.0.6.orig/configure.ac ++++ stressapptest-1.0.6/configure.ac +@@ -95,7 +95,11 @@ hostname=$(uname -n) + AC_MSG_CHECKING([host name]) + AC_MSG_RESULT([$hostname]) + +-timestamp=$(date) ++if test -n "$SOURCE_DATE_EPOCH"; then ++ timestamp=$(LC_ALL=C date --utc --date=@$SOURCE_DATE_EPOCH) ++else ++ timestamp=$(date) ++fi + AC_MSG_CHECKING([current timestamp]) + AC_MSG_RESULT([$timestamp]) + --- a/debian/patches/series 2016-07-17 15:32:30.793480316 +0200 --- b/debian/patches/series 2016-07-17 15:55:15.493349335 +0200 @@ -1,3 +1,4 @@ armhf_support support_i486_builds support_i586_builds +reproducible_build