From: "'Felix Moessbauer' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: jan.kiszka@siemens.com, akarpovich@ilbers.de,
Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH 2/3] fix: redirect archall dependency to native provider on non cross builds
Date: Thu, 30 Jul 2026 13:11:05 +0200 [thread overview]
Message-ID: <20260730111106.1223399-3-felix.moessbauer@siemens.com> (raw)
In-Reply-To: <20260730111106.1223399-1-felix.moessbauer@siemens.com>
The extend_provides needs to mirror the -archall pattern from fixup_depends:
when a provide ends in -archall, the arch-independent (native-equivalent)
provider must be exposed under its bare name, not <name>-archall-native.
We change it so that for the native case it strips -archall and emits
the bare name
Fixes: 327fb313 ("sbuild: do not build arch all packages on cross")
---
meta/classes-recipe/multiarch.bbclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/meta/classes-recipe/multiarch.bbclass b/meta/classes-recipe/multiarch.bbclass
index 5f84fac2..a30d530c 100644
--- a/meta/classes-recipe/multiarch.bbclass
+++ b/meta/classes-recipe/multiarch.bbclass
@@ -16,7 +16,11 @@ python() {
if not pn_multiarch_target(pn):
all_provides = (d.getVar('PROVIDES') or '').split()
for p in all_provides:
- if not pn_multiarch_target(p):
+ if p.endswith('-archall'):
+ # arch=all provider: expose bare name for the native-equivalent
+ if provides == 'native':
+ d.appendVar('PROVIDES', ' ' + p[:-len('-archall')])
+ elif not pn_multiarch_target(p):
d.appendVar('PROVIDES', f' {p}-{provides}')
d.appendVar('PROVIDES', f' {pn}-{provides}')
--
2.53.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260730111106.1223399-3-felix.moessbauer%40siemens.com.
next prev parent reply other threads:[~2026-07-30 11:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-30 11:11 [PATCH 0/3] Fixes for complex multiarch dependency propagation 'Felix Moessbauer' via isar-users
2026-07-30 11:11 ` [PATCH 1/3] fix(rootfs): copy isar-apt packages instead of downloading 'Felix Moessbauer' via isar-users
2026-07-30 11:11 ` 'Felix Moessbauer' via isar-users [this message]
2026-07-30 11:11 ` [PATCH 3/3] testsuite: check propagation of archall to deps on native 'Felix Moessbauer' via isar-users
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260730111106.1223399-3-felix.moessbauer@siemens.com \
--to=isar-users@googlegroups.com \
--cc=akarpovich@ilbers.de \
--cc=felix.moessbauer@siemens.com \
--cc=jan.kiszka@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox