diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-11-30 16:46:37 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-12-05 18:01:05 +0000 |
commit | 87298099f1e0820655b3a80ddd47e63c7e60cd15 (patch) | |
tree | 31e50c02b1f19a378477700e96c526de32cfbc76 | |
parent | 8ad1d1d6f61d07971138b131559c13fb9c1c2d46 (diff) | |
download | poky-87298099f1e0820655b3a80ddd47e63c7e60cd15.tar.gz |
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.
(From OE-Core rev: f14ecfa98baf98edf47b6820d3b0b3af376c5623)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/libxslt/libxslt_1.1.28.bb | 5 |
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" | |||
35 | RCONFLICTS_${PN}-bin += "${PN}-utils" | 35 | RCONFLICTS_${PN}-bin += "${PN}-utils" |
36 | RREPLACES_${PN}-bin += "${PN}-utils" | 36 | RREPLACES_${PN}-bin += "${PN}-utils" |
37 | 37 | ||
38 | |||
39 | do_install_append_class-native () { | ||
40 | create_wrapper ${D}/${bindir}/xsltproc XML_CATALOG_FILES=${sysconfdir}/xml/catalog.xml | ||
41 | } | ||
42 | |||
38 | FILES_${PN} += "${libdir}/libxslt-plugins" | 43 | FILES_${PN} += "${libdir}/libxslt-plugins" |
39 | FILES_${PN}-dev += "${libdir}/xsltConf.sh" | 44 | FILES_${PN}-dev += "${libdir}/xsltConf.sh" |
40 | 45 | ||