[SCM] midisnoop/master: Added patch to fix build with rtmidi 2.1.

mira-guest at users.alioth.debian.org mira-guest at users.alioth.debian.org
Mon Jun 9 19:46:21 UTC 2014


The following commit has been merged in the master branch:
commit 8a62539356993ef1dc0ac796daf09a2fdf05a501
Author: Jaromír Mikeš <mira.mikes at seznam.cz>
Date:   Mon Jun 9 21:45:27 2014 +0200

    Added patch to fix build with rtmidi 2.1.

diff --git a/debian/patches/03-fix_build_with_rtmidi_2_1.patch b/debian/patches/03-fix_build_with_rtmidi_2_1.patch
new file mode 100644
index 0000000..9c2dc38
--- /dev/null
+++ b/debian/patches/03-fix_build_with_rtmidi_2_1.patch
@@ -0,0 +1,28 @@
+Description: Fix build with rtmidi 2.1
+Author: Felipe Sateler <fsateler at debian.org>
+Forwarded: no
+
+Index: midisnoop/src/engine.cpp
+===================================================================
+--- midisnoop.orig/src/engine.cpp
++++ midisnoop/src/engine.cpp
+@@ -25,6 +25,9 @@
+ #include "engine.h"
+ #include "error.h"
+ 
++// RtError was renamed to RtMidiError in rtmidi 2.1
++typedef RtMidiError RtError;
++
+ // Static functions
+ 
+ void
+@@ -56,9 +59,6 @@ Engine::Engine(QObject *parent):
+         case RtMidi::UNIX_JACK:
+             driverNames.append(tr("JACK Audio Connection Kit"));
+             break;
+-        case RtMidi::WINDOWS_KS:
+-            driverNames.append(tr("Windows Kernel Streaming"));
+-            break;
+         case RtMidi::WINDOWS_MM:
+             driverNames.append(tr("Windows Multimedia MIDI"));
+             break;
diff --git a/debian/patches/series b/debian/patches/series
index 65ba781..37986d3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 01-destop_file.patch
+03-fix_build_with_rtmidi_2_1.patch

-- 
midisnoop packaging



More information about the pkg-multimedia-commits mailing list