[v9,11/13] sbom-chroot: Fix python3-apt dependency

Message ID 20260820133934.383231-12-akarpovich@ilbers.de
State Under Review
Headers show
Series Improving base-apt usage | expand

Commit Message

Aliaksei Karpovich Aug. 20, 2026, 1:29 p.m. UTC
Fix error:
 | E: Unable to correct problems, you have held broken packages.
 | E: The following information from --solver 3.0 may provide additional context:
 |    Unable to satisfy dependencies. Reached two conflicting decisions:
 |    1. python3-debsbom:amd64=0.8.1 is selected for install
 |    2. python3-debsbom:amd64 Depends python3-apt

The base-apt package is architecture-specific.
Specify arch for them to avoid the error above in case of cross
build.

Signed-off-by: Aliaksei Karpovich <akarpovich@ilbers.de>
---
 meta/recipes-devtools/sbom-chroot/sbom-chroot.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Felix Moessbauer Aug. 20, 2026, 1:59 p.m. UTC | #1
On Thu, 2026-08-20 at 15:29 +0200, Aliaksei Karpovich wrote:
> Fix error:
>  | E: Unable to correct problems, you have held broken packages.
>  | E: The following information from --solver 3.0 may provide additional context:
>  |    Unable to satisfy dependencies. Reached two conflicting decisions:
>  |    1. python3-debsbom:amd64=0.8.1 is selected for install
>  |    2. python3-debsbom:amd64 Depends python3-apt
> 
> The base-apt package is architecture-specific.
> Specify arch for them to avoid the error above in case of cross
> build.

Hi, I'm still puzzled why in an amd64 (HOST_ARCH) only rootfs this is
needed. Does this bug appear on trixie / forky as well, or just on
older distro versions?

Felix

> 
> Signed-off-by: Aliaksei Karpovich <akarpovich@ilbers.de>
> ---
>  meta/recipes-devtools/sbom-chroot/sbom-chroot.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-devtools/sbom-chroot/sbom-chroot.bb b/meta/recipes-devtools/sbom-chroot/sbom-chroot.bb
> index f347327b..d23a62b6 100644
> --- a/meta/recipes-devtools/sbom-chroot/sbom-chroot.bb
> +++ b/meta/recipes-devtools/sbom-chroot/sbom-chroot.bb
> @@ -21,7 +21,7 @@ DEPENDS:append:bookworm = " python3-cyclonedx-lib"
>  DEPENDS:append:noble = " python3-cyclonedx-lib"
>  DEPENDS += "python3-debsbom python3-spdx-tools"
>  
> -SBOM_IMAGE_INSTALL = "python3-debsbom python3-spdx-tools python3-cyclonedx-lib"
> +SBOM_IMAGE_INSTALL = "python3-debsbom python3-spdx-tools python3-cyclonedx-lib python3-apt:${ROOTFS_ARCH}"
>  
>  ROOTFSDIR = "${WORKDIR}/rootfs"
>  ROOTFS_PACKAGES = "${SBOM_IMAGE_INSTALL}"
> --
> 2.43.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/20260820133934.383231-12-akarpovich%40ilbers.de.

Patch

diff --git a/meta/recipes-devtools/sbom-chroot/sbom-chroot.bb b/meta/recipes-devtools/sbom-chroot/sbom-chroot.bb
index f347327b..d23a62b6 100644
--- a/meta/recipes-devtools/sbom-chroot/sbom-chroot.bb
+++ b/meta/recipes-devtools/sbom-chroot/sbom-chroot.bb
@@ -21,7 +21,7 @@  DEPENDS:append:bookworm = " python3-cyclonedx-lib"
 DEPENDS:append:noble = " python3-cyclonedx-lib"
 DEPENDS += "python3-debsbom python3-spdx-tools"
 
-SBOM_IMAGE_INSTALL = "python3-debsbom python3-spdx-tools python3-cyclonedx-lib"
+SBOM_IMAGE_INSTALL = "python3-debsbom python3-spdx-tools python3-cyclonedx-lib python3-apt:${ROOTFS_ARCH}"
 
 ROOTFSDIR = "${WORKDIR}/rootfs"
 ROOTFS_PACKAGES = "${SBOM_IMAGE_INSTALL}"