[Reproducible-builds] Bug#834137: advi: please make the build reproducible
Chris Lamb
lamby at debian.org
Fri Aug 12 10:51:52 UTC 2016
Source: advi
Version: 1.10.2-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 advi 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 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build 2016-08-12 11:39:07.941614664 +0100
@@ -0,0 +1,30 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-12
+
+--- advi-1.10.2.orig/configure.ac
++++ advi-1.10.2/configure.ac
+@@ -3,6 +3,10 @@ AC_PREREQ(2.59)
+ AC_INIT(advi, 1.10.2, Didier.Remy at inria.fr)
+ BUILD_DATE=`date +%Y-%m-%d`
+ BUILD_YEAR=`date +%Y`
++if test -n "$SOURCE_DATE_EPOCH"; then
++ BUILD_DATE=`date --utc --date="@$SOURCE_DATE_EPOCH" +%Y-%m-%d`
++ BUILD_YEAR=`date --utc --date="@$SOURCE_DATE_EPOCH" +%Y`
++fi
+ AC_SUBST(BUILD_DATE)
+ AC_SUBST(BUILD_YEAR)
+ AM_INIT_AUTOMAKE([foreign])
+--- advi-1.10.2.orig/configure
++++ advi-1.10.2/configure
+@@ -2193,6 +2193,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+ BUILD_DATE=`date +%Y-%m-%d`
+ BUILD_YEAR=`date +%Y`
++if test -n "$SOURCE_DATE_EPOCH"; then
++ BUILD_DATE=`date --utc --date="@$SOURCE_DATE_EPOCH" +%Y-%m-%d`
++ BUILD_YEAR=`date --utc --date="@$SOURCE_DATE_EPOCH" +%Y`
++fi
+
+
+ am__api_version='1.11'
--- a/debian/patches/series 2016-08-12 11:17:06.930108255 +0100
--- b/debian/patches/series 2016-08-12 11:28:59.912314690 +0100
@@ -6,3 +6,4 @@
examples-makefiles
examples-scripts
really-clean
+reproducible-build
More information about the Reproducible-builds
mailing list