Source: valknut Version: 0.4.9-2.1 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 valknut 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.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible_build.patch 2016-08-11 13:56:48.523933869 +0100 @@ -0,0 +1,20 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2016-08-11 + +--- valknut-0.4.9.orig/configure.in ++++ valknut-0.4.9/configure.in +@@ -124,7 +124,12 @@ fi + + AC_MSG_CHECKING([for build date and svn revision]) + +-SERIAL="`date +%Y%m%d`" ++if test "x${SOURCE_DATE_EPOCH}" = "x" ++then ++ SERIAL="`date +%Y%m%d`" ++else ++ SERIAL="`date --utc --date="@${SOURCE_DATE_EPOCH}" +%Y%m%d`" ++fi + AC_SUBST(SERIAL) + + VALKNUT_BUILD_INFO="Build date: $SERIAL" --- a/debian/patches/series 2016-08-11 13:37:41.482865553 +0100 --- b/debian/patches/series 2016-08-11 13:56:47.279917942 +0100 @@ -1,2 +1,3 @@ manpages.patch gcc_4.7.patch +reproducible_build.patch