[minicomputer] Really fix GCC 4.7 compilation

verdurin verdurin at fedoraproject.org
Mon Jan 9 00:28:55 UTC 2012


commit 5a3bf523cd9b9b036fb67ab4d15d57892ee9af77
Author: Adam Huffman <bloch at verdurin.com>
Date:   Mon Jan 9 00:28:40 2012 +0000

    Really fix GCC 4.7 compilation

 minicomputer-gcc47.patch |   10 ++++++++++
 minicomputer.spec        |    4 ++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/minicomputer-gcc47.patch b/minicomputer-gcc47.patch
new file mode 100644
index 0000000..37edc6c
--- /dev/null
+++ b/minicomputer-gcc47.patch
@@ -0,0 +1,10 @@
+--- minicomputer-1.4.1/editor/Memory.cpp	2009-11-19 04:46:01.000000000 +0000
++++ minicomputer-1.4.1.new/editor/Memory.cpp	2012-01-09 00:15:47.627802482 +0000
+@@ -16,6 +16,7 @@
+  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+  */
+ #include "Memory.h"
++#include <unistd.h>
+ /**
+  * constructor
+  */
diff --git a/minicomputer.spec b/minicomputer.spec
index 33cfbc3..e1c79e8 100644
--- a/minicomputer.spec
+++ b/minicomputer.spec
@@ -9,6 +9,8 @@ Source0:	http://downloads.sourceforge.net/minicomputer/MinicomputerV%{version}.t
 Source1:	%{name}.desktop
 # DSO linking fix. Sent upstream by email.
 Patch0:		%{name}-linking.patch
+# GCC 4.7 fix
+Patch1:		%{name}-gcc47.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	alsa-lib-devel
@@ -30,6 +32,7 @@ Jack as realtime audio infrastructure and can be controlled via Midi.
 %prep
 %setup -q -c -n MinicomputerV%{version}
 %patch0 -p1 -b .linking
+%patch1 -p1 -b .%{name}-gcc47.patch
 
 # Fix optflags
 # SSE instruction set, which provides improved functionality, is only available in these archs:
@@ -82,6 +85,7 @@ rm -rf %{buildroot}
 %changelog
 * Sun Jan 08 2012 Adam Huffman <verdurin at fedoraproject.org> - 1.41-6
 - rebuild for GCC 4.7
+- patch for GCC 4.7
 
 * Fri May 27 2011 Adam Huffman <bloch at verdurin.com> - 1.41-5
 - rebuild for new fltk


More information about the scm-commits mailing list