[packages/libffado] - added c++ patch, pass -std to enable C++ 11 for libxml++; release 3

qboosh qboosh at pld-linux.org
Tue Feb 16 18:22:49 CET 2016


commit 53bb318adcd6d3282cd8f82b937b676a3dbeb48f
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Feb 16 18:25:48 2016 +0100

    - added c++ patch, pass -std to enable C++ 11 for libxml++; release 3

 libffado-c++.patch | 22 ++++++++++++++++++++++
 libffado.spec      |  7 +++++--
 2 files changed, 27 insertions(+), 2 deletions(-)
---
diff --git a/libffado.spec b/libffado.spec
index aeb52b7..93408d0 100644
--- a/libffado.spec
+++ b/libffado.spec
@@ -8,7 +8,7 @@ Summary:	Free FireWire audio driver library
 Summary(pl.UTF-8):	Wolnodostępna biblioteka sterownika dźwięku FireWire
 Name:		libffado
 Version:	2.2.1
-Release:	2
+Release:	3
 License:	GPL v2 or GPL v3
 Group:		Libraries
 #Source0Download: http://www.ffado.org/?q=node/5
@@ -16,6 +16,7 @@ Source0:	http://www.ffado.org/files/%{name}-%{version}.tgz
 # Source0-md5:	e113d828835051f835fb4a329cb0cbd4
 Patch0:		%{name}-api-doc-only.patch
 Patch1:		detect-x32.patch
+Patch2:		%{name}-c++.patch
 URL:		http://www.ffado.org/
 BuildRequires:	alsa-lib-devel >= 0.9
 BuildRequires:	dbus-c++-devel
@@ -124,10 +125,12 @@ Graficzny mikser dla FFADO.
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
+# libxml++ 2.40+ requires C++ 11
 %{__scons} \
-	COMPILE_FLAGS="%{rpmcflags}" \
+	COMPILE_FLAGS="%{rpmcxxflags} -std=gnu++0x" \
 	ENABLE_ALL=True \
 	PREFIX=%{_prefix} \
 	MANDIR=%{_mandir} \
diff --git a/libffado-c++.patch b/libffado-c++.patch
new file mode 100644
index 0000000..80a661f
--- /dev/null
+++ b/libffado-c++.patch
@@ -0,0 +1,22 @@
+--- libffado-2.2.1/tests/test-enhanced-mixer.cpp.orig	2008-05-29 10:24:21.000000000 +0200
++++ libffado-2.2.1/tests/test-enhanced-mixer.cpp	2016-02-16 18:02:11.361870351 +0100
+@@ -77,7 +77,7 @@
+         exit(0);
+     }
+ 
+-    int errno = 0;
++    errno = 0;
+     char* tail;
+     int node_id = strtol( argv[1], &tail, 0 );
+     int fb_id   = strtol( argv[2], &tail, 0 );
+--- libffado-2.2.1/tests/test-volume.cpp.orig	2008-05-05 23:29:40.000000000 +0200
++++ libffado-2.2.1/tests/test-volume.cpp	2016-02-16 18:12:32.575177616 +0100
+@@ -127,7 +127,7 @@
+         exit(0);
+     }
+ 
+-    int errno = 0;
++    errno = 0;
+     char* tail;
+     int node_id = strtol( argv[1], &tail, 0 );
+     int fb_id   = strtol( argv[2], &tail, 0 );
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libffado.git/commitdiff/53bb318adcd6d3282cd8f82b937b676a3dbeb48f



More information about the pld-cvs-commit mailing list