* [PATCH] sbuild-chroot: Add apt-utils for compat
@ 2023-07-14 18:26 Anton Mikanovich
2023-07-20 4:12 ` Uladzimir Bely
0 siblings, 1 reply; 2+ messages in thread
From: Anton Mikanovich @ 2023-07-14 18:26 UTC (permalink / raw)
To: isar-users; +Cc: Anton Mikanovich
Compat packages are built as cross arch packages which requires
/usr/lib/apt/solvers/apt. In case of amd64 resolver from host was used
which is not correct in case of different distros. Install apt-utils
into chroot to provide apt-based resolver.
This fixes building qemuamd64-bullseye:libhello-compat on Bookworm.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb
index 8f2da720..ce985df2 100644
--- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb
+++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb
@@ -11,4 +11,5 @@ require sbuild-chroot.inc
SBUILD_CHROOT_PREINSTALL ?= " \
${SBUILD_CHROOT_PREINSTALL_COMMON} \
+ ${@' apt-utils' if d.getVar('ISAR_ENABLE_COMPAT_ARCH') == '1' else ''} \
"
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] sbuild-chroot: Add apt-utils for compat
2023-07-14 18:26 [PATCH] sbuild-chroot: Add apt-utils for compat Anton Mikanovich
@ 2023-07-20 4:12 ` Uladzimir Bely
0 siblings, 0 replies; 2+ messages in thread
From: Uladzimir Bely @ 2023-07-20 4:12 UTC (permalink / raw)
To: Anton Mikanovich, isar-users
On Fri, 2023-07-14 at 21:26 +0300, Anton Mikanovich wrote:
> Compat packages are built as cross arch packages which requires
> /usr/lib/apt/solvers/apt. In case of amd64 resolver from host was
> used
> which is not correct in case of different distros. Install apt-utils
> into chroot to provide apt-based resolver.
>
> This fixes building qemuamd64-bullseye:libhello-compat on Bookworm.
>
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
> meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-
> target.bb b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-
> target.bb
> index 8f2da720..ce985df2 100644
> --- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb
> +++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-target.bb
> @@ -11,4 +11,5 @@ require sbuild-chroot.inc
>
> SBUILD_CHROOT_PREINSTALL ?= " \
> ${SBUILD_CHROOT_PREINSTALL_COMMON} \
> + ${@' apt-utils' if d.getVar('ISAR_ENABLE_COMPAT_ARCH') == '1'
> else ''} \
> "
> --
> 2.34.1
>
Applied to next.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-07-20 4:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-14 18:26 [PATCH] sbuild-chroot: Add apt-utils for compat Anton Mikanovich
2023-07-20 4:12 ` Uladzimir Bely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox