commit 0a4bf1323cdd5deea4a2fadceddcf3f18f79463f
Author: martinkg <mgansser(a)online.de>
Date: Fri Mar 24 16:53:21 2017 +0100
Add %%{name}-literal.patch
mp3diags-literal.patch | 11 +++++++++++
mp3diags.spec | 3 ++-
2 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/mp3diags-literal.patch b/mp3diags-literal.patch
new file mode 100644
index 0000000..b058ab5
--- /dev/null
+++ b/mp3diags-literal.patch
@@ -0,0 +1,11 @@
+--- src/Mp3TransformThread.cpp.orig 2017-03-24 15:52:14.023935154 +0100
++++ src/Mp3TransformThread.cpp 2017-03-24 15:52:55.129795548 +0100
+@@ -662,7 +662,7 @@
+ {
+ qDebug("Caught std::exception in Mp3TransformThread::transform()");
+ traceToFile("Caught std::exception in
Mp3TransformThread::transform()", 0);
+- qDebug(ex.what());
++ qDebug("ex.what()");
+ traceToFile(ex.what(), 0);
+ throw; // !!! needed to restore "erased" files when errors occur,
because when an exception is thrown the destructors only get called if that exception is
caught; so catching and rethrowing is not a "no-op"
+ }
diff --git a/mp3diags.spec b/mp3diags.spec
index 2ce287b..c3b92b7 100644
--- a/mp3diags.spec
+++ b/mp3diags.spec
@@ -7,7 +7,8 @@ License: GPLv2
Summary: Find and fix Problems in MP3 Files
URL:
http://mp3diags.sourceforge.net
Source:
http://prdownloads.sourceforge.net/%{name}/%{oname}-%{version}.tar.gz
-Patch0: mp3diags-system-lib.patch
+Patch0: %{name}-system-lib.patch
+Patch1: %{name}-literal.patch
BuildRequires: boost-devel
BuildRequires: desktop-file-utils