public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH] sbuild-chroot: Add apt-utils for compat
Date: Fri, 14 Jul 2023 21:26:13 +0300	[thread overview]
Message-ID: <20230714182613.760063-1-amikan@ilbers.de> (raw)

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


             reply	other threads:[~2023-07-14 18:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-14 18:26 Anton Mikanovich [this message]
2023-07-20  4:12 ` Uladzimir Bely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230714182613.760063-1-amikan@ilbers.de \
    --to=amikan@ilbers.de \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox