From: Srinuvasan A <
srinuv...@siemens.com>
In downstream layer we try to cross-building packages for bullseye,
but it throws the below error:
| Reading package lists...
| Building dependency tree...
| Package apt-utils is not available, but is referred to by another package.
| This may mean that the package is missing, has been obsoleted, or
| is only available from another source
| However the following packages replace it:
| apt:armhf apt
|
| E: Package 'apt-utils' has no installation candidate
| WARNING: exit code 100 from a shell command.
I hope the APT resolver (/usr/lib/apt/solvers/apt) only demands for
bookworm, hence it's enabled based on BASE_DISTRO_CODENAME.
Signed-off-by: Srinuvasan A <
srinuv...@siemens.com>
---
meta/recipes-devtools/sbuild-chroot/
sbuild-chroot-host.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/sbuild-chroot/
sbuild-chroot-host.bb b/meta/recipes-devtools/sbuild-chroot/
sbuild-chroot-host.bb
index 255d693..9738a1c 100644
--- a/meta/recipes-devtools/sbuild-chroot/
sbuild-chroot-host.bb
+++ b/meta/recipes-devtools/sbuild-chroot/
sbuild-chroot-host.bb
@@ -16,7 +16,7 @@ ROOTFS_BASE_DISTRO = "${HOST_BASE_DISTRO}"
SBUILD_CHROOT_PREINSTALL ?= " \
${SBUILD_CHROOT_PREINSTALL_COMMON} \
crossbuild-essential-${DISTRO_ARCH} \
- apt-utils \
+ ${@ 'apt-utils' if d.getVar('BASE_DISTRO_CODENAME') == 'bookworm' else ''} \
"
SBUILD_CHROOT_PREINSTALL:riscv64 ?= " \
--
2.34.1