summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-11-30 16:46:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-05 17:42:45 +0000
commitf14ecfa98baf98edf47b6820d3b0b3af376c5623 (patch)
tree9ed435eab56854570e99e47f2e685c8cead83e80 /meta
parentfb419b1a3f5dbc5e5019be9d09c4acdbeb460c19 (diff)
downloadopenembedded-core-f14ecfa98baf98edf47b6820d3b0b3af376c5623.tar.gz
openembedded-core-f14ecfa98baf98edf47b6820d3b0b3af376c5623.tar.bz2
openembedded-core-f14ecfa98baf98edf47b6820d3b0b3af376c5623.zip
libxslt: create wrapper to avoid host system referencing
By default, xsltproc from libxslt would use configuration files under /etc/xml. To avoid host system contamination, we create a wrapper for this command to make it use configuration files in the sysroot directory. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/libxslt/libxslt_1.1.28.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-support/libxslt/libxslt_1.1.28.bb b/meta/recipes-support/libxslt/libxslt_1.1.28.bb
index 0b2526dbee..ded883e457 100644
--- a/meta/recipes-support/libxslt/libxslt_1.1.28.bb
+++ b/meta/recipes-support/libxslt/libxslt_1.1.28.bb
@@ -35,6 +35,11 @@ RPROVIDES_${PN}-bin += "${PN}-utils"
RCONFLICTS_${PN}-bin += "${PN}-utils"
RREPLACES_${PN}-bin += "${PN}-utils"
+
+do_install_append_class-native () {
+ create_wrapper ${D}/${bindir}/xsltproc XML_CATALOG_FILES=${sysconfdir}/xml/catalog.xml
+}
+
FILES_${PN} += "${libdir}/libxslt-plugins"
FILES_${PN}-dev += "${libdir}/xsltConf.sh"