[SCM] qsynth/master: Add patch to build reproducible. (Closes: #844993)

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Sun Nov 20 16:31:35 UTC 2016


The following commit has been merged in the master branch:
commit a9fc9fe624e1c24fdc7b8da874bf18df899762bd
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Sun Nov 20 17:04:51 2016 +0100

    Add patch to build reproducible. (Closes: #844993)

diff --git a/debian/patches/4001-qsynth.patch b/debian/patches/4001-qsynth.patch
new file mode 100644
index 0000000..94f160d
--- /dev/null
+++ b/debian/patches/4001-qsynth.patch
@@ -0,0 +1,24 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-11-19
+Forwarded: no
+
+Index: qsynth/configure.ac
+===================================================================
+--- qsynth.orig/configure.ac
++++ qsynth/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.
diff --git a/debian/patches/series b/debian/patches/series
index 9635512..b53b64b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 1001-soundfont_default_dir.patch
 2001-libx11_underlinkage.patch
 3001-hardening.patch
+4001-qsynth.patch

-- 
qsynth packaging



More information about the pkg-multimedia-commits mailing list