]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
libxml2: wrap xmllint to use the correct XML catalogues
authorRoss Burton <ross.burton@arm.com>
Tue, 23 Aug 2022 15:37:30 +0000 (16:37 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Aug 2022 10:07:33 +0000 (11:07 +0100)
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.

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>
meta/recipes-core/libxml/libxml2_2.9.14.bb

index e58298d3b01f72a966e0d72553d9dbec88d19e6b..d803db867210c1cceee639ea7b1f6f11b57d1344 100644 (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"