diff options
author | Ross Burton <ross.burton@arm.com> | 2024-01-11 18:14:42 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-12 11:54:05 +0000 |
commit | dda251dfc2dc7755bf1e909ec8eb6a708e2cde6d (patch) | |
tree | 219474048798a91970036b2df55c4ec99b3b7297 /meta/classes-recipe/xmlcatalog.bbclass | |
parent | ea9e07a3e25a687198f6fcda81daff77cf099909 (diff) | |
download | poky-dda251dfc2dc7755bf1e909ec8eb6a708e2cde6d.tar.gz |
xmlcatalog: limit to native recipes only
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.
(From OE-Core rev: 38a5fc5dbb33fd3314f0a98c861a842342add064)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/xmlcatalog.bbclass')
-rw-r--r-- | meta/classes-recipe/xmlcatalog.bbclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes-recipe/xmlcatalog.bbclass b/meta/classes-recipe/xmlcatalog.bbclass index 5826d0a8b5..d3ef7ff43c 100644 --- a/meta/classes-recipe/xmlcatalog.bbclass +++ b/meta/classes-recipe/xmlcatalog.bbclass | |||
@@ -4,13 +4,17 @@ | |||
4 | # SPDX-License-Identifier: MIT | 4 | # SPDX-License-Identifier: MIT |
5 | # | 5 | # |
6 | 6 | ||
7 | DEPENDS = "libxml2-native" | 7 | # Note that this recipe only handles XML catalogues in the native sysroot, and doesn't |
8 | # yet support catalogue management in the target sysroot or on the target itself. | ||
9 | # (https://bugzilla.yoctoproject.org/13271) | ||
8 | 10 | ||
9 | # A whitespace-separated list of XML catalogs to be registered, for example | 11 | # A whitespace-separated list of XML catalogs to be registered, for example |
10 | # "${sysconfdir}/xml/docbook-xml.xml". | 12 | # "${sysconfdir}/xml/docbook-xml.xml". |
11 | XMLCATALOGS ?= "" | 13 | XMLCATALOGS ?= "" |
12 | 14 | ||
13 | SYSROOT_PREPROCESS_FUNCS:append = " xmlcatalog_sstate_postinst" | 15 | DEPENDS:append = " libxml2-native" |
16 | |||
17 | SYSROOT_PREPROCESS_FUNCS:append:class-native = " xmlcatalog_sstate_postinst" | ||
14 | 18 | ||
15 | xmlcatalog_complete() { | 19 | xmlcatalog_complete() { |
16 | ROOTCATALOG="${STAGING_ETCDIR_NATIVE}/xml/catalog" | 20 | ROOTCATALOG="${STAGING_ETCDIR_NATIVE}/xml/catalog" |