diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-03-12 19:59:59 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-03-12 19:59:59 +0000 |
| commit | e390223891b11c13c005a5183cf3bbb6d105d6c9 (patch) | |
| tree | f319bcd0f982c724c46af92c3450c87721940710 | |
| parent | 6240456e2d113ce1b7fe7bb43bf769035f23d465 (diff) | |
| download | meta-virtualization-e390223891b11c13c005a5183cf3bbb6d105d6c9.tar.gz | |
container-bundle: add explicit do_fetch dependency on skopeo-native
do_fetch_containers runs as a postfunc of do_fetch and needs skopeo
from the native sysroot. However, DEPENDS only gates
do_prepare_recipe_sysroot which runs after do_fetch, so with a clean
tmp/ directory skopeo-native may not be built when do_fetch runs.
Add an explicit do_fetch[depends] on skopeo-native:do_populate_sysroot
when remote containers are configured so the ordering is correct.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | classes/container-bundle.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/classes/container-bundle.bbclass b/classes/container-bundle.bbclass index 6f43149b..29a20b8a 100644 --- a/classes/container-bundle.bbclass +++ b/classes/container-bundle.bbclass | |||
| @@ -282,7 +282,10 @@ python __anonymous() { | |||
| 282 | 282 | ||
| 283 | # Remote containers are fetched during do_fetch (network is allowed there). | 283 | # Remote containers are fetched during do_fetch (network is allowed there). |
| 284 | # extend_recipe_sysroot populates the native sysroot so skopeo is available. | 284 | # extend_recipe_sysroot populates the native sysroot so skopeo is available. |
| 285 | # Explicit do_fetch depends ensures skopeo-native is built before our | ||
| 286 | # do_fetch runs (DEPENDS alone only gates do_prepare_recipe_sysroot). | ||
| 285 | if remote_urls: | 287 | if remote_urls: |
| 288 | d.appendVarFlag('do_fetch', 'depends', ' skopeo-native:do_populate_sysroot') | ||
| 286 | d.appendVarFlag('do_fetch', 'prefuncs', ' extend_recipe_sysroot') | 289 | d.appendVarFlag('do_fetch', 'prefuncs', ' extend_recipe_sysroot') |
| 287 | d.appendVarFlag('do_fetch', 'postfuncs', ' do_fetch_containers') | 290 | d.appendVarFlag('do_fetch', 'postfuncs', ' do_fetch_containers') |
| 288 | 291 | ||
