In packagegroup-container, it runtime depends on conmon if DISTRO_FEATURES 
contains seccomp
but oe-core uses target override loongarch64 to disable seccomp from default 
feature [1]

$ echo "MACHINE = 'qemuloongarch64'" >> conf/local.conf
$ bitbake world
ERROR: Nothing RPROVIDES 'conmon' (but 
meta-virtualization/recipes-core/packagegroups/packagegroup-container.bb 
RDEPENDS on or otherwise requires it)
conmon was skipped: missing required distro feature 'seccomp' (not in 
DISTRO_FEATURES)
NOTE: Runtime target 'conmon' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['conmon']
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 
'packagegroup-container', 'conmon']

Set 'PACKAGE_ARCH = "${MACHINE_ARCH}"' to make target arch override loongarch64 
work

[1] 
https://github.com/openembedded/openembedded-core/commit/e9177bfc647ffd8d0346154c2673562e3585c7ef

Signed-off-by: Hongxu Jia <[email protected]>
---
 recipes-core/packagegroups/packagegroup-container.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-core/packagegroups/packagegroup-container.bb 
b/recipes-core/packagegroups/packagegroup-container.bb
index 3e2d2a25..ab4cbb6c 100644
--- a/recipes-core/packagegroups/packagegroup-container.bb
+++ b/recipes-core/packagegroups/packagegroup-container.bb
@@ -2,6 +2,8 @@ SUMMARY = "All packages for container host"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = 
"file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
 
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
 inherit packagegroup goarch
 
 COMPATIBLE_HOST = "^(?!(mips|riscv)).*"
-- 
2.34.1

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

Reply via email to