[arpage] Really fix GCC 4.7 compilation

verdurin verdurin at fedoraproject.org
Mon Jan 9 00:03:59 UTC 2012


commit 92d34f8e5ae8f7f85a6c9cc8080b902fd47e432b
Author: Adam Huffman <bloch at verdurin.com>
Date:   Mon Jan 9 00:03:39 2012 +0000

    Really fix GCC 4.7 compilation

 arpage-gcc47.patch |   10 ++++++++++
 arpage.spec        |    6 +++++-
 2 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/arpage-gcc47.patch b/arpage-gcc47.patch
new file mode 100644
index 0000000..3460440
--- /dev/null
+++ b/arpage-gcc47.patch
@@ -0,0 +1,10 @@
+--- arpage-0.3.3/src/jack_process.cc	2010-05-17 21:08:11.000000000 +0100
++++ arpage-0.3.3.new/src/jack_process.cc	2012-01-08 23:30:01.662457371 +0000
+@@ -24,6 +24,7 @@
+ 
+ #include <iostream>
+ #include <cstdio>
++#include <unistd.h>
+ 
+ #define NOTE_ON  1
+ #define NOTE_OFF 0
diff --git a/arpage.spec b/arpage.spec
index dc0844a..0fb152a 100644
--- a/arpage.spec
+++ b/arpage.spec
@@ -9,6 +9,7 @@ URL:		http://arpage.sourceforge.net
 Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 Source1:	%{name}.desktop
 Patch0:		%{name}-gcc46.patch
+Patch1:		%{name}-gcc47.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	jack-audio-connection-kit-devel
@@ -26,6 +27,8 @@ data, synchronized to JACK.
 
 #fix compilation with gcc 4.6
 %patch0 -p1 -b .%{name}-gcc46.patch
+#fix compilation with gcc 4.7
+%patch1 -p1 -b .%{name}.gcc47.patch
 
 # fix bad permissions in debuginfo
 chmod 644 %{_builddir}/%{name}-%{version}/src/main.cc
@@ -75,7 +78,8 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{_datadir}/icons/hicolor/32x32/apps/%{name}.png
 
 %changelog
-* Sun Jan 08 2012 Adam Huffman <bloch at verdurin.com> - 0.3.3-8
+* Sun Jan  8 2012 Adam Huffman <verdurin at fedoraproject.org> - 0.3.3-8
+- add patch for GCC 4.7
 - rebuild for GCC 4.7
 
 * Tue Dec 06 2011 Adam Jackson <ajax at redhat.com> - 0.3.3-7


More information about the scm-commits mailing list