Source: mstflint Version: 4.8.0-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that mstflint could not be built reproducibly. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/0012-Reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/0012-Reproducible-build.patch 2018-01-05 08:46:07.735409999 +0000 @@ -0,0 +1,16 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2018-01-05 + +--- mstflint-4.8.0.orig/configure.ac ++++ mstflint-4.8.0/configure.ac +@@ -172,6 +172,9 @@ AX_CHECK_COMPILE_FLAG([-Wno-format-overf + + + TOOLS_BUILD_TIME=`date +"%b %d %Y\, %H:%M:%S"` ++if test "x$SOURCE_DATE_EPOCH" != "x"; then ++ TOOLS_BUILD_TIME=`LC_ALL=C date -u -d @$SOURCE_DATE_EPOCH" +"%b %d %Y\, %H:%M:%S"` ++fi + AC_SUBST(TOOLS_BUILD_TIME) + + AC_ARG_VAR(MFT_VERSION_STR, The MSTFLINT version) --- a/debian/patches/series 2018-01-05 08:32:13.726316507 +0000 --- b/debian/patches/series 2018-01-05 08:46:06.911404884 +0000 @@ -8,3 +8,4 @@ use-system-libs.patch dont-install-libmtcr_ul.patch 0011-Declare-m4-as-an-AC_CONFIG_MACRO_DIR-in-configure.ac.patch +0012-Reproducible-build.patch