[ptlib] Add patch to fix ptlib using internal gcc functions

Peter Robinson pbrobinson at fedoraproject.org
Wed May 4 15:39:25 UTC 2011


commit cba09a165132091b9be512193feb50ba1b610339
Author: Peter Robinson <pbrobinson at gmail.com>
Date:   Wed May 4 16:39:11 2011 +0100

    Add patch to fix ptlib using internal gcc functions

 ptlib-gcc46.patch |   11 +++++++++++
 ptlib.spec        |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/ptlib-gcc46.patch b/ptlib-gcc46.patch
new file mode 100644
index 0000000..f2255ee
--- /dev/null
+++ b/ptlib-gcc46.patch
@@ -0,0 +1,11 @@
+--- ptlib-2.8.3/include/ptlib/object.h.orig	2011-05-04 15:31:15.355228152 +0100
++++ ptlib-2.8.3/include/ptlib/object.h	2011-05-04 15:41:19.984235581 +0100
+@@ -947,7 +947,7 @@
+ 
+ 
+ // Memory pooling allocators
+-#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(P_MINGW)
++#if 0
+ #include <ext/bitmap_allocator.h>
+ template <class Type> class PFixedPoolAllocator    : public __gnu_cxx::bitmap_allocator<Type> { };
+ #include <ext/mt_allocator.h>
diff --git a/ptlib.spec b/ptlib.spec
index fc79b00..2039b83 100644
--- a/ptlib.spec
+++ b/ptlib.spec
@@ -1,13 +1,14 @@
 Name:		ptlib
 Summary:	Portable Tools Library
 Version:	2.8.3
-Release:	4%{?dist}
+Release:	5%{?dist}
 URL:		http://www.opalvoip.org/
 License:	MPLv1.0
 Group:		System Environment/Libraries
 
 Source0:	ftp://ftp.gnome.org/pub/gnome/sources/%{name}/2.8/%{name}-%{version}.tar.bz2
 Patch0:         ptlib-ethNaming.patch
+Patch1:         ptlib-gcc46.patch
 
 BuildRequires:	pkgconfig, expat-devel, flex, bison
 BuildRequires:  alsa-lib-devel, libv4l-devel
@@ -36,6 +37,7 @@ The ptlib-devel package includes the libraries and header files for ptlib.
 %prep
 %setup -q 
 %patch0 -p1 -b .ethNaming
+%patch1 -p1 -b .gcc46
 
 %build
 export CFLAGS="%{optflags} -DLDAP_DEPRECATED"
@@ -78,6 +80,9 @@ find %{buildroot} -name '*.a' -exec rm -f {} ';'
 %attr(755,root,root) %{_bindir}/*
 
 %changelog
+* Wed May  4 2011 Peter Robinson <pbrobinson at gmail.com> - 2.8.3-5
+- Add patch to fix ptlib using internal gcc functions
+
 * Wed Apr 20 2011 Peter Robinson <pbrobinson at gmail.com> - 2.8.3-4
 - Add initial upstream patch to deal with Network interfaces with names other than eth - RHBZ 682388
 


More information about the scm-commits mailing list