set rdeptask for do_deploy_deb

Message ID 20221025131329.1738241-1-adriaan.schmidt@siemens.com
State Accepted, archived
Headers show
Series set rdeptask for do_deploy_deb | expand

Commit Message

Schmidt, Adriaan Oct. 25, 2022, 1:13 p.m. UTC
Isar currently supports setting build-dependencies between recipes with
DEPENDS, and runtime/installation dependencies with DEBIAN_DEPENDS.

However, the bitbake mechanism of RDEPENDS, for runtime dependencies
between recipes, is not supported. So currently, if we model a runtime
dependecy between recipes, we need to use DEPENDS, which at the same
time enforces a build dependency, i.e., restricts parallel execution
of builds.

To enable the use of RDEPENDS in Isar, we set the task (deploy_deb)
that should be linked by those dependencies.

Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>
---
 meta/classes/dpkg-base.bbclass | 1 +
 1 file changed, 1 insertion(+)

Comments

Anton Mikanovich Nov. 3, 2022, 8:54 a.m. UTC | #1
25.10.2022 16:13, Adriaan Schmidt wrote:
> Isar currently supports setting build-dependencies between recipes with
> DEPENDS, and runtime/installation dependencies with DEBIAN_DEPENDS.
>
> However, the bitbake mechanism of RDEPENDS, for runtime dependencies
> between recipes, is not supported. So currently, if we model a runtime
> dependecy between recipes, we need to use DEPENDS, which at the same
> time enforces a build dependency, i.e., restricts parallel execution
> of builds.
>
> To enable the use of RDEPENDS in Isar, we set the task (deploy_deb)
> that should be linked by those dependencies.
>
> Signed-off-by: Adriaan Schmidt <adriaan.schmidt@siemens.com>

Applied to next, thanks.

Patch

diff --git a/meta/classes/dpkg-base.bbclass b/meta/classes/dpkg-base.bbclass
index 12d18592..e4f6711c 100644
--- a/meta/classes/dpkg-base.bbclass
+++ b/meta/classes/dpkg-base.bbclass
@@ -301,6 +301,7 @@  do_deploy_deb() {
 
 addtask deploy_deb after do_dpkg_build before do_build
 do_deploy_deb[deptask] = "do_deploy_deb"
+do_deploy_deb[rdeptask] = "do_deploy_deb"
 do_deploy_deb[depends] += "isar-apt:do_cache_config"
 do_deploy_deb[lockfiles] = "${REPO_ISAR_DIR}/isar.lock"
 do_deploy_deb[dirs] = "${S}"