[oe-commits] Chen Qi : libxslt: create wrapper to avoid host system referencing

git at git.openembedded.org git at git.openembedded.org
Fri Dec 5 18:01:32 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: f14ecfa98baf98edf47b6820d3b0b3af376c5623
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=f14ecfa98baf98edf47b6820d3b0b3af376c5623

Author: Chen Qi <Qi.Chen at windriver.com>
Date:   Sun Nov 30 16:46:37 2014 +0800

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 at windriver.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/recipes-support/libxslt/libxslt_1.1.28.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/recipes-support/libxslt/libxslt_1.1.28.bb b/meta/recipes-support/libxslt/libxslt_1.1.28.bb
index 0b2526d..ded883e 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"
 



More information about the Openembedded-commits mailing list