19875486 Upgrade libxml2 to version 2.9.2
authorPetr Sumbera <petr.sumbera@oracle.com>
Thu, 23 Oct 2014 12:11:24 -0700
changeset 2166 7f088f5637d1
parent 2165 d1946b7b1894
child 2167 c9ff638a3018
19875486 Upgrade libxml2 to version 2.9.2 19875570 problem in LIBRARY/LIBXML
components/libxml2/Makefile
components/libxml2/patches/01.configure.in.patch
components/libxml2/patches/CVE-2014-0191.patch
components/libxml2/patches/mapfile.patch
components/libxml2/patches/python-dictionary.patch
components/libxml2/patches/python26.patch
components/libxml2/patches/python34.patch
components/libxml2/patches/test_errors_name2.patch
components/libxml2/patches/xmlcatalog.patch
--- a/components/libxml2/Makefile	Tue Oct 21 19:21:36 2014 -0700
+++ b/components/libxml2/Makefile	Thu Oct 23 12:11:24 2014 -0700
@@ -26,12 +26,12 @@
 include ../../make-rules/shared-macros.mk
 
 COMPONENT_NAME=		libxml2
-COMPONENT_VERSION=	2.9.1
+COMPONENT_VERSION=	2.9.2
 COMPONENT_PROJECT_URL=	http://xmlsoft.org/
 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
 COMPONENT_ARCHIVE_HASH=	\
-    sha256:fd3c64cb66f2c4ea27e934d275904d92cec494a8e8405613780cbc8a71680fdb
+    sha256:5178c30b151d044aefb1b08bf54c3003a0ac55c59c866763997529d60770d5bc
 COMPONENT_ARCHIVE_URL=	ftp://xmlsoft.org/libxml2/$(COMPONENT_ARCHIVE)
 COMPONENT_BUGDB=	library/libxml
 
@@ -41,7 +41,7 @@
     sha256:96151685cec997e1f9f3387e3626d61e6284d4d6e66e0e440c209286c03e9cc7
 COMPONENT_ARCHIVE_URL_1= http://www.w3.org/XML/Test/$(COMPONENT_ARCHIVE_1)
 
-TPNO=			17981
+TPNO=			19552
 
 include ../../make-rules/prep.mk
 include ../../make-rules/configure.mk
@@ -55,11 +55,11 @@
 CONFIGURE_OPTIONS += --with-pic
 CONFIGURE_OPTIONS += --with-threads
 CONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
+CONFIGURE_OPTIONS += --with-python-install-dir=$(PYTHON_VENDOR_PACKAGES)
 # Cannot link to lzma since it's not in /lib.
 CONFIGURE_OPTIONS += --without-lzma
 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
 CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
-CONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
 
 COMPONENT_PREP_ACTION += (cd $(@D) ; cp ../mapfile libxml2.syms ; autoreconf -if)
 
--- a/components/libxml2/patches/01.configure.in.patch	Tue Oct 21 19:21:36 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-# fix configure so that we can override the site-packages directory to match
-# the way we deliver python modules in Solaris.
-#
---- libxml2-2.7.6/configure.in.orig	Tue Oct  6 09:28:58 2009
-+++ libxml2-2.7.6/configure.in	Mon Mar 21 00:39:24 2011
-@@ -757,6 +757,10 @@
- if test "$PYTHON_INCLUDES" != ""
- then
-     PYTHON_SUBDIR=python
-+    if test "${PYTHON_VENDOR_PACKAGES}" != ""
-+    then
-+        PYTHON_SITE_PACKAGES=$PYTHON_VENDOR_PACKAGES
-+    fi
- else
-     PYTHON_SUBDIR=
- fi
-
--- a/components/libxml2/patches/CVE-2014-0191.patch	Tue Oct 21 19:21:36 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,152 +0,0 @@
-Patch origin: upstream
-Patch status: will be part of next version
-
-https://git.gnome.org/browse/libxml2/commit/?id=9cd1c3cfbd32655d60572c0a413e017260c854df
-https://git.gnome.org/browse/libxml2/commit/?id=dd8367da17c2948981a51e52c8a6beb445edf825
-https://git.gnome.org/browse/libxml2/commit/?id=c35af8b18dddd0bdfb137ad6a056837a3d5ea651
-
-From 9cd1c3cfbd32655d60572c0a413e017260c854df Mon Sep 17 00:00:00 2001
-From: Daniel Veillard <[email protected]>
-Date: Tue, 22 Apr 2014 15:30:56 +0800
-Subject: Do not fetch external parameter entities
-
-Unless explicitely asked for when validating or replacing entities
-with their value. Problem pointed out by Daniel Berrange <[email protected]>
-
-diff --git a/parser.c b/parser.c
-index 9347ac9..c0dea05 100644
---- a/parser.c
-+++ b/parser.c
-@@ -2598,6 +2598,20 @@ xmlParserHandlePEReference(xmlParserCtxtPtr ctxt) {
- 		    xmlCharEncoding enc;
- 
- 		    /*
-+		     * Note: external parsed entities will not be loaded, it is
-+		     * not required for a non-validating parser, unless the
-+		     * option of validating, or substituting entities were
-+		     * given. Doing so is far more secure as the parser will
-+		     * only process data coming from the document entity by
-+		     * default.
-+		     */
-+                    if ((entity->etype == XML_EXTERNAL_PARAMETER_ENTITY) &&
-+		        ((ctxt->options & XML_PARSE_NOENT) == 0) &&
-+			((ctxt->options & XML_PARSE_DTDVALID) == 0) &&
-+			(ctxt->validate == 0))
-+			return;
-+
-+		    /*
- 		     * handle the extra spaces added before and after
- 		     * c.f. http://www.w3.org/TR/REC-xml#as-PE
- 		     * this is done independently.
--- 
-cgit v0.10.1
-
-From dd8367da17c2948981a51e52c8a6beb445edf825 Mon Sep 17 00:00:00 2001
-From: Daniel Veillard <[email protected]>
-Date: Wed, 11 Jun 2014 16:54:32 +0800
-Subject: Fix regressions introduced by CVE-2014-0191 patch
-
-A number of issues have been raised after the fix, and this patch
-tries to correct all of them, though most were related to
-postvalidation.
-https://bugzilla.gnome.org/show_bug.cgi?id=730290
-and other reports on list, off-list and on Red Hat bugzilla
-
-diff --git a/parser.c b/parser.c
-index c0dea05..ba70f9e 100644
---- a/parser.c
-+++ b/parser.c
-@@ -2598,8 +2598,8 @@ xmlParserHandlePEReference(xmlParserCtxtPtr ctxt) {
- 		    xmlCharEncoding enc;
- 
- 		    /*
--		     * Note: external parsed entities will not be loaded, it is
--		     * not required for a non-validating parser, unless the
-+		     * Note: external parameter entities will not be loaded, it
-+		     * is not required for a non-validating parser, unless the
- 		     * option of validating, or substituting entities were
- 		     * given. Doing so is far more secure as the parser will
- 		     * only process data coming from the document entity by
-@@ -2608,6 +2608,9 @@ xmlParserHandlePEReference(xmlParserCtxtPtr ctxt) {
-                     if ((entity->etype == XML_EXTERNAL_PARAMETER_ENTITY) &&
- 		        ((ctxt->options & XML_PARSE_NOENT) == 0) &&
- 			((ctxt->options & XML_PARSE_DTDVALID) == 0) &&
-+			((ctxt->options & XML_PARSE_DTDLOAD) == 0) &&
-+			((ctxt->options & XML_PARSE_DTDATTR) == 0) &&
-+			(ctxt->replaceEntities == 0) &&
- 			(ctxt->validate == 0))
- 			return;
- 
-@@ -12616,6 +12619,9 @@ xmlIOParseDTD(xmlSAXHandlerPtr sax, xmlParserInputBufferPtr input,
- 	return(NULL);
-     }
- 
-+    /* We are loading a DTD */
-+    ctxt->options |= XML_PARSE_DTDLOAD;
-+
-     /*
-      * Set-up the SAX context
-      */
-@@ -12743,6 +12749,9 @@ xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID,
- 	return(NULL);
-     }
- 
-+    /* We are loading a DTD */
-+    ctxt->options |= XML_PARSE_DTDLOAD;
-+
-     /*
-      * Set-up the SAX context
-      */
--- 
-cgit v0.10.1
-
-From c35af8b18dddd0bdfb137ad6a056837a3d5ea651 Mon Sep 17 00:00:00 2001
-From: Daniel Veillard <[email protected]>
-Date: Wed, 11 Jun 2014 16:59:16 +0800
-Subject: Fixes for xmlInitParserCtxt
-
-let's make sure that parser options are updated too when a corrsponding
-global variable or other field of the context is set.
-
-diff --git a/parserInternals.c b/parserInternals.c
-index 98a5836..df204fd 100644
---- a/parserInternals.c
-+++ b/parserInternals.c
-@@ -1691,12 +1691,20 @@ xmlInitParserCtxt(xmlParserCtxtPtr ctxt)
-     ctxt->nsWellFormed = 1;
-     ctxt->valid = 1;
-     ctxt->loadsubset = xmlLoadExtDtdDefaultValue;
-+    if (ctxt->loadsubset) {
-+        ctxt->options |= XML_PARSE_DTDLOAD;
-+    }
-     ctxt->validate = xmlDoValidityCheckingDefaultValue;
-     ctxt->pedantic = xmlPedanticParserDefaultValue;
-+    if (ctxt->pedantic) {
-+        ctxt->options |= XML_PARSE_PEDANTIC;
-+    }
-     ctxt->linenumbers = xmlLineNumbersDefaultValue;
-     ctxt->keepBlanks = xmlKeepBlanksDefaultValue;
--    if (ctxt->keepBlanks == 0)
-+    if (ctxt->keepBlanks == 0) {
- 	ctxt->sax->ignorableWhitespace = xmlSAX2IgnorableWhitespace;
-+	ctxt->options |= XML_PARSE_NOBLANKS;
-+    }
- 
-     ctxt->vctxt.finishDtd = XML_CTXT_FINISH_DTD_0;
-     ctxt->vctxt.userData = ctxt;
-@@ -1708,8 +1716,12 @@ xmlInitParserCtxt(xmlParserCtxtPtr ctxt)
- 	else
- 	    ctxt->vctxt.warning = xmlParserValidityWarning;
- 	ctxt->vctxt.nodeMax = 0;
-+        ctxt->options |= XML_PARSE_DTDVALID;
-     }
-     ctxt->replaceEntities = xmlSubstituteEntitiesDefaultValue;
-+    if (ctxt->replaceEntities) {
-+        ctxt->options |= XML_PARSE_NOENT;
-+    }
-     ctxt->record_info = 0;
-     ctxt->nbChars = 0;
-     ctxt->checkIndex = 0;
--- 
-cgit v0.10.1
-
--- a/components/libxml2/patches/mapfile.patch	Tue Oct 21 19:21:36 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-See:
-
-https://mail.gnome.org/archives/xml/2012-October/msg00038.html
-https://mail.gnome.org/archives/xml/2012-October/msg00039.html
-
---- libxml2-2.9.0/configure.in	Mon Sep 10 20:52:46 2012
-+++ libxml2-2.9.0/configure.in	Fri Oct 26 08:16:02 2012
-@@ -82,7 +82,7 @@
-   VERSION_SCRIPT_FLAGS=-Wl,--version-script=
- else
-   case $host in
--  *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
-+  *-*-solaris*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";;
-   esac
- fi
- AC_SUBST(VERSION_SCRIPT_FLAGS)
-@@ -1149,7 +1153,7 @@
-     TEST_SAX=SAXtests
- fi
- AC_SUBST(WITH_SAX1)
--AM_CONDITIONAL(WITH_SAX1_SOURCES, test "${WITH_TRIO}" = "1")
-+AM_CONDITIONAL(WITH_SAX1_SOURCES, test "${WITH_SAX1}" = "1")
- AC_SUBST(TEST_SAX)
- 
- if test "$with_push" = "no" ; then
--- a/components/libxml2/patches/python-dictionary.patch	Tue Oct 21 19:21:36 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,86 +0,0 @@
-# This patch has been submitted upstream but not yet accepted:
-# https://bugzilla.gnome.org/show_bug.cgi?id=734017
-
---- libxml2-2.9.1/python/tests/sync.py~	2013-03-30 07:34:34.000000000 -0700
-+++ libxml2-2.9.1/python/tests/sync.py	2014-07-30 14:27:54.057901481 -0700
-@@ -51,7 +51,7 @@
- reference = "startDocument:startElement foo None:startElement bar2 None:endElement bar2:"
- if log != reference:
-     print("Error got: %s" % log)
--    print("Exprected: %s" % reference)
-+    print("Expected: %s" % reference)
-     sys.exit(1)
- 
- log=""
-@@ -63,7 +63,7 @@
- reference = "startDocument:startElement foo None:startElement bar2 None:endElement bar2:"
- if log != reference:
-     print("Error got: %s" % log)
--    print("Exprected: %s" % reference)
-+    print("Expected: %s" % reference)
-     sys.exit(1)
- 
- log=""
-@@ -75,7 +75,7 @@
- reference = "startDocument:startElement foo None:startElement bar2 None:"
- if log != reference:
-     print("Error got: %s" % log)
--    print("Exprected: %s" % reference)
-+    print("Expected: %s" % reference)
-     sys.exit(1)
- 
- log=""
-@@ -84,10 +84,11 @@
- ctxt.parseChunk(chunk, len(chunk), 0)
- ctxt=None
- 
--reference = "startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:endElement bar2:"
--if log != reference:
-+reference1 = "startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:endElement bar2:"
-+reference2 = "startDocument:startElement foo None:startElement bar2 {'b': '2', 'a': '1'}:endElement bar2:"
-+if log not in (reference1, reference2):
-     print("Error got: %s" % log)
--    print("Exprected: %s" % reference)
-+    print("Expected: %s" % reference)
-     sys.exit(1)
- 
- log=""
-@@ -96,10 +97,11 @@
- ctxt.parseChunk(chunk, len(chunk), 0)
- ctxt=None
- 
--reference = "startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:"
--if log != reference:
-+reference1 = "startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:"
-+reference2 = "startDocument:startElement foo None:startElement bar2 {'b': '2', 'a': '1'}:"
-+if log not in (reference1, reference2):
-     print("Error got: %s" % log)
--    print("Exprected: %s" % reference)
-+    print("Expected: %s" % reference)
-     sys.exit(1)
- 
- log=""
-@@ -108,10 +110,11 @@
- ctxt.parseChunk(chunk, len(chunk), 0)
- ctxt=None
- 
--reference = "startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:endElement bar2:"
--if log != reference:
-+reference1 = "startDocument:startElement foo None:startElement bar2 {'a': '1', 'b': '2'}:endElement bar2:"
-+reference2 = "startDocument:startElement foo None:startElement bar2 {'b': '2', 'a': '1'}:endElement bar2:"
-+if log not in (reference1, reference2):
-     print("Error got: %s" % log)
--    print("Exprected: %s" % reference)
-+    print("Expected: %s" % reference)
-     sys.exit(1)
- 
- log=""
-@@ -123,7 +126,7 @@
- reference = "startDocument:startElement foo None:"
- if log != reference:
-     print("Error got: %s" % log)
--    print("Exprected: %s" % reference)
-+    print("Expected: %s" % reference)
-     sys.exit(1)
- 
- # Memory debug specific
--- a/components/libxml2/patches/python26.patch	Tue Oct 21 19:21:36 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-See:
-
-https://mail.gnome.org/archives/xml/2013-April/msg00039.html
-
---- libxml2-2.9.1/python/libxml_wrap.h	2013-04-01 19:25:28.000000000 -0700
-+++ libxml2-2.9.1/python/libxml_wrap.h	2013-04-23 07:55:11.268714627 -0700
-@@ -34,11 +34,11 @@
- #define PyBytes_AsString PyString_AsString
- #define PyBytes_AS_STRING PyString_AS_STRING
- #define PyBytes_GET_SIZE PyString_GET_SIZE
--
-+#endif
-+#ifndef PyCapsule_New
- #define PyCapsule_New PyCObject_FromVoidPtrAndDesc
- #define PyCapsule_CheckExact PyCObject_Check
- #define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o))
--
- #endif
- #endif
- 
--- a/components/libxml2/patches/python34.patch	Tue Oct 21 19:21:36 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,28 +0,0 @@
-# This patch has been submitted upstream but not yet accepted:
-# https://bugzilla.gnome.org/show_bug.cgi?id=734005
-
---- libxml2-2.9.1/python/drv_libxml2.py.~1~	2009-07-30 08:24:34.000000000 -0700
-+++ libxml2-2.9.1/python/drv_libxml2.py	2014-07-30 10:43:36.655237802 -0700
-@@ -38,8 +38,11 @@
- __version__ = "0.3"
- 
- import codecs
--from types import StringType, UnicodeType
--StringTypes = (StringType,UnicodeType)
-+try:
-+    from types import StringType, UnicodeType
-+    StringTypes = (StringType,UnicodeType)
-+except:
-+    StringTypes = (bytes,str)
- 
- from xml.sax._exceptions import *
- from xml.sax import xmlreader, saxutils
-@@ -65,7 +68,7 @@
- 
- try:
-     import libxml2
--except ImportError, e:
-+except ImportError as e:
-     raise SAXReaderNotAvailable("libxml2 not available: " \
-                                 "import error was: %s" % e)
- 
--- a/components/libxml2/patches/test_errors_name2.patch	Tue Oct 21 19:21:36 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,10 +0,0 @@
-We need to avoid test/errors/name2.xml test to avoid false positive
-noise. For more info see:
-
-https://mail.gnome.org/archives/xml/2012-November/msg00006.html
-https://mail.gnome.org/archives/xml/2012-September/msg00038.html
-
---- libxml2-2.9.0/test/errors/name2.xml	2009-07-30 08:24:34.000000000 -0700
-+++ /dev/null	2012-11-06 02:29:41.000000000 -0800
-@@ -1 +0,0 @@
--<foo foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/libxml2/patches/xmlcatalog.patch	Thu Oct 23 12:11:24 2014 -0700
@@ -0,0 +1,29 @@
+Patch origin: upstream
+Patch status: will be part of next version
+
+From f65128f38289d77ff322d63aef2858cc0a819c34 Mon Sep 17 00:00:00 2001
+From: Daniel Veillard <[email protected]>
+Date: Fri, 17 Oct 2014 17:13:41 +0800
+Subject: Revert "Missing initialization for the catalog module"
+
+This reverts commit 054c716ea1bf001544127a4ab4f4346d1b9947e7.
+As this break xmlcatalog command
+https://bugzilla.redhat.com/show_bug.cgi?id=1153753
+
+diff --git a/parser.c b/parser.c
+index 1d93967..67c9dfd 100644
+--- a/parser.c
++++ b/parser.c
+@@ -14830,9 +14830,6 @@ xmlInitParser(void) {
+ #ifdef LIBXML_XPATH_ENABLED
+ 	xmlXPathInit();
+ #endif
+-#ifdef LIBXML_CATALOG_ENABLED
+-        xmlInitializeCatalog();
+-#endif
+ 	xmlParserInitialized = 1;
+ #ifdef LIBXML_THREAD_ENABLED
+     }
+-- 
+cgit v0.10.1
+