Source: aghermann Version: 1.0.9-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 aghermann 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 02:00:00.000000000 +0200 --- b/debian/patches/reproducible_build.patch 2016-06-23 16:54:48.094685419 +0200 @@ -0,0 +1,13 @@ +--- aghermann-1.0.9.orig/configure.ac ++++ aghermann-1.0.9/configure.ac +@@ -192,8 +192,8 @@ fi + + dnl Any private defines + AC_SUBST(user, [`whoami`@`hostname`]) +-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_OUTPUT([ + Makefile --- a/debian/patches/series 1970-01-01 02:00:00.000000000 +0200 --- b/debian/patches/series 2016-06-23 16:54:45.902665756 +0200 @@ -0,0 +1 @@ +reproducible_build.patch