Source: wims Version: 1:4.11c~dfsg1-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 wims 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/90reproducible-build.patch 1969-12-31 19:00:00.000000000 -0500 --- b/debian/patches/90reproducible-build.patch 2016-08-03 16:20:00.459487438 -0400 @@ -0,0 +1,20 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2016-08-03 + +--- wims-4.11c~dfsg1.orig/wims/src/configure.ac ++++ wims-4.11c~dfsg1/wims/src/configure.ac +@@ -215,7 +215,12 @@ if test "$with_wimsd" = "yes"; then + BUILD_WIMSD=wimsd + fi + +-date=`date +%Y-%m-%d` ++if test -n "$SOURCE_DATE_EPOCH"; then ++ date=`date --utc --date="@$SOURCE_DATE_EPOCH" +%Y-%m-%d` ++else ++ date=`date +%Y-%m-%d` ++fi ++ + DEFINES="-DGNU_SOURCE -DVERSION_DATE=\\\"$date\\\"" + AC_SUBST(D_CASE_INSENSITIVE_FS) + AC_SUBST(STATIC_LIB) --- a/debian/patches/series 2016-08-03 16:10:18.278271329 -0400 --- b/debian/patches/series 2016-08-03 16:19:58.631468101 -0400 @@ -6,3 +6,4 @@ 60flydraw.patch 70fix-find-syntax-for-perm.patch 80makefile-for-jmEvers-scripts.patch +90reproducible-build.patch