From: Ross Burton <[email protected]>

The sysroot postinst is explicitly native-only, so use more overrides to
ensure that we don't try to run them outside of native recipes.

Also add a comment so this doesn't get forgotten again, and link to the
related bug.

Signed-off-by: Ross Burton <[email protected]>
---
 meta/classes-recipe/xmlcatalog.bbclass | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/meta/classes-recipe/xmlcatalog.bbclass 
b/meta/classes-recipe/xmlcatalog.bbclass
index 5826d0a8b51..d3ef7ff43c2 100644
--- a/meta/classes-recipe/xmlcatalog.bbclass
+++ b/meta/classes-recipe/xmlcatalog.bbclass
@@ -4,13 +4,17 @@
 # SPDX-License-Identifier: MIT
 #
 
-DEPENDS = "libxml2-native"
+# Note that this recipe only handles XML catalogues in the native sysroot, and 
doesn't
+# yet support catalogue management in the target sysroot or on the target 
itself.
+# (https://bugzilla.yoctoproject.org/13271)
 
 # A whitespace-separated list of XML catalogs to be registered, for example
 # "${sysconfdir}/xml/docbook-xml.xml".
 XMLCATALOGS ?= ""
 
-SYSROOT_PREPROCESS_FUNCS:append = " xmlcatalog_sstate_postinst"
+DEPENDS:append = " libxml2-native"
+
+SYSROOT_PREPROCESS_FUNCS:append:class-native = " xmlcatalog_sstate_postinst"
 
 xmlcatalog_complete() {
        ROOTCATALOG="${STAGING_ETCDIR_NATIVE}/xml/catalog"
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#193561): 
https://lists.openembedded.org/g/openembedded-core/message/193561
Mute This Topic: https://lists.openembedded.org/mt/103667686/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to