Bug 15164

Summary: externalsrc breaks dependency chain when calling clean
Product: [Build System, Metadata & Runtime] OE-Core Reporter: peter.suti
Component: oe-core otherAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: randy.macleod
Version: unspecified   
Target Milestone: 5.99   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
fix
none
fix 2 none

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.