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

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


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

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

diff --git a/debian/patches/05-qmidinet.patch b/debian/patches/05-qmidinet.patch
new file mode 100644
index 0000000..3bc5adf
--- /dev/null
+++ b/debian/patches/05-qmidinet.patch
@@ -0,0 +1,32 @@
+Author: Reiner Herrmann <reiner at reiner-h.de>
+Description: Strip build date from version info to make build reproducible
+
+Index: qmidinet/src/qmidinet.cpp
+===================================================================
+--- qmidinet.orig/src/qmidinet.cpp
++++ qmidinet/src/qmidinet.cpp
+@@ -298,7 +298,6 @@ void qmidinetSystemTrayIcon::about (void
+ 	sText += "<b>" QMIDINET_TITLE " - " + tr(QMIDINET_SUBTITLE) + "</b><br />\n";
+ 	sText += "<br />\n";
+ 	sText += tr("Version") + ": <b>" CONFIG_BUILD_VERSION "</b><br />\n";
+-	sText += "<small>" + tr("Build") + ": " CONFIG_BUILD_DATE "</small><br />\n";
+ #ifndef CONFIG_ALSA_MIDI
+ 	sText += "<small><font color=\"red\">";
+ 	sText += tr("ALSA MIDI support disabled.");
+Index: qmidinet/src/qmidinetOptions.cpp
+===================================================================
+--- qmidinet.orig/src/qmidinetOptions.cpp
++++ qmidinet/src/qmidinetOptions.cpp
+@@ -234,10 +234,9 @@ bool qmidinetOptions::parse_args ( const
+ 		else if (sArg == "-v" || sArg == "--version") {
+ 			out << QObject::tr("Qt: %1\n")
+ 				.arg(qVersion());
+-			out << QObject::tr("%1: %2  (%3)\n")
++			out << QObject::tr("%1: %2\n")
+ 				.arg(QMIDINET_TITLE)
+-				.arg(CONFIG_BUILD_VERSION)
+-				.arg(CONFIG_BUILD_DATE);
++				.arg(CONFIG_BUILD_VERSION);
+ 			return false;
+ 		}
+ 	}
diff --git a/debian/patches/series b/debian/patches/series
index 4e92aa7..39049d4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 01-fix_FTBFS.patch
 03-fix_hardening.patch
+05-qmidinet.patch

-- 
qmidinet packaging



More information about the pkg-multimedia-commits mailing list