[1/2] fix(dpkg-build): add missing dependencies to base-apt and isar-apt

Message ID 20260731101452.520524-1-felix.moessbauer@siemens.com
State Under Review
Headers show
Series [1/2] fix(dpkg-build): add missing dependencies to base-apt and isar-apt | expand

Commit Message

Felix Moessbauer July 31, 2026, 10:14 a.m. UTC
When taking the rootfs from the sstate cache, the isar-apt and base-apt
might not have been deployed when running sbuild. By that, this task
will fail. This dependency has been missing ever since, but before
having fully a reproducible sbuild-chroot rootfs, the problematic
situation probably could not be hit.

We fix it by adding the missing dependencies.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 meta/classes-recipe/dpkg-base.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/classes-recipe/dpkg-base.bbclass b/meta/classes-recipe/dpkg-base.bbclass
index 610213b8..4a81787e 100644
--- a/meta/classes-recipe/dpkg-base.bbclass
+++ b/meta/classes-recipe/dpkg-base.bbclass
@@ -208,7 +208,7 @@  do_dpkg_build[cleandirs] = "${DEPLOYDIR}"
 do_dpkg_build[sstate-inputdirs] = "${DEPLOYDIR}"
 do_dpkg_build[sstate-outputdirs] = "${DEPLOY_DIR_DEB}"
 do_dpkg_build[network] = "${TASK_USE_NETWORK_AND_SUDO}"
-do_dpkg_build[depends] = "${SCHROOT_DEP}"
+do_dpkg_build[depends] = "${SCHROOT_DEP} base-apt:do_cache isar-apt:do_cache_config"
 do_dpkg_build[postfuncs] += "dpkg_collect_debs"
 
 addtask dpkg_build