[5/5] multiarch: Do not re-extend real -native recipes

Message ID 20251001105929.3731537-6-anaumann@emlix.com
State RFC
Headers show
Series Improving multiarch support for arch-incompatible packages | expand

Commit Message

Andreas Naumann Oct. 1, 2025, 10:59 a.m. UTC
This is mainly to prevent confusion when <pkg>-native.bb recipes would be
extended to <pkg>-native-native.

Signed-off-by: Andreas Naumann <anaumann@emlix.com>
---
 meta/classes/multiarch.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes/multiarch.bbclass b/meta/classes/multiarch.bbclass
index 03c55bbe..2a0d8abb 100644
--- a/meta/classes/multiarch.bbclass
+++ b/meta/classes/multiarch.bbclass
@@ -34,7 +34,7 @@  python() {
     # build native separately only when it differs from the target variant
     # We must not short-circuit for DPKG_ARCH=all packages, as they might
     # have transitive dependencies which need to be built for -native.
-    if archDiffers:
+    if archDiffers and not pn.endswith('-native'):
         if archIsNative or archIsAll or archIsAny:
             d.appendVar('BBCLASSEXTEND', ' native')
         elif archIsKnown: