[SCM] hydrogen/master: Add patch to fix FTBFS with gcc-4.7

adiknoth-guest at users.alioth.debian.org adiknoth-guest at users.alioth.debian.org
Fri May 4 09:38:26 UTC 2012


The following commit has been merged in the master branch:
commit 1550f8a6824448cebcfa96c5960230fc57b915e0
Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
Date:   Fri May 4 11:37:14 2012 +0200

    Add patch to fix FTBFS with gcc-4.7

diff --git a/debian/patches/ftbfs-gcc-4.7.diff b/debian/patches/ftbfs-gcc-4.7.diff
new file mode 100644
index 0000000..0e7ddb2
--- /dev/null
+++ b/debian/patches/ftbfs-gcc-4.7.diff
@@ -0,0 +1,46 @@
+Index: hydrogen-0.9.6~beta1/src/core/src/IO/portmidi_driver.cpp
+===================================================================
+--- hydrogen-0.9.6~beta1.orig/src/core/src/IO/portmidi_driver.cpp	2011-01-16 08:47:33.000000000 +0000
++++ hydrogen-0.9.6~beta1/src/core/src/IO/portmidi_driver.cpp	2012-05-04 06:30:32.631749914 +0000
+@@ -32,6 +32,7 @@
+ #ifdef WIN32
+ #include <windows.h>
+ #endif
++#include <unistd.h>
+ 
+ #ifdef H2CORE_HAVE_PORTMIDI
+ 
+Index: hydrogen-0.9.6~beta1/src/tests/xml.cpp
+===================================================================
+--- hydrogen-0.9.6~beta1.orig/src/tests/xml.cpp	2011-07-22 07:34:28.000000000 +0000
++++ hydrogen-0.9.6~beta1/src/tests/xml.cpp	2012-05-04 06:34:03.971757784 +0000
+@@ -1,4 +1,5 @@
+ 
++#include <unistd.h>
+ #include <hydrogen/helpers/filesystem.h>
+ 
+ #include <hydrogen/basics/drumkit.h>
+Index: hydrogen-0.9.6~beta1/src/gui/src/SongEditor/SongEditor.cpp
+===================================================================
+--- hydrogen-0.9.6~beta1.orig/src/gui/src/SongEditor/SongEditor.cpp	2011-10-24 10:31:06.000000000 +0000
++++ hydrogen-0.9.6~beta1/src/gui/src/SongEditor/SongEditor.cpp	2012-05-04 06:35:06.819760122 +0000
+@@ -21,6 +21,7 @@
+  */
+ 
+ #include <assert.h>
++#include <unistd.h>
+ #include <algorithm>
+ #include <memory>
+ 
+Index: hydrogen-0.9.6~beta1/src/gui/src/MainForm.cpp
+===================================================================
+--- hydrogen-0.9.6~beta1.orig/src/gui/src/MainForm.cpp	2011-12-04 16:23:30.000000000 +0000
++++ hydrogen-0.9.6~beta1/src/gui/src/MainForm.cpp	2012-05-04 06:42:17.055776123 +0000
+@@ -20,6 +20,7 @@
+  *
+  */
+ 
++#include <unistd.h>
+ #include <hydrogen/version.h>
+ #include <hydrogen/hydrogen.h>
+ #include <hydrogen/playlist.h>

-- 
hydrogen packaging



More information about the pkg-multimedia-commits mailing list