Bug#860214: synthv1: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Apr 12 21:05:50 UTC 2017


Source: synthv1
Version: 0.8.0-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 synthv1 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/0005-reproducible_build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/0005-reproducible_build.patch	2017-04-12 22:00:23.018229687 +0100
@@ -0,0 +1,16 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2017-04-12
+
+--- synthv1-0.8.0.orig/configure.ac
++++ synthv1-0.8.0/configure.ac
+@@ -9,6 +9,9 @@ AC_CONFIG_FILES(Makefile synthv1.spec sr
+ AC_CACHE_VAL([ac_cv_build_date],
+    [ac_cv_build_date=$(date +"%b %d %Y %H:%M %z")])
+ ac_build_date="$ac_cv_build_date"
++if test -n "$SOURCE_DATE_EPOCH"; then
++   ac_build_date="`LC_ALL=C date --utc --date=@$SOURCE_DATE_EPOCH +'%b %d %Y %H:%M %z`"
++fi
+ AC_DEFINE_UNQUOTED(CONFIG_BUILD_DATE, ["$ac_build_date"], [Build date and time.])
+ 
+ # Build version string.
--- a/debian/patches/series	2017-04-12 21:53:44.615923863 +0100
--- b/debian/patches/series	2017-04-12 22:00:18.058201513 +0100
@@ -1,2 +1,3 @@
 0002-fix_hardening.patch
 0004-fix_install_path.patch
+0005-reproducible_build.patch


More information about the pkg-multimedia-maintainers mailing list