From: "'Felix Moessbauer' via isar-users" <isar-users@googlegroups.com>
To: isar-users@googlegroups.com
Cc: anaumann@emlix.com, adriaan.schmidt@siemens.com,
jan.kiszka@siemens.com, konrad.schwarz@siemens.com,
Felix Moessbauer <felix.moessbauer@siemens.com>
Subject: [PATCH v2 0/4] Only build arch=all package from -native variant
Date: Mon, 4 May 2026 10:50:44 +0200 [thread overview]
Message-ID: <20260504085048.705717-1-felix.moessbauer@siemens.com> (raw)
Architecture-all packages often cannot be built in cross mode, as their
dependencies cannot be resolved for the host architecture. Therefore, we
need to dispatch the build of arch=all packages from the target recipe
to the -native variant. This introduces some side effects:
- A mixed arch=(all|any) package needs to be built twice: once in
cross mode for the arch=any parts, and once in -native mode for the
arch=all parts (p2).
- Dependencies on arch=all packages from mixed source packages need to
be modeled so that consumers of a package do not need to be aware of
this distinction (p2).
- The arch=all packages must be available in the apt repository used
during target installation (p3).
Since we now ensure that arch=all packages are only built once, we can
safely revert the repo-split patch. Moreover, we must do so to make the
arch=all packages available during target installation.
PS: As our multiarch code history contains numerous fix tags,
I kindly ask everyone to test this series carefully.
Changes since v1:
- model dependencies to arch=all packages via DEPENDS / PROVIDES instead
of an explicit dependency to -native.
- add revert of repo-split patch
- add testcase
Best regards,
Felix Moessbauer
Felix Moessbauer (4):
mark cowsay package as architecture all
sbuild: do not build arch all packages on cross
Revert "Split up isar-apt into distro-arch specific instances"
add test for mixed arch all arch any packages
RECIPE-API-CHANGELOG.md | 16 ++++++++++++++++
meta-isar/recipes-app/cowsay/cowsay_git.bb | 2 ++
meta-test/recipes-app/test-all-any/files/control | 16 ++++++++++++++++
.../recipes-app/test-all-any/test-all-any.bb | 13 +++++++++++++
meta/classes-recipe/dpkg.bbclass | 3 ++-
meta/classes-recipe/multiarch.bbclass | 4 ++++
meta/conf/bitbake.conf | 4 ++--
testsuite/citest.py | 3 ++-
8 files changed, 57 insertions(+), 4 deletions(-)
create mode 100644 meta-test/recipes-app/test-all-any/files/control
create mode 100644 meta-test/recipes-app/test-all-any/test-all-any.bb
--
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/20260504085048.705717-1-felix.moessbauer%40siemens.com.
next reply other threads:[~2026-05-04 8:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-04 8:50 'Felix Moessbauer' via isar-users [this message]
2026-05-04 8:50 ` [PATCH v2 1/4] mark cowsay package as architecture all 'Felix Moessbauer' via isar-users
2026-05-04 8:50 ` [PATCH v2 2/4] sbuild: do not build arch all packages on cross 'Felix Moessbauer' via isar-users
2026-05-05 5:10 ` 'Jan Kiszka' via isar-users
2026-05-05 6:39 ` 'MOESSBAUER, Felix' via isar-users
2026-05-04 8:50 ` [PATCH v2 3/4] Revert "Split up isar-apt into distro-arch specific instances" 'Felix Moessbauer' via isar-users
2026-05-04 8:50 ` [PATCH v2 4/4] add test for mixed arch all arch any packages '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=20260504085048.705717-1-felix.moessbauer@siemens.com \
--to=isar-users@googlegroups.com \
--cc=adriaan.schmidt@siemens.com \
--cc=anaumann@emlix.com \
--cc=felix.moessbauer@siemens.com \
--cc=jan.kiszka@siemens.com \
--cc=konrad.schwarz@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