Bug 15164 - externalsrc breaks dependency chain when calling clean
Summary: externalsrc breaks dependency chain when calling clean
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 5.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-07-19 13:34 UTC by peter.suti
Modified: 2026-05-07 15:23 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
fix (1.78 KB, patch)
2023-07-24 08:55 UTC, peter.suti
no flags Details | Diff
fix 2 (1.78 KB, patch)
2023-07-31 07:44 UTC, peter.suti
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description peter.suti 2023-07-19 13:34:03 UTC
Calling clean on an externalsrc recipe then calling prepare_recipe_sysroot for a recipe that depends on it, results in the following error "The sstate manifest for task 'dummy_cleaned_task:populate_sysroot' (multilib variant '') could not be found.".

Building the dummy_cleaned_task fully or converting the recipe to not use externalsrc fixes the issue.

Probably the following code in externalsrc.bbclass breaks some assumptions elsewhere:

if task.endswith("_setscene"):
    # sstate is never going to work for external source trees, disable it
    bb.build.deltask(task, d)
Comment 1 Randy MacLeod 2023-07-20 14:44:47 UTC
We don't have anyone to work on this. Any volunteers? -- YP Bug review
Comment 2 peter.suti 2023-07-24 08:55:39 UTC
Created attachment 4961 [details]
fix

This patch is a proposed fix to solve the issue.
Comment 3 peter.suti 2023-07-31 07:44:35 UTC
Created attachment 4965 [details]
fix 2

Slight fixup using '1' instead of 1
Comment 4 Randy MacLeod 2023-08-01 12:04:06 UTC
Hi Peter.
I don't use external source but the patch seems okay to me.
I suspect that you'll get more comments if you send the patch to the email list.
See:
   https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded
specifically:
   https://www.openembedded.org/wiki/How_to_submit_a_patch_to_OpenEmbedded#Sending_patches
Thanks!
Comment 5 Randy MacLeod 2023-10-30 15:37:27 UTC
Build move to 5.0 -- ../Randy
Comment 6 Randy MacLeod 2024-04-25 01:13:52 UTC
Bulk move of 5.0 medium importance issues to 5.99.
Move to 5.1 if you want to actively work on an issue.
Comment 7 Randy MacLeod 2024-04-25 01:23:14 UTC
Move to 5.99 since no one is actively working on this issue.
Move to 5.x if you start on a task, please.