[PATCH] dpkg: Configure sbuild for schroot

7 views
Skip to first unread message

Jan Kiszka

unread,
Apr 15, 2026, 8:50:51 AM (3 days ago) Apr 15
to isar-users, Quirin Gylstorff
From: Jan Kiszka <jan.k...@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.k...@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

Jan Kiszka

unread,
Apr 15, 2026, 8:56:41 AM (3 days ago) Apr 15
to isar-users, Felix Moessbauer, Quirin Gylstorff
Hmm, may clash with the unprivileged build series, though I didn't spot
yet where/how the sbuild mode is chosen there.

Jan

--
Siemens AG, Foundational Technologies
Linux Expert Center

MOESSBAUER, Felix

unread,
Apr 15, 2026, 9:57:02 AM (3 days ago) Apr 15
to Kiszka, Jan, isar-users, Gylstorff, Quirin

This should not be required (since [1]), as we select the chroot mode
when calling sbuild [2]. That's also compatible with the rootless
series where we just select unshare.

[1]https://github.com/ilbers/isar/commit/fec8600fea2ca741373c9e3e4f3d41f147dfbb09

[2]
https://github.com/ilbers/isar/blob/master/meta/classes-recipe/dpkg.bbclass#L112

Felix

>
> 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+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/isar-users/41512a7f-2522-424d-b04c-c574b7ae563c%40siemens.com.

Jan Kiszka

unread,
Apr 15, 2026, 10:04:15 AM (3 days ago) Apr 15
to Moessbauer, Felix (FT RPD CED OES-DE), isar-users, Gylstorff, Quirin (FT RPD CED OES-DE)
Indeed, I tested with an older Isar baseline and didn't notice this
switch while forward-porting. Let me double-check with 1.0-rc1 again if
the issue under forky is gone.

Jan

> [2]
> https://github.com/ilbers/isar/blob/master/meta/classes-recipe/dpkg.bbclass#L112
>
> Felix
>
>>
>> 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+...@googlegroups.com.
>> To view this discussion visit https://groups.google.com/d/msgid/isar-users/41512a7f-2522-424d-b04c-c574b7ae563c%40siemens.com.

Jan Kiszka

unread,
Apr 15, 2026, 10:11:07 AM (3 days ago) Apr 15
to Moessbauer, Felix (FT RPD CED OES-DE), isar-users, Gylstorff, Quirin (FT RPD CED OES-DE)
And it does work, of course - so please ignore this.

Jan
Reply all
Reply to author
Forward
0 new messages