public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Only build arch=all package from -native variant
@ 2026-05-06 12:19 'Felix Moessbauer' via isar-users
  2026-05-06 12:19 ` [PATCH v3 1/4] mark cowsay package as architecture all 'Felix Moessbauer' via isar-users
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2026-05-06 12:19 UTC (permalink / raw)
  To: isar-users
  Cc: anaumann, adriaan.schmidt, jan.kiszka, konrad.schwarz, Felix Moessbauer

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 v2:

- use -archall suffix instead of -all
- improve commit message of p2 to better reflect the changes

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                         | 17 +++++++++++++++++
 meta-isar/recipes-app/cowsay/cowsay_git.bb      |  2 ++
 .../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, 58 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/20260506121931.4167983-1-felix.moessbauer%40siemens.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-06 12:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-06 12:19 [PATCH v3 0/4] Only build arch=all package from -native variant 'Felix Moessbauer' via isar-users
2026-05-06 12:19 ` [PATCH v3 1/4] mark cowsay package as architecture all 'Felix Moessbauer' via isar-users
2026-05-06 12:19 ` [PATCH v3 2/4] sbuild: do not build arch all packages on cross 'Felix Moessbauer' via isar-users
2026-05-06 12:19 ` [PATCH v3 3/4] Revert "Split up isar-apt into distro-arch specific instances" 'Felix Moessbauer' via isar-users
2026-05-06 12:19 ` [PATCH v3 4/4] add test for mixed arch all arch any packages 'Felix Moessbauer' via isar-users

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox