[Debian-med-packaging] Bug#859300: crac: please make the build reproducible
Chris Lamb
lamby at debian.org
Sat Apr 1 20:59:01 UTC 2017
Source: crac
Version: 2.5.0+dfsg-1
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 crac could not be built reproducibly.
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 01:00:00.000000000 +0100
--- b/debian/patches/reproducible_build.patch 2017-04-01 21:53:46.166194584 +0100
@@ -0,0 +1,17 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-04-01
+
+--- crac-2.5.0+dfsg.orig/configure.ac
++++ crac-2.5.0+dfsg/configure.ac
+@@ -159,6 +159,10 @@ LT_INIT
+ LT_PATH_LD
+
+ ISODATE=`date +%Y-%m-%d`
++if test -n "$SOURCE_DATE_EPOCH"; then
++ ISODATE=`date --utc --date="@$SOURCE_DATE_EPOCH" +%Y-%m-%d`
++fi
++
+ AC_SUBST([ISODATE])
+
+ ARCH=`uname -m | sed s/i.86/i386/ | sed s/x86_64/amd64/`
--- a/debian/patches/series 2017-04-01 21:45:28.835808275 +0100
--- b/debian/patches/series 2017-04-01 21:53:45.062189349 +0100
@@ -3,3 +3,4 @@
fix_includes.patch
skip_failed_test_bug-14958.patch
use_debian_packages_libgtarrays.patch
+reproducible_build.patch
More information about the Debian-med-packaging
mailing list