diff options
| author | Joshua Watt <JPEWhacker@gmail.com> | 2025-11-07 14:14:38 +0100 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-11-14 06:45:29 -0800 |
| commit | 2cab0b98338b09daf3baf35dc30bfb232a85c4c8 (patch) | |
| tree | 65209da5992483fca085578182ef7361d99fa227 /meta/classes-global | |
| parent | ff754175475ae52a4f3fe91cf5d985a8b703dd11 (diff) | |
| download | poky-2cab0b98338b09daf3baf35dc30bfb232a85c4c8.tar.gz | |
classes-global/staging: Exclude do_create_spdx from automatic sysroot extension
do_create_spdx is a outlier in that it doesn't need the RSS to be
extended just because it depends on do_populate_sysroot. In fact, it
only depends on do_populate_sysroot so it can see the actual recipes
sysroot, and attempting to extend the sysroot can cause problems for
some recipes (e.g. if a recipe does do_populate_sysroot[noexec] = "1")
As such, explicitly exclude do_create_spdx from extending the sysroot
just because it depends on do_populate_sysroot.
(From OE-Core rev: 572bf8fd0ba83c7174f706f17a589abbcdc54df5)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/classes-global')
| -rw-r--r-- | meta/classes-global/staging.bbclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes-global/staging.bbclass b/meta/classes-global/staging.bbclass index 3678a1b441..c2213ffa2b 100644 --- a/meta/classes-global/staging.bbclass +++ b/meta/classes-global/staging.bbclass | |||
| @@ -652,10 +652,17 @@ python do_prepare_recipe_sysroot () { | |||
| 652 | addtask do_prepare_recipe_sysroot before do_configure after do_fetch | 652 | addtask do_prepare_recipe_sysroot before do_configure after do_fetch |
| 653 | 653 | ||
| 654 | python staging_taskhandler() { | 654 | python staging_taskhandler() { |
| 655 | EXCLUDED_TASKS = ( | ||
| 656 | "do_prepare_recipe_sysroot", | ||
| 657 | "do_create_spdx", | ||
| 658 | ) | ||
| 655 | bbtasks = e.tasklist | 659 | bbtasks = e.tasklist |
| 656 | for task in bbtasks: | 660 | for task in bbtasks: |
| 661 | if task in EXCLUDED_TASKS: | ||
| 662 | continue | ||
| 663 | |||
| 657 | deps = d.getVarFlag(task, "depends") | 664 | deps = d.getVarFlag(task, "depends") |
| 658 | if task != 'do_prepare_recipe_sysroot' and (task == "do_configure" or (deps and "populate_sysroot" in deps)): | 665 | if task == "do_configure" or (deps and "populate_sysroot" in deps): |
| 659 | d.prependVarFlag(task, "prefuncs", "extend_recipe_sysroot ") | 666 | d.prependVarFlag(task, "prefuncs", "extend_recipe_sysroot ") |
| 660 | } | 667 | } |
| 661 | staging_taskhandler[eventmask] = "bb.event.RecipeTaskPreProcess" | 668 | staging_taskhandler[eventmask] = "bb.event.RecipeTaskPreProcess" |
