Source: hocr Version: 0.10.17-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 hocr could not be built reproducibly. Patch attached. [0] https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / 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-07-18 09:19:46.222226674 +0200 @@ -0,0 +1,18 @@ +Author: Chris Lamb <[email protected]> +Last-Update: 2016-07-18 + +--- hocr-0.10.17.orig/configure.ac ++++ hocr-0.10.17/configure.ac +@@ -266,7 +266,11 @@ AM_CONDITIONAL(WITH_HOCR_GTK, test "$bui + dnl ============================================================================ + dnl create a build string + +-BUILD_DATE=`date +%d%m%Y` ++if test -n "$SOURCE_DATE_EPOCH"; then ++ BUILD_DATE=`date --utc --date="@$SOURCE_DATE_EPOCH" +%d%m%Y` ++else ++ BUILD_DATE=`date +%d%m%Y` ++fi + BUILD_STR="$PACKAGE-$VERSION-$build-$BUILD_DATE" + if test "$build_tiff" = "yes"; then + BUILD_STR+="-tiff" --- a/debian/patches/series 2016-07-18 09:06:54.264589770 +0200 --- b/debian/patches/series 2016-07-18 09:19:37.502078990 +0200 @@ -2,3 +2,4 @@ no-scanner.patch manpage-whatis.patch sane-pygtk-desktop-icon.patch +reproducible-build.patch

