Source: cnrun Version: 1.1.14-1.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 cnrun 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/0001-reproducible-build.diff 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/0001-reproducible-build.diff 2016-06-09 17:02:39.635717264 +0100 @@ -0,0 +1,13 @@ +--- cnrun-1.1.14.orig/configure.ac ++++ cnrun-1.1.14/configure.ac +@@ -79,8 +79,8 @@ dnl defaulting to no to enable make dist + AM_CONDITIONAL(DO_PCH, test x$do_pch = xyes) + + +-AC_SUBST(build_date, [`date +"%F"`]) +-AC_SUBST(build_datetime, [`date`]) ++AC_SUBST(build_date, [`date --utc --date=@${SOURCE_DATE_EPOCH:-$(date +%s)} +"%F"`]) ++AC_SUBST(build_datetime, [`date --utc --date=@${SOURCE_DATE_EPOCH:-$(date +%s)}`]) + AC_SUBST(docdir, [${prefix}/share/doc/${PACKAGE_TARNAME}]) + + AC_OUTPUT([ --- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/series 2016-06-09 17:02:36.099672720 +0100 @@ -0,0 +1 @@ +0001-reproducible-build.diff