[Reproducible-builds] Bug#831647: hocr: please make the build reproducible
Chris Lamb
lamby at debian.org
Mon Jul 18 07:24:39 UTC 2016
Source: hocr
Version: 0.10.17-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- 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 <lamby at debian.org>
+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
More information about the Reproducible-builds
mailing list