Bug#844993: qsynth: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Nov 19 08:53:49 UTC 2016


Source: qsynth
Version: 0.4.3-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 qsynth 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/4001-reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/4001-reproducible-build.patch	2016-11-19 09:50:50.098167832 +0100
@@ -0,0 +1,21 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-11-19
+
+--- qsynth-0.4.3.orig/configure.ac
++++ qsynth-0.4.3/configure.ac
+@@ -6,9 +6,11 @@ AC_CONFIG_HEADERS(src/config.h)
+ AC_CONFIG_FILES(Makefile qsynth.spec src/src.pri src/qsynth.desktop)
+ 
+ # Build date and time.
+-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 x"$SOURCE_DATE_EPOCH" = "x"; then
++   ac_build_date=`date +"%b %d %Y %H:%M %z"`
++else
++   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	2016-11-19 09:42:00.533805985 +0100
--- b/debian/patches/series	2016-11-19 09:49:59.221747509 +0100
@@ -1,3 +1,4 @@
 1001-soundfont_default_dir.patch
 2001-libx11_underlinkage.patch
 3001-hardening.patch
+4001-reproducible-build.patch


More information about the pkg-multimedia-maintainers mailing list