[ptlib] Add patch to fix FTBFS with gcc5
Peter Robinson
pbrobinson at fedoraproject.org
Thu Feb 26 22:38:18 UTC 2015
commit 126f715176935c86a1da8ce698f4ae4695dfb62f
Author: Peter Robinson <pbrobinson at gmail.com>
Date: Thu Feb 26 22:38:04 2015 +0000
Add patch to fix FTBFS with gcc5
ptlib-gcc5.patch | 11 +++++++++++
ptlib.spec | 7 ++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/ptlib-gcc5.patch b/ptlib-gcc5.patch
new file mode 100644
index 0000000..7d3bf8b
--- /dev/null
+++ b/ptlib-gcc5.patch
@@ -0,0 +1,11 @@
+--- ptlib-2.10.10/include/ptlib/critsec.h 2015-02-20 10:02:39.984901210 +0100
++++ ptlib-2.10.10/include/ptlib/critsec.h 2015-02-20 10:04:01.150897771 +0100
+@@ -40,7 +40,7 @@
+ #if P_HAS_ATOMIC_INT
+
+ #if defined(__GNUC__)
+-# if __GNUC__ >= 4 && __GNUC_MINOR__ >= 2
++# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2)
+ # include <ext/atomicity.h>
+ # else
+ # include <bits/atomicity.h>
diff --git a/ptlib.spec b/ptlib.spec
index 42e2999..a11e47e 100644
--- a/ptlib.spec
+++ b/ptlib.spec
@@ -1,7 +1,7 @@
Name: ptlib
Summary: Portable Tools Library
Version: 2.10.10
-Release: 9%{?dist}
+Release: 10%{?dist}
URL: http://www.opalvoip.org/
License: MPLv1.0
Group: System Environment/Libraries
@@ -9,6 +9,7 @@ Group: System Environment/Libraries
Source0: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/2.10/%{name}-%{version}.tar.xz
Patch0: ptlib-fixcamcrash.patch
Patch1: ptlib-2.10.10-mga-bison-parameter.patch
+Patch2: ptlib-gcc5.patch
BuildRequires: pkgconfig, expat-devel, flex, bison
BuildRequires: alsa-lib-devel, libv4l-devel
@@ -38,6 +39,7 @@ The ptlib-devel package includes the libraries and header files for ptlib.
%setup -q
%patch0 -p1 -b .fixcam
%patch1 -p1 -b .bison
+%patch2 -p1 -b .gcc5
%build
export CFLAGS="%{optflags} -DLDAP_DEPRECATED"
@@ -78,6 +80,9 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
%attr(755,root,root) %{_bindir}/*
%changelog
+* Thu Feb 26 2015 Peter Robinson <pbrobinson at fedoraproject.org> 2.10.10-10
+- Add patch to fix FTBFS with gcc5
+
* Tue Jan 27 2015 Petr Machata <pmachata at redhat.com> - 2.10.10-9
- Rebuild for boost 1.57.0
More information about the scm-commits
mailing list