Upgrade to libxml2-2.9.2
authorHugo Villeneuve <hugo@hugovil.com>
Sun, 14 Dec 2014 21:01:35 +0000 (16:01 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 27 Dec 2014 05:01:50 +0000 (00:01 -0500)
config/packages-list
stage3/hv-install-1
stage3/patches/common/libxml2-2.9.2-fix-xmlcatalog.patch [new file with mode: 0644]

index cf1abe5..07f32c7 100644 (file)
@@ -252,7 +252,7 @@ LIBUSB="libusb-1.0.19"
 LIBUSB_COMPAT="libusb-compat-0.1.4"
 LIBWNCK="libwnck-2.30.7"
 LIBXKLAVIER="libxklavier-5.2.1"
-LIBXML2="libxml2-2.8.0"
+LIBXML2="libxml2-2.9.2"
 LIBXSLT="libxslt-1.1.26"
 LIBX264="x264-snapshot-20130416-2245"
 LIGHTTPD="lighttpd-1.4.32"
index 772d000..1c21acd 100755 (executable)
@@ -116,7 +116,7 @@ ipkg -m acnb ${OPENJADE} "--enable-splibdir=/usr/lib"
 ipkg -m noac ${DOCBOOK_DSSSL}
 ipkg -m noac ${SGML_SPM}
 ipkg ${DOCBOOK_UTILS}
-ipkg -m acnb ${LIBXML2}
+ipkg -m acnb ${LIBXML2} "--disable-static --with-history"
 ipkg -m acnb ${LIBXSLT}
 ipkg -m noac ${DOCBOOK_XML}
 ipkg -m noac ${DOCBOOK_XSL}
diff --git a/stage3/patches/common/libxml2-2.9.2-fix-xmlcatalog.patch b/stage3/patches/common/libxml2-2.9.2-fix-xmlcatalog.patch
new file mode 100644 (file)
index 0000000..652cc24
--- /dev/null
@@ -0,0 +1,21 @@
+diff -Naur libxml2-2.9.2.orig/parser.c libxml2-2.9.2.new/parser.c
+--- libxml2-2.9.2.orig/parser.c        2014-10-16 01:57:40.000000000 -0400
++++ libxml2-2.9.2.new/parser.c 2014-12-23 14:36:56.870905830 -0500
+@@ -7235,7 +7235,8 @@
+      * far more secure as the parser will only process data coming from
+      * the document entity by default.
+      */
+-    if ((ent->checked == 0) &&
++    if (((ent->checked == 0) ||
++          ((ent->children == NULL) && (ctxt->options & XML_PARSE_NOENT))) &&
+         ((ent->etype != XML_EXTERNAL_GENERAL_PARSED_ENTITY) ||
+          (ctxt->options & (XML_PARSE_NOENT | XML_PARSE_DTDVALID)))) {
+       unsigned long oldnbent = ctxt->nbentities;
+@@ -14831,7 +14832,6 @@
+       xmlXPathInit();
+ #endif
+ #ifdef LIBXML_CATALOG_ENABLED
+-        xmlInitializeCatalog();
+ #endif
+       xmlParserInitialized = 1;
+ #ifdef LIBXML_THREAD_ENABLED