public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "'Jan Kiszka' via isar-users" <isar-users@googlegroups.com>
To: isar-users <isar-users@googlegroups.com>
Cc: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Subject: [PATCH] dpkg: Configure sbuild for schroot
Date: Wed, 15 Apr 2026 14:50:43 +0200	[thread overview]
Message-ID: <41512a7f-2522-424d-b04c-c574b7ae563c@siemens.com> (raw)

From: Jan Kiszka <jan.kiszka@siemens.com>

This is what at least the trixie version of sbuild strongly recommends
and also what the forky version will require.

$chroot_mode is known to sbuild buster at least. It remains unclear when
$schroot was introduced, but it was very likely ignored before that. So
this changes is backward-compatible with older builders.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

Tested with a local experimental kas-isar forky container.

 meta/classes-recipe/dpkg.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes-recipe/dpkg.bbclass b/meta/classes-recipe/dpkg.bbclass
index c1c38184..24eb0f7e 100644
--- a/meta/classes-recipe/dpkg.bbclass
+++ b/meta/classes-recipe/dpkg.bbclass
@@ -106,6 +106,8 @@ dpkg_runbuild() {
 
     echo '$apt_keep_downloaded_packages = 1;' >> ${SBUILD_CONFIG}
     echo '$stalled_pkg_timeout = ${DPKG_BUILD_TIMEOUT};' >> ${SBUILD_CONFIG}
+    echo '$chroot_mode = "schroot";' >> ${SBUILD_CONFIG}
+    echo '$schroot = "schroot";' >> ${SBUILD_CONFIG}
 
     DSC_FILE=$(find ${WORKDIR} -maxdepth 1 -name "${DEBIAN_SOURCE}_*.dsc" -print)
 
-- 
2.47.3

-- 
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/41512a7f-2522-424d-b04c-c574b7ae563c%40siemens.com.

             reply	other threads:[~2026-04-15 12:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-15 12:50 'Jan Kiszka' via isar-users [this message]
2026-04-15 12:56 ` 'Jan Kiszka' via isar-users
2026-04-15 13:56 ` 'MOESSBAUER, Felix' via isar-users
2026-04-15 14:04   ` 'Jan Kiszka' via isar-users
2026-04-15 14:10     ` 'Jan Kiszka' via isar-users

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=41512a7f-2522-424d-b04c-c574b7ae563c@siemens.com \
    --to=isar-users@googlegroups.com \
    --cc=jan.kiszka@siemens.com \
    --cc=quirin.gylstorff@siemens.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