[faust] gcc-4.7 compile fix
Orcan Ogetbil
oget at fedoraproject.org
Tue Jan 10 05:43:53 UTC 2012
commit 57f2bd673c158e22af636ca1a4651cc569185957
Author: Orcan Ogetbil <oget.fedora at gmail.com>
Date: Tue Jan 10 00:43:50 2012 -0500
gcc-4.7 compile fix
faust-gcc47.patch | 24 ++++++++++++++++++++++++
faust.spec | 8 +++++++-
2 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/faust-gcc47.patch b/faust-gcc47.patch
new file mode 100644
index 0000000..af3679c
--- /dev/null
+++ b/faust-gcc47.patch
@@ -0,0 +1,24 @@
+diff -rupN faust-0.9.43.old/architecture/osclib/faust/src/nodes/RootNode.cpp faust-0.9.43/architecture/osclib/faust/src/nodes/RootNode.cpp
+--- faust-0.9.43.old/architecture/osclib/faust/src/nodes/RootNode.cpp 2011-07-21 12:02:24.000000000 -0400
++++ faust-0.9.43/architecture/osclib/faust/src/nodes/RootNode.cpp 2012-01-10 00:41:12.114318731 -0500
+@@ -23,7 +23,7 @@
+
+ #include <string>
+ #include <sstream>
+-
++#include <unistd.h>
+ #include "RootNode.h"
+ #include "Message.h"
+ #include "OSCStream.h"
+diff -rupN faust-0.9.43.old/compiler/parser/faustlexer.cpp faust-0.9.43/compiler/parser/faustlexer.cpp
+--- faust-0.9.43.old/compiler/parser/faustlexer.cpp 2011-07-21 12:02:24.000000000 -0400
++++ faust-0.9.43/compiler/parser/faustlexer.cpp 2012-01-10 00:20:52.378968476 -0500
+@@ -21,7 +21,7 @@
+ #include <string.h>
+ #include <errno.h>
+ #include <stdlib.h>
+-
++#include <unistd.h>
+ /* end standard C headers. */
+
+ /* flex integer type definitions */
diff --git a/faust.spec b/faust.spec
index 32d3596..3e6dae2 100644
--- a/faust.spec
+++ b/faust.spec
@@ -1,6 +1,6 @@
Name: faust
Version: 0.9.43
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Compiled language for real-time audio signal processing
# Examples are BSD
# The rest is GPLv2+
@@ -9,6 +9,8 @@ URL: http://faust.grame.fr/
Source0: http://downloads.sourceforge.net/project/faudiostream/%{name}-%{version}.tar.gz
# Build osclib as a shared library
Patch0: faust-osclib-shared.patch
+# gcc-4.7 compile fix
+Patch1: faust-gcc47.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: doxygen
BuildRequires: graphviz
@@ -86,6 +88,7 @@ for KDE's Kate/Kwrite.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
# For installation in the correct location and for preserving timestamps:
# The Makefile normally puts noarch files in $prefix/lib. We change
@@ -180,6 +183,9 @@ cp -a syntax-highlighting/%{name}.xml \
%{_datadir}/kde4/apps/katepart/syntax/%{name}.xml
%changelog
+* Tue Jan 10 2012 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.43-3
+- gcc-4.7 compile fix
+
* Sun Nov 27 2011 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 0.9.43-2
- Drop executable permission on faust2pd.pure to avoid an unavailable dependency.
More information about the scm-commits
mailing list