From 8d3758ce9eeafa3756301409b090c8deb363fa1f Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Fri, 26 Jan 2024 08:38:30 +0000 Subject: [PATCH] packagegroup: fix warning caused by inherit_defer Yocto scarthgap is now using inherit_defer which causes allarch to be inherited last, when nativesdk wants to always be the last one. Workaround this by setting PACKAGE_ARCH to empty, which causes the allarch inherit to be skipped. PACKAGE_ARCH will still end up being the same value, as packagegroup will set it correctly. Fixes QA Issue: nativesdk-packagegroup-qt6-toolchain-host: native/nativesdk class is not inherited last, this can result in unexpected behaviour. Pick-to: 6.7 6.6 6.5 Change-Id: I0457a62333d88b14c3330e3349f585dc6c3eec35 Reviewed-by: Mikko Gronoff --- .../packagegroups/nativesdk-packagegroup-qt6-toolchain-host.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes-qt/packagegroups/nativesdk-packagegroup-qt6-toolchain-host.bb b/recipes-qt/packagegroups/nativesdk-packagegroup-qt6-toolchain-host.bb index e40a263..dddb142 100644 --- a/recipes-qt/packagegroups/nativesdk-packagegroup-qt6-toolchain-host.bb +++ b/recipes-qt/packagegroups/nativesdk-packagegroup-qt6-toolchain-host.bb @@ -1,6 +1,9 @@ DESCRIPTION = "Qt6 development host packages" LICENSE = "MIT" +# avoid warning with inherit_defer allarch +PACKAGE_ARCH = "" + inherit packagegroup nativesdk PACKAGEGROUP_DISABLE_COMPLEMENTARY = "1"