* [PATCH v2 1/4] mark cowsay package as architecture all
2026-05-04 8:50 [PATCH v2 0/4] Only build arch=all package from -native variant 'Felix Moessbauer' via isar-users
@ 2026-05-04 8:50 ` '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
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2026-05-04 8:50 UTC (permalink / raw)
To: isar-users
Cc: anaumann, adriaan.schmidt, jan.kiszka, konrad.schwarz, Felix Moessbauer
By that we do not cross-compile the cowsay package. It only consists
of arch=all packages.
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
meta-isar/recipes-app/cowsay/cowsay_git.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-isar/recipes-app/cowsay/cowsay_git.bb b/meta-isar/recipes-app/cowsay/cowsay_git.bb
index b0b8d3eb..0fa1e67c 100644
--- a/meta-isar/recipes-app/cowsay/cowsay_git.bb
+++ b/meta-isar/recipes-app/cowsay/cowsay_git.bb
@@ -5,6 +5,8 @@
inherit dpkg-gbp
+DPKG_ARCH = "all"
+
SRC_URI = "git://salsa.debian.org/debian/cowsay.git;protocol=https;branch=master"
SRC_URI += "file://isar.patch"
SRCREV = "756f0c41fbf582093c0c1dff9ff77734716cb26f"
--
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-2-felix.moessbauer%40siemens.com.
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH v2 2/4] sbuild: do not build arch all packages on cross
2026-05-04 8:50 [PATCH v2 0/4] Only build arch=all package from -native variant 'Felix Moessbauer' via isar-users
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 ` 'Felix Moessbauer' via isar-users
2026-05-05 5:10 ` 'Jan Kiszka' 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
3 siblings, 1 reply; 7+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2026-05-04 8:50 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 the
dependencies cannot be resolved in the host architecture. This
especially applies to all packages which split their build dependencies
into Build-Depends-Arch and Build-Depends-Indep. We already have logic
in isar to built DPKG_ARCH=all packages non-cross, but this does not
work for packages that generate both arch specific and arch all binary
packages.
While sbuild automatically disables builds of arch-all packages on
cross, we previously explicitly overrode this setting. We now change
this by explicitly setting --no-arch-all flag on cross and --arch-all on
non-cross.
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
RECIPE-API-CHANGELOG.md | 16 ++++++++++++++++
meta/classes-recipe/dpkg.bbclass | 3 ++-
meta/classes-recipe/multiarch.bbclass | 4 ++++
3 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
index 856da5de..d4b093f4 100644
--- a/RECIPE-API-CHANGELOG.md
+++ b/RECIPE-API-CHANGELOG.md
@@ -1001,3 +1001,19 @@ do_copy_boot_files: The recipe isar-image-base is trying to install
files into a shared area when those files already exists. It happens
when some files have the same names (e.g., dtb files) for different
distros.
+
+### No building of arch=all packages when cross building
+
+Architecture all packages often cannot be built in cross mode, as the
+dependencies cannot be resolved in the foreign architecture. This especially
+applies to all packages which split their build dependencies into
+`Build-Depends-Arch` and `Build-Depends-Indep`. We already have logic
+in isar to built `DPKG_ARCH = "all"` packages non-cross, but this does not
+work for packages that generate both arch specific and arch all binary packages.
+
+We now explicitly disable building `arch=all` binary packages during cross
+compilation (this only affects packages that produce both architecture-specific
+and `arch=all` binary packages). Recipes for such mixed packages should append
+`-all` to the `arch=all` binary packages listed in `PROVIDES` (e.g.,
+`PROVIDES="foo-doc-all"` for an `arch=all` binary package `foo-doc`). Consumers
+can then simply reference the package by its original name (e.g., `foo-doc`).
diff --git a/meta/classes-recipe/dpkg.bbclass b/meta/classes-recipe/dpkg.bbclass
index c1c38184..500aaefe 100644
--- a/meta/classes-recipe/dpkg.bbclass
+++ b/meta/classes-recipe/dpkg.bbclass
@@ -109,8 +109,9 @@ dpkg_runbuild() {
DSC_FILE=$(find ${WORKDIR} -maxdepth 1 -name "${DEBIAN_SOURCE}_*.dsc" -print)
- sbuild -A -n -c ${SBUILD_CHROOT} --chroot-mode=schroot \
+ sbuild -n -c ${SBUILD_CHROOT} --chroot-mode=schroot \
--host=${PACKAGE_ARCH} --build=${BUILD_ARCH} ${profiles} \
+ ${@'--no-arch-all' if 'cross' in isar_deb_build_profiles(d).split() else '--arch-all'} \
--no-run-lintian --no-run-piuparts --no-run-autopkgtest --resolve-alternatives \
--bd-uninstallable-explainer=apt \
--no-apt-update --apt-distupgrade \
diff --git a/meta/classes-recipe/multiarch.bbclass b/meta/classes-recipe/multiarch.bbclass
index cdd35f12..6c0fa809 100644
--- a/meta/classes-recipe/multiarch.bbclass
+++ b/meta/classes-recipe/multiarch.bbclass
@@ -83,6 +83,10 @@ python multiarch_virtclass_handler() {
for v in val.split():
if v.endswith('-compat') or v.endswith('-native'):
multiarch_var.append(v)
+ # dispatch -all (arch=all) to native variant
+ if v.endswith('-all'):
+ if suffix == '-native':
+ multiarch_var.append(v[:-len('-all')])
else:
multiarch_var.append(v + suffix)
d.setVar(var, ' '.join(multiarch_var))
--
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-3-felix.moessbauer%40siemens.com.
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: [PATCH v2 2/4] sbuild: do not build arch all packages on cross
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
0 siblings, 1 reply; 7+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2026-05-05 5:10 UTC (permalink / raw)
To: Felix Moessbauer, isar-users; +Cc: anaumann, adriaan.schmidt, konrad.schwarz
On 04.05.26 10:50, Felix Moessbauer wrote:
> Architecture all packages often cannot be built in cross mode, as the
> dependencies cannot be resolved in the host architecture. This
> especially applies to all packages which split their build dependencies
> into Build-Depends-Arch and Build-Depends-Indep. We already have logic
> in isar to built DPKG_ARCH=all packages non-cross, but this does not
> work for packages that generate both arch specific and arch all binary
> packages.
>
> While sbuild automatically disables builds of arch-all packages on
> cross, we previously explicitly overrode this setting. We now change
> this by explicitly setting --no-arch-all flag on cross and --arch-all on
> non-cross.
>
> Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> ---
> RECIPE-API-CHANGELOG.md | 16 ++++++++++++++++
> meta/classes-recipe/dpkg.bbclass | 3 ++-
> meta/classes-recipe/multiarch.bbclass | 4 ++++
> 3 files changed, 22 insertions(+), 1 deletion(-)
>
> diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
> index 856da5de..d4b093f4 100644
> --- a/RECIPE-API-CHANGELOG.md
> +++ b/RECIPE-API-CHANGELOG.md
> @@ -1001,3 +1001,19 @@ do_copy_boot_files: The recipe isar-image-base is trying to install
> files into a shared area when those files already exists. It happens
> when some files have the same names (e.g., dtb files) for different
> distros.
> +
> +### No building of arch=all packages when cross building
> +
> +Architecture all packages often cannot be built in cross mode, as the
> +dependencies cannot be resolved in the foreign architecture. This especially
> +applies to all packages which split their build dependencies into
> +`Build-Depends-Arch` and `Build-Depends-Indep`. We already have logic
> +in isar to built `DPKG_ARCH = "all"` packages non-cross, but this does not
> +work for packages that generate both arch specific and arch all binary packages.
> +
> +We now explicitly disable building `arch=all` binary packages during cross
> +compilation (this only affects packages that produce both architecture-specific
> +and `arch=all` binary packages). Recipes for such mixed packages should append
> +`-all` to the `arch=all` binary packages listed in `PROVIDES` (e.g.,
> +`PROVIDES="foo-doc-all"` for an `arch=all` binary package `foo-doc`). Consumers
> +can then simply reference the package by its original name (e.g., `foo-doc`).
All this sounded very nice - but then I counted packages in trixie which
end on -all: 60 right now. I suppose we need a different suffix, maybe
"-archall" or "-arch-all".
BTW, we have the same problem with -compat and 25 name clashes there.
Just -native is fine so far.
Jan
--
Siemens AG, Foundational Technologies
Linux Expert Center
--
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/e1ce5ea8-cd41-4257-b73a-6f7f8e3dd7d4%40siemens.com.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/4] sbuild: do not build arch all packages on cross
2026-05-05 5:10 ` 'Jan Kiszka' via isar-users
@ 2026-05-05 6:39 ` 'MOESSBAUER, Felix' via isar-users
0 siblings, 0 replies; 7+ messages in thread
From: 'MOESSBAUER, Felix' via isar-users @ 2026-05-05 6:39 UTC (permalink / raw)
To: Kiszka, Jan, isar-users; +Cc: anaumann, Schmidt, Adriaan, Schwarz, Konrad
On Tue, 2026-05-05 at 07:10 +0200, Jan Kiszka wrote:
> On 04.05.26 10:50, Felix Moessbauer wrote:
> > Architecture all packages often cannot be built in cross mode, as the
> > dependencies cannot be resolved in the host architecture. This
> > especially applies to all packages which split their build dependencies
> > into Build-Depends-Arch and Build-Depends-Indep. We already have logic
> > in isar to built DPKG_ARCH=all packages non-cross, but this does not
> > work for packages that generate both arch specific and arch all binary
> > packages.
> >
> > While sbuild automatically disables builds of arch-all packages on
> > cross, we previously explicitly overrode this setting. We now change
> > this by explicitly setting --no-arch-all flag on cross and --arch-all on
> > non-cross.
> >
> > Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
> > ---
> > RECIPE-API-CHANGELOG.md | 16 ++++++++++++++++
> > meta/classes-recipe/dpkg.bbclass | 3 ++-
> > meta/classes-recipe/multiarch.bbclass | 4 ++++
> > 3 files changed, 22 insertions(+), 1 deletion(-)
> >
> > diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md
> > index 856da5de..d4b093f4 100644
> > --- a/RECIPE-API-CHANGELOG.md
> > +++ b/RECIPE-API-CHANGELOG.md
> > @@ -1001,3 +1001,19 @@ do_copy_boot_files: The recipe isar-image-base is trying to install
> > files into a shared area when those files already exists. It happens
> > when some files have the same names (e.g., dtb files) for different
> > distros.
> > +
> > +### No building of arch=all packages when cross building
> > +
> > +Architecture all packages often cannot be built in cross mode, as the
> > +dependencies cannot be resolved in the foreign architecture. This especially
> > +applies to all packages which split their build dependencies into
> > +`Build-Depends-Arch` and `Build-Depends-Indep`. We already have logic
> > +in isar to built `DPKG_ARCH = "all"` packages non-cross, but this does not
> > +work for packages that generate both arch specific and arch all binary packages.
> > +
> > +We now explicitly disable building `arch=all` binary packages during cross
> > +compilation (this only affects packages that produce both architecture-specific
> > +and `arch=all` binary packages). Recipes for such mixed packages should append
> > +`-all` to the `arch=all` binary packages listed in `PROVIDES` (e.g.,
> > +`PROVIDES="foo-doc-all"` for an `arch=all` binary package `foo-doc`). Consumers
> > +can then simply reference the package by its original name (e.g., `foo-doc`).
>
> All this sounded very nice - but then I counted packages in trixie which
> end on -all: 60 right now. I suppose we need a different suffix, maybe
> "-archall" or "-arch-all".
>
> BTW, we have the same problem with -compat and 25 name clashes there.
> Just -native is fine so far.
Even there we have a clash:
apt search '\-native$'
mlton-runtime-native/unstable 20241230+git20251029+dfsg-5 amd64
Optimizing compiler for Standard ML - native runtime libraries
How about -archall? This hopefully also makes it more clear, that the -
archall is not part of the Debian package name.
Felix
>
> Jan
>
> --
> Siemens AG, Foundational Technologies
> Linux Expert Center
--
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/c8a217ce8270dfbb8f10210e93567cec1e88e089.camel%40siemens.com.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 3/4] Revert "Split up isar-apt into distro-arch specific instances"
2026-05-04 8:50 [PATCH v2 0/4] Only build arch=all package from -native variant 'Felix Moessbauer' via isar-users
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-04 8:50 ` '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
3 siblings, 0 replies; 7+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2026-05-04 8:50 UTC (permalink / raw)
To: isar-users
Cc: anaumann, adriaan.schmidt, jan.kiszka, konrad.schwarz, Felix Moessbauer
This reverts commit dfa31ce4c8274b18c09c24fee804be6961c2ffd6.
The split was needed, because both the native and target builds
generated the arch=all packages, leading to conflicts. As we now only
build arch=all packages from the -native variant, each arch=all package
is just build once. By that, we also must use the same repo for both
host and target packages, as otherwise the arch=all packages are not
visible to the target install step.
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
meta/conf/bitbake.conf | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 5c71078d..08c525d9 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -93,8 +93,8 @@ TARGET_OS = "isar"
PACKAGE_ARCH ?= "${DISTRO_ARCH}"
# Isar apt repository paths
-REPO_ISAR_DIR = "${DEPLOY_DIR}/isar-apt/${DISTRO}-${DISTRO_ARCH}/apt"
-REPO_ISAR_DB_DIR = "${DEPLOY_DIR}/isar-apt/${DISTRO}-${DISTRO_ARCH}/db"
+REPO_ISAR_DIR = "${DEPLOY_DIR}/isar-apt/${DISTRO}/apt"
+REPO_ISAR_DB_DIR = "${DEPLOY_DIR}/isar-apt/${DISTRO}/db"
# Base apt repository paths
REPO_BASE_DIR = "${DEPLOY_DIR}/base-apt/${DISTRO}/apt"
--
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-4-felix.moessbauer%40siemens.com.
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH v2 4/4] add test for mixed arch all arch any packages
2026-05-04 8:50 [PATCH v2 0/4] Only build arch=all package from -native variant 'Felix Moessbauer' via isar-users
` (2 preceding siblings ...)
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 ` 'Felix Moessbauer' via isar-users
3 siblings, 0 replies; 7+ messages in thread
From: 'Felix Moessbauer' via isar-users @ 2026-05-04 8:50 UTC (permalink / raw)
To: isar-users
Cc: anaumann, adriaan.schmidt, jan.kiszka, konrad.schwarz, Felix Moessbauer
This test checks the fixup of the PROVIDES and DEPENDS logic
on mixed architecture all and architecture any packages.
Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
meta-test/recipes-app/test-all-any/files/control | 16 ++++++++++++++++
.../recipes-app/test-all-any/test-all-any.bb | 13 +++++++++++++
testsuite/citest.py | 3 ++-
3 files changed, 31 insertions(+), 1 deletion(-)
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
diff --git a/meta-test/recipes-app/test-all-any/files/control b/meta-test/recipes-app/test-all-any/files/control
new file mode 100644
index 00000000..fc2bae7c
--- /dev/null
+++ b/meta-test/recipes-app/test-all-any/files/control
@@ -0,0 +1,16 @@
+Source: test-all-any
+Section: misc
+Priority: optional
+Maintainer: isar-users <isar-users@googlegroups.com>
+Build-Depends: debhelper-compat (= 10),
+Standards-Version: 4.1.3
+
+Package: test-all-any
+Architecture: any
+Description: Architecture specific test package
+ This is an architecture specific test package.
+
+Package: test-all-any-doc
+Architecture: all
+Description: Architecture independent test package
+ This is an architecture independent test package.
diff --git a/meta-test/recipes-app/test-all-any/test-all-any.bb b/meta-test/recipes-app/test-all-any/test-all-any.bb
new file mode 100644
index 00000000..2ff38557
--- /dev/null
+++ b/meta-test/recipes-app/test-all-any/test-all-any.bb
@@ -0,0 +1,13 @@
+# test package generating both arch=all and arch=any binary packages
+DPKG_ARCH = "any"
+SRC_URI = "file://control"
+
+MAINTAINER = "isar-users <isar-users@googlegroups.com>"
+
+inherit dpkg-raw
+
+PROVIDES += "test-all-any-doc-all"
+
+do_prepare_build:append() {
+ cp ${WORKDIR}/control ${S}/debian/
+}
diff --git a/testsuite/citest.py b/testsuite/citest.py
index fc6ec24c..78b3b772 100755
--- a/testsuite/citest.py
+++ b/testsuite/citest.py
@@ -413,8 +413,9 @@ class CrossTest(CIBaseTest):
lines = [f"IMAGER_BUILD_DEPS:append = ' test-all-depnocross-native'"]
self.init()
+ image_install = 'test-all-deponlycross test-all-any-doc'
self.perform_build_test(targets, lines=lines,
- image_install='test-all-deponlycross')
+ image_install=image_install)
class PrebuiltTest(CIBaseTest):
"""
--
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-5-felix.moessbauer%40siemens.com.
^ permalink raw reply [flat|nested] 7+ messages in thread