rpms/xalan-c/devel xalan-c-1.10.0-gcc43.patch, NONE, 1.1 xalan-c.spec, 1.1, 1.2

Lubomir Kundrak (lkundrak) fedora-extras-commits at redhat.com
Fri Jan 4 22:28:42 UTC 2008


Author: lkundrak

Update of /cvs/pkgs/rpms/xalan-c/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22879/devel

Modified Files:
	xalan-c.spec 
Added Files:
	xalan-c-1.10.0-gcc43.patch 
Log Message:
Adding missing includes to fix build with gcc-4.3

xalan-c-1.10.0-gcc43.patch:

--- NEW FILE xalan-c-1.10.0-gcc43.patch ---
The STL headers in gcc-4.3 have been cleaned up, so that the headers don't drag in
unnecessary dependencies which aren't requested by the standard.
This fixes build for gcc-4.3

Lubomir Kundrak <lkundrak at redhat.com>

diff -urp xml-xalan.orig/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp xml-xalan/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp
--- xml-xalan.orig/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp	2005-05-05 02:32:04.000000000 +0200
+++ xml-xalan/c/src/xalanc/PlatformSupport/DirectoryEnumerator.hpp	2008-01-04 23:15:13.000000000 +0100
@@ -31,6 +31,7 @@
 #include <sys/stat.h>
 #include <errno.h>
 #endif
+#include <cstring>
 
 
 
diff -urp xml-xalan.orig/c/src/xalanc/XalanDOM/XalanDOMString.cpp xml-xalan/c/src/xalanc/XalanDOM/XalanDOMString.cpp
--- xml-xalan.orig/c/src/xalanc/XalanDOM/XalanDOMString.cpp	2005-08-08 17:25:52.000000000 +0200
+++ xml-xalan/c/src/xalanc/XalanDOM/XalanDOMString.cpp	2008-01-04 23:17:08.000000000 +0100
@@ -26,6 +26,7 @@
 
 
 #include <cstdlib>
+#include <cstring>
 
 
 
diff -urp xml-xalan.orig/c/src/xalanc/XalanExe/XalanExe.cpp xml-xalan/c/src/xalanc/XalanExe/XalanExe.cpp
--- xml-xalan.orig/c/src/xalanc/XalanExe/XalanExe.cpp	2005-04-29 23:39:46.000000000 +0200
+++ xml-xalan/c/src/xalanc/XalanExe/XalanExe.cpp	2008-01-04 23:23:09.000000000 +0100
@@ -24,6 +24,7 @@
 #else
 #include <iostream>
 #endif
+#include <cstring>
 
 
 
diff -urp xml-xalan.orig/c/src/xalanc/XMLSupport/FormatterToHTML.cpp xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.cpp
--- xml-xalan.orig/c/src/xalanc/XMLSupport/FormatterToHTML.cpp	2005-06-30 23:52:35.000000000 +0200
+++ xml-xalan/c/src/xalanc/XMLSupport/FormatterToHTML.cpp	2008-01-04 23:23:26.000000000 +0100
@@ -26,6 +26,7 @@
 
 
 #include <cassert>
+#include <cstring>
 
 
 
diff -urp xml-xalan.orig/c/src/xalanc/XSLT/ElemNumber.cpp xml-xalan/c/src/xalanc/XSLT/ElemNumber.cpp
--- xml-xalan.orig/c/src/xalanc/XSLT/ElemNumber.cpp	2005-07-26 22:09:17.000000000 +0200
+++ xml-xalan/c/src/xalanc/XSLT/ElemNumber.cpp	2008-01-04 23:24:01.000000000 +0100
@@ -15,6 +15,7 @@
  */
 #include "ElemNumber.hpp"
 
+#include <cstring>
 
 
 #include <xercesc/sax/AttributeList.hpp>


Index: xalan-c.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xalan-c/devel/xalan-c.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- xalan-c.spec	26 Nov 2007 18:41:19 -0000	1.1
+++ xalan-c.spec	4 Jan 2008 22:28:07 -0000	1.2
@@ -1,6 +1,6 @@
 Name:           xalan-c
 Version:        1.10.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Xalan XSLT processor for C
 
 Group:          System Environment/Libraries
@@ -8,6 +8,7 @@
 URL:            http://xml.apache.org/xalan-c/
 Source0:        http://www.apache.org/dist/xml/xalan-c/Xalan-C_1_10_0-src.tar.gz
 Patch0:         xalan-c-1.10.0-escaping.patch
+Patch1:         xalan-c-1.10.0-gcc43.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  xerces-c-devel
@@ -42,7 +43,8 @@
 
 %prep
 %setup -q -n xml-xalan/c
-%patch -p2 -b .escaping
+%patch0 -p2 -b .escaping
+%patch1 -p2 -b .gcc43
 find -type d -name CVS -print0 | xargs -0 rm -rf
 chmod 644 NOTICE
 
@@ -94,6 +96,9 @@
 
 
 %changelog
+* Thu Jan 03 2008 Lubomir Kundrak <lkundrak at redhat.com> 1.10.0-3
+- Adding missing includes to fix build with gcc-4.3
+
 * Mon Nov 19 2007 Lubomir Kundrak <lkundrak at redhat.com> - 1.10.0-2
 - Fix passing of compiler flags
 - Bump to stable source instead of CVS snapshot




More information about the fedora-extras-commits mailing list