[xqilla] Added a patch to fix build with GCC 4.6

Kalev Lember kalev at fedoraproject.org
Thu Mar 10 12:02:34 UTC 2011


commit 0618250e7e4883c73eed4093fc7430b0190de667
Author: Kalev Lember <kalev at smartlink.ee>
Date:   Thu Mar 10 14:01:14 2011 +0200

    Added a patch to fix build with GCC 4.6

 xqilla-2.2.4-gcc46.patch |   11 +++++++++++
 xqilla.spec              |    3 +++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/xqilla-2.2.4-gcc46.patch b/xqilla-2.2.4-gcc46.patch
new file mode 100644
index 0000000..83c450a
--- /dev/null
+++ b/xqilla-2.2.4-gcc46.patch
@@ -0,0 +1,11 @@
+diff -up XQilla-2.2.4/include/xqilla/framework/XPath2MemoryManager.hpp.gcc46 XQilla-2.2.4/include/xqilla/framework/XPath2MemoryManager.hpp
+--- XQilla-2.2.4/include/xqilla/framework/XPath2MemoryManager.hpp.gcc46	2010-01-13 17:40:36.000000000 +0200
++++ XQilla-2.2.4/include/xqilla/framework/XPath2MemoryManager.hpp	2011-03-10 13:48:18.679481503 +0200
+@@ -24,6 +24,7 @@
+ 
+ #include <algorithm>
+ #include <assert.h>
++#include <cstddef>
+ 
+ #include <xqilla/framework/XQillaExport.hpp>
+ 
diff --git a/xqilla.spec b/xqilla.spec
index 77b31ff..c9ec23d 100644
--- a/xqilla.spec
+++ b/xqilla.spec
@@ -7,6 +7,7 @@ Group:          System Environment/Libraries
 License:        ASL 2.0
 URL:            http://xqilla.sourceforge.net/HomePage
 Source0:        http://downloads.sourceforge.net/xqilla/XQilla-%{version}.tar.gz
+Patch0:         xqilla-2.2.4-gcc46.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  xerces-c-devel >= 3.0.1 
@@ -40,6 +41,7 @@ simple-api and dom3-api documentation for XQilla.
 
 %prep
 %setup -qn XQilla-%{version}
+%patch0 -p1 -b .gcc46
 
 %build
 %configure \
@@ -85,6 +87,7 @@ rm -rf %{buildroot}
 %changelog
 * Thu Mar 10 2011 Kalev Lember <kalev at smartlink.ee> - 2.2.4-1
 - Update to 2.2.4
+- Added a patch to fix build with GCC 4.6
 
 * Thu Mar 10 2011 Kalev Lember <kalev at smartlink.ee> - 2.2.3-10
 - Rebuilt with xerces-c 3.1


More information about the scm-commits mailing list