Source: forked-daapd Version: 24.2-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 forked-daapd 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/reproducible_build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible_build.patch 2017-04-01 22:12:47.871649354 +0100 @@ -0,0 +1,17 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2017-04-01 + +--- forked-daapd-24.2.orig/configure.ac ++++ forked-daapd-24.2/configure.ac +@@ -5,6 +5,10 @@ AC_CONFIG_SRCDIR([config.h.in]) + AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_HEADERS([config.h]) + AC_DEFINE_UNQUOTED([BUILDDATE], ["`date -Idate`"], [Build date]) ++if test "x$SOURCE_DATE_EPOCH" != x; then ++ AC_DEFINE_UNQUOTED([BUILDDATE], ["`date -Idate --utc --date='@$SOURCE_DATE_EPOCH`"], [Build date]) ++fi ++ + AM_INIT_AUTOMAKE([foreign -Wno-portability subdir-objects]) + + AC_USE_SYSTEM_EXTENSIONS --- a/debian/patches/series 2017-04-01 22:00:36.360145132 +0100 --- b/debian/patches/series 2017-04-01 22:13:01.359714249 +0100 @@ -1 +1 @@ - +reproducible_build.patch