Since sbuild commit c8fad160b366 ("Use dpkg-buildtree to figure out if
fakeroot is required")[1], the fakeroot installation is done in a
separate build step after the build dependencies installation. For
fakeroot, sbuild creates now a separate dummy package called
sbuild-build-depends-fakeroot-dummy next to
sbuild-build-depends-main-dummy.
This sbuild commit was introduced with sbuild version 0.88.2. While
Debian bookworm uses 0.85.0, trixie updated to 0.89.3.
When building packages with Isar on a trixie host (e.g., by using
kas-isar:5.1) that have Rules-Requires!=no set (so fakeroot is used),
the fakeroot dummy package was left in the downloads directory, which
caused an issue when running an offline build afterwards, as the
do_cache task parses all packages in the downloads directory and
issued:
"No section given for 'sbuild-build-depends-fakeroot-dummy', skipping.
There have been errors!"
With this change, all dummy packages created by sbuild for the build
dependencies installation are removed afterwards.
[1]
https://salsa.debian.org/debian/sbuild/-/commit/c8fad160b3669967bdd2714f34589ace6b37b4b6
Signed-off-by: Clara Kowalsky <
clara.k...@siemens.com>
---
meta/classes-recipe/dpkg.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes-recipe/dpkg.bbclass b/meta/classes-recipe/dpkg.bbclass
index 4a3deec2..8bb5adeb 100644
--- a/meta/classes-recipe/dpkg.bbclass
+++ b/meta/classes-recipe/dpkg.bbclass
@@ -120,7 +120,7 @@ dpkg_runbuild() {
--chroot-setup-commands="mkdir -p ${deb_dir}" \
--chroot-setup-commands="find ${ext_deb_dir} -maxdepth 1 -name '*.deb' -exec ln -t ${deb_dir}/ -sf {} +" \
--chroot-setup-commands="apt-get update -o Dir::Etc::SourceList=\"sources.list.d/isar-apt.list\" -o Dir::Etc::SourceParts=\"-\" -o APT::Get::List-Cleanup=\"0\"" \
- --finished-build-commands="rm -f ${deb_dir}/sbuild-build-depends-main-dummy_*.deb" \
+ --finished-build-commands="rm -f ${deb_dir}/sbuild-build-depends-*-dummy_*.deb" \
--finished-build-commands="find ${deb_dir} -maxdepth 1 -type f -name '*.deb' -print -exec cp ${CP_FLAGS} -t ${ext_deb_dir}/ {} +" \
--finished-build-commands="cp /var/log/dpkg.log ${ext_root}/dpkg_partial.log" \
--build-path="" --build-dir=${WORKDIR} --dist="${DEBDISTRONAME}" ${DSC_FILE}
--
2.52.0