]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
libxml2: don't override XML_CATALOG_FILES in xmllint wrapper if already set
authorRoss Burton <ross.burton@arm.com>
Fri, 9 Sep 2022 16:36:40 +0000 (17:36 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 Sep 2022 07:31:22 +0000 (08:31 +0100)
The KDE build uses custom catalogs by setting XML_CATALOG_FILES, so this
wrapper should not override that value if it has already been set.

[RP: Add vardepsexclude since bitbake stores the expanded version of the variable
name in the siginfo data which would expand to a full build path in the native
case]

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/libxml/libxml2_2.9.14.bb

index 2b2289e38a6fa1463ed548c1907609a41b6d3a99..a2ed8d71bc1a4802a4b24bbdc4a7c46c4f1d7c4d 100644 (file)
@@ -121,7 +121,8 @@ 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
+       create_wrapper ${D}${bindir}/xmllint 'XML_CATALOG_FILES=${XML_CATALOG_FILES:-${sysconfdir}/xml/catalog}'
 }
+do_install[vardepsexclude] += "XML_CATALOG_FILES:-${sysconfdir}/xml/catalog"
 
 BBCLASSEXTEND = "native nativesdk"