public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] sbuild: fix cross-building packages on bookworm host
@ 2023-06-07  4:46 Uladzimir Bely
  2023-06-07  5:36 ` Jan Kiszka
  2023-06-13  6:08 ` Uladzimir Bely
  0 siblings, 2 replies; 4+ messages in thread
From: Uladzimir Bely @ 2023-06-07  4:46 UTC (permalink / raw)
  To: isar-users

Bookworm uses more version of sbuild that requires from target rootfs
to include apt resolver (/usr/lib/apt/solvers/apt).

This is automatically provided by 'bookworm' target, but not by older
'buster' or 'bullseye' that don't strictly depend on apt-utils package
that provides this solver.

Add `apt-utils` to host sbuild chroot in order to fix build issues.

See https://groups.google.com/g/isar-users/c/OIIp6qF3C8I for details.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
index d2e23d56..255d6937 100644
--- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
+++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
@@ -16,6 +16,7 @@ ROOTFS_BASE_DISTRO = "${HOST_BASE_DISTRO}"
 SBUILD_CHROOT_PREINSTALL ?= " \
     ${SBUILD_CHROOT_PREINSTALL_COMMON} \
     crossbuild-essential-${DISTRO_ARCH} \
+    apt-utils \
     "
 
 SBUILD_CHROOT_PREINSTALL:riscv64 ?= " \
-- 
2.20.1


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

* Re: [PATCH] sbuild: fix cross-building packages on bookworm host
  2023-06-07  4:46 [PATCH] sbuild: fix cross-building packages on bookworm host Uladzimir Bely
@ 2023-06-07  5:36 ` Jan Kiszka
  2023-06-07  6:45   ` Uladzimir Bely
  2023-06-13  6:08 ` Uladzimir Bely
  1 sibling, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2023-06-07  5:36 UTC (permalink / raw)
  To: Uladzimir Bely, isar-users, Moessbauer, Felix (T CED SES-DE); +Cc: kas-devel

On 07.06.23 06:46, Uladzimir Bely wrote:
> Bookworm uses more version of sbuild that requires from target rootfs

s/more/a newer/

> to include apt resolver (/usr/lib/apt/solvers/apt).
> 
> This is automatically provided by 'bookworm' target, but not by older
> 'buster' or 'bullseye' that don't strictly depend on apt-utils package
> that provides this solver.
> 
> Add `apt-utils` to host sbuild chroot in order to fix build issues.
> 
> See https://groups.google.com/g/isar-users/c/OIIp6qF3C8I for details.
> 
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> ---
>  meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
> index d2e23d56..255d6937 100644
> --- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
> +++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
> @@ -16,6 +16,7 @@ ROOTFS_BASE_DISTRO = "${HOST_BASE_DISTRO}"
>  SBUILD_CHROOT_PREINSTALL ?= " \
>      ${SBUILD_CHROOT_PREINSTALL_COMMON} \
>      crossbuild-essential-${DISTRO_ARCH} \
> +    apt-utils \
>      "
>  
>  SBUILD_CHROOT_PREINSTALL:riscv64 ?= " \

Thanks, makes sense to me now.

>From kas perspective, there is still the catch now that we will require
users of the upcoming bookworm-based build container to update their
isar past this patch or carry it locally. Not much we can do about that
anymore, though. The key value of bookworm as host is dpkg can handle
zstd which improves interaction with the Ubuntu universe.

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux


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

* Re: [PATCH] sbuild: fix cross-building packages on bookworm host
  2023-06-07  5:36 ` Jan Kiszka
@ 2023-06-07  6:45   ` Uladzimir Bely
  0 siblings, 0 replies; 4+ messages in thread
From: Uladzimir Bely @ 2023-06-07  6:45 UTC (permalink / raw)
  To: Jan Kiszka, isar-users, Moessbauer, Felix (T CED SES-DE); +Cc: kas-devel


On Wed, 2023-06-07 at 07:36 +0200, Jan Kiszka wrote:
> On 07.06.23 06:46, Uladzimir Bely wrote:
> > Bookworm uses more version of sbuild that requires from target
> > rootfs
> 
> s/more/a newer/
> 

Oh, sorry, I missed the word "recent". Will be fixed during merge (or
in v2).

> > to include apt resolver (/usr/lib/apt/solvers/apt).
> > 
> > This is automatically provided by 'bookworm' target, but not by
> > older
> > 'buster' or 'bullseye' that don't strictly depend on apt-utils
> > package
> > that provides this solver.
> > 
> > Add `apt-utils` to host sbuild chroot in order to fix build issues.
> > 
> > See https://groups.google.com/g/isar-users/c/OIIp6qF3C8I for
> > details.
> > 
> > Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> > ---
> >  meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-
> > host.bb b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
> > index d2e23d56..255d6937 100644
> > --- a/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
> > +++ b/meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb
> > @@ -16,6 +16,7 @@ ROOTFS_BASE_DISTRO = "${HOST_BASE_DISTRO}"
> >  SBUILD_CHROOT_PREINSTALL ?= " \
> >      ${SBUILD_CHROOT_PREINSTALL_COMMON} \
> >      crossbuild-essential-${DISTRO_ARCH} \
> > +    apt-utils \
> >      "
> >  
> >  SBUILD_CHROOT_PREINSTALL:riscv64 ?= " \
> 
> Thanks, makes sense to me now.
> 
> From kas perspective, there is still the catch now that we will
> require
> users of the upcoming bookworm-based build container to update their
> isar past this patch or carry it locally. Not much we can do about
> that
> anymore, though. The key value of bookworm as host is dpkg can handle
> zstd which improves interaction with the Ubuntu universe.
> 
> Jan
> 


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

* Re: [PATCH] sbuild: fix cross-building packages on bookworm host
  2023-06-07  4:46 [PATCH] sbuild: fix cross-building packages on bookworm host Uladzimir Bely
  2023-06-07  5:36 ` Jan Kiszka
@ 2023-06-13  6:08 ` Uladzimir Bely
  1 sibling, 0 replies; 4+ messages in thread
From: Uladzimir Bely @ 2023-06-13  6:08 UTC (permalink / raw)
  To: isar-users

On Wed, 2023-06-07 at 06:46 +0200, Uladzimir Bely wrote:
> Bookworm uses more version of sbuild that requires from target rootfs
> to include apt resolver (/usr/lib/apt/solvers/apt).
> 
> This is automatically provided by 'bookworm' target, but not by older
> 'buster' or 'bullseye' that don't strictly depend on apt-utils
> package
> that provides this solver.
> 
> Add `apt-utils` to host sbuild chroot in order to fix build issues.
> 
> See https://groups.google.com/g/isar-users/c/OIIp6qF3C8I for details.
> 
> Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
> ---
>  meta/recipes-devtools/sbuild-chroot/sbuild-chroot-host.bb | 1 +
>  1 file changed, 1 insertion(+)

Applied to next.

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

end of thread, other threads:[~2023-06-13  6:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-07  4:46 [PATCH] sbuild: fix cross-building packages on bookworm host Uladzimir Bely
2023-06-07  5:36 ` Jan Kiszka
2023-06-07  6:45   ` Uladzimir Bely
2023-06-13  6:08 ` Uladzimir Bely

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