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

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


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

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

diff --git a/debian/patches/2001-qsampler.patch b/debian/patches/2001-qsampler.patch
new file mode 100644
index 0000000..e79868e
--- /dev/null
+++ b/debian/patches/2001-qsampler.patch
@@ -0,0 +1,41 @@
+Author: Reiner Herrmann <reiner at reiner-h.de>
+Description: Strip build date from version info to make build reproducible
+
+Index: qsampler/src/qsamplerMainForm.cpp
+===================================================================
+--- qsampler.orig/src/qsamplerMainForm.cpp
++++ qsampler/src/qsamplerMainForm.cpp
+@@ -1048,8 +1048,6 @@ bool MainForm::saveSessionFile ( const Q
+ 	ts << "# " << QSAMPLER_TITLE " - " << tr(QSAMPLER_SUBTITLE) << endl;
+ 	ts << "# " << tr("Version")
+ 	<< ": " CONFIG_BUILD_VERSION << endl;
+-	ts << "# " << tr("Build")
+-	<< ": " CONFIG_BUILD_DATE << endl;
+ 	ts << "#"  << endl;
+ 	ts << "# " << tr("File")
+ 	<< ": " << QFileInfo(sFilename).fileName() << endl;
+@@ -1965,7 +1963,6 @@ void MainForm::helpAbout (void)
+ 	sText += "<b>" QSAMPLER_TITLE " - " + tr(QSAMPLER_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";
+ #ifdef CONFIG_DEBUG
+ 	sText += "<small><font color=\"red\">";
+ 	sText += tr("Debugging option enabled.");
+Index: qsampler/src/qsamplerOptions.cpp
+===================================================================
+--- qsampler.orig/src/qsamplerOptions.cpp
++++ qsampler/src/qsamplerOptions.cpp
+@@ -339,10 +339,9 @@ bool Options::parse_args ( const QString
+ 		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(QSAMPLER_TITLE)
+-				.arg(CONFIG_BUILD_VERSION)
+-				.arg(CONFIG_BUILD_DATE);
++				.arg(CONFIG_BUILD_VERSION);
+ 		#ifdef CONFIG_LIBGIG
+ 			out << QString("%1: %2\n")
+ 				.arg(gig::libraryName().c_str())
diff --git a/debian/patches/series b/debian/patches/series
index 56aa973..2854316 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-hardening.patch
+2001-qsampler.patch

-- 
qsampler packaging



More information about the pkg-multimedia-commits mailing list