Source: fswatch Version: 1.11.2+repack-2 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that fswatch could not be built reproducibly. This is because the manpage used the output of the date(1) cmd Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1970-01-01 09:00:00.000000000 +0900 --- b/debian/patches/reproducible-build.patch 2017-11-27 09:51:55.628558049 +0900 @@ -0,0 +1,16 @@ +Description: Make the build reproducible +Author: Chris Lamb <[email protected]> +Last-Update: 2017-11-27 + +--- fswatch-1.11.2+repack.orig/configure.ac ++++ fswatch-1.11.2+repack/configure.ac +@@ -285,6 +285,9 @@ AS_VAR_IF([use_docker], [yes], + + # Variables used in man files. + MAN_DATE=$(date +'%B %d, %Y') ++if test -n "$SOURCE_DATE_EPOCH"; then ++ MAN_DATE=$(LC_ALL=C date --utc --date=@$SOURCE_DATE_EPOCH +'%B %d, %Y') ++fi + FSWATCH=${PACKAGE_NAME} + MAN_BUG_REPORT=${PACKAGE_BUGREPORT} + --- a/debian/patches/series 1970-01-01 09:00:00.000000000 +0900 --- b/debian/patches/series 2017-11-27 09:51:54.836554739 +0900 @@ -0,0 +1 @@ +reproducible-build.patch

