Patchwork [1/8] libxml2: enable Catalog support

login
register
mail settings
Submitter Hongxu Jia
Date July 8, 2014, 9:47 a.m.
Message ID <7b884496fe887767c6be62b854b4b3dd9ac6aab8.1404812342.git.hongxu.jia@windriver.com>
Download mbox | patch
Permalink /patch/75155/
State New
Headers show

Comments

Hongxu Jia - July 8, 2014, 9:47 a.m.
The environment variable XML_CATALOG_FILES could work
which was required by xmlto.

[YOCTO #2416]

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 meta/recipes-core/libxml/libxml2.inc | 2 ++
 1 file changed, 2 insertions(+)
Ross Burton - July 8, 2014, 3:26 p.m.
On 8 July 2014 10:47, Hongxu Jia <hongxu.jia@windriver.com> wrote:
> +CFLAGS_append = " -DLIBXML_CATALOG_ENABLED"

EXTRA_OECONF has --without-catalog, so you should change that instead
of passing CFLAGS directly.

Ross

Patch

diff --git a/meta/recipes-core/libxml/libxml2.inc b/meta/recipes-core/libxml/libxml2.inc
index e0b50cf..470ac3f 100644
--- a/meta/recipes-core/libxml/libxml2.inc
+++ b/meta/recipes-core/libxml/libxml2.inc
@@ -28,6 +28,8 @@  inherit autotools pkgconfig binconfig-disabled pythonnative ptest
 
 RDEPENDS_${PN}-ptest_append_libc-glibc += "eglibc-gconv-ebcdic-us eglibc-gconv-ibm1141"
 
+CFLAGS_append = " -DLIBXML_CATALOG_ENABLED"
+
 # We don't DEPEND on binutils for ansidecl.h so ensure we don't use the header
 do_configure_prepend () {
 	sed -i -e '/.*ansidecl.h.*/d' ${S}/configure.in