libxml2: wrap xmllint to use the correct XML catalogues

Install a wrapper around xmllint in native builds to set
XML_CATALOG_FILES to the correct location of the XML catalogues, so that
the callers of this script (like xmlto) don't need to do the same.

(From OE-Core rev: 8159b47e7ddddaca57ade2ecf24d8ff9a0abf26a)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2022-08-23 16:37:30 +01:00
committed by Richard Purdie
parent 823ca8a067
commit 544c3255b1

View File

@@ -109,6 +109,8 @@ do_install_ptest () {
do_install:append:class-native () {
# Docs are not needed in the native case
rm ${D}${datadir}/gtk-doc -rf
create_wrapper ${D}${bindir}/xmllint XML_CATALOG_FILES=${sysconfdir}/xml/catalog
}
BBCLASSEXTEND = "native nativesdk"