From: Zhihang Wei <wzh@ilbers.de>
To: Felix Moessbauer <felix.moessbauer@siemens.com>,
isar-users@googlegroups.com
Cc: jan.kiszka@siemens.com
Subject: Re: [PATCH 1/1] fix(multiarch): do not double append variant suffix
Date: Tue, 13 Oct 2026 18:27:51 +0200 [thread overview]
Message-ID: <ac40c5d6-156a-47c0-bda4-475679e2fe18@ilbers.de> (raw)
In-Reply-To: <20260925072055.1729383-1-felix.moessbauer@siemens.com>
Applied to next, thanks.
Zhihang
On 9/25/26 09:20, 'Felix Moessbauer' via isar-users wrote:
> We currently unconditionally append the variant suffix, even if the
> variable already contains it. This breaks if a -native recipe variant
> explicitly depends on another -native, as this results in a
> -native-native variant.
>
> We now change this by only adding the variant if the variable does not
> end with any of the well known variants.
>
> Fixes: 327fb313 ("sbuild: do not build arch all packages on cross")
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
> meta/classes-recipe/multiarch.bbclass | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/classes-recipe/multiarch.bbclass b/meta/classes-recipe/multiarch.bbclass
> index a30d530c..8b050500 100644
> --- a/meta/classes-recipe/multiarch.bbclass
> +++ b/meta/classes-recipe/multiarch.bbclass
> @@ -88,9 +88,10 @@ python multiarch_virtclass_handler() {
> if v.endswith('-compat') or v.endswith('-native'):
> multiarch_var.append(v)
> # dispatch -archall (arch=all) to native variant
> - if v.endswith('-archall'):
> + elif v.endswith('-archall'):
> if suffix == '-native':
> multiarch_var.append(v[:-len('-archall')])
> + # avoid appending the suffix if it is already present
> else:
> multiarch_var.append(v + suffix)
> d.setVar(var, ' '.join(multiarch_var))
--
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/ac40c5d6-156a-47c0-bda4-475679e2fe18%40ilbers.de.
prev parent reply other threads:[~2026-10-13 16:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-25 7:20 'Felix Moessbauer' via isar-users
2026-10-13 16:27 ` Zhihang Wei [this message]
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=ac40c5d6-156a-47c0-bda4-475679e2fe18@ilbers.de \
--to=wzh@ilbers.de \
--cc=felix.moessbauer@siemens.com \
--cc=isar-users@googlegroups.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