Bug#882818: fswatch: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Nov 27 00:54:38 UTC 2017


Source: fswatch
Version: 1.11.2+repack-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- 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 <lamby at debian.org>
+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


More information about the Reproducible-bugs mailing list