Bug#860203: avifile: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Apr 12 19:09:12 UTC 2017


Source: avifile
Version: 1:0.7.48~20090503.ds-19
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 avifile 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-12 20:06:08.505597983 +0100
@@ -0,0 +1,16 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-04-12
+
+--- avifile-0.7.48~20090503.ds.orig/configure.in
++++ avifile-0.7.48~20090503.ds/configure.in
+@@ -997,6 +997,9 @@ if test $? -ne 0 -o -z "$last_cvs_update
+ else
+     AVIFILE_BUILD="CVS"
+ fi
++if test -n "$SOURCE_DATE_EPOCH"; then
++    last_cvs_update=`date --utc --date="@$SOURCE_DATE_EPOCH" +%y%m%d-%H:%M`
++fi
+ AVIFILE_BUILD="$AVIFILE_BUILD-$AVIFILE_MAJOR_VERSION.$AVIFILE_MINOR_VERSION.$AVIFILE_MICRO_VERSION-${last_cvs_update}-$GCC_VERSION"
+ AC_SUBST(AVIFILE_BUILD)
+ 
--- a/debian/patches/series	2017-04-12 19:57:02.667313713 +0100
--- b/debian/patches/series	2017-04-12 20:06:07.513593573 +0100
@@ -13,3 +13,4 @@
 libav10.patch
 ffmpeg_2.9.patch
 port-to-gcc6.patch
+reproducible-build.patch


More information about the Reproducible-bugs mailing list