On Mon, 2021-01-25 at 22:01 +0100, Tomasz Dziendzielski wrote:
> The python3 recipe sets `do_create_manifest[depends] += "${PN}:do_patch"`
> but do_patch is removed in externalsrc and fails with:
> > ERROR: Task do_create_manifest in <PATH>/python3_3.8.2.bb depends upon
> > non-existent task do_patch in <PATH>/python3_3.8.2.bb
> 
> It is safe to simply remove these dependencies since they should be
> already covered.
> 
> [YOCTO #14151]
> 
> Signed-off-by: Tomasz Dziendzielski <[email protected]>
> ---
>  meta/classes/externalsrc.bbclass | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/meta/classes/externalsrc.bbclass 
> b/meta/classes/externalsrc.bbclass
> index 7a7d31e311..8e164707e6 100644
> --- a/meta/classes/externalsrc.bbclass
> +++ b/meta/classes/externalsrc.bbclass
> @@ -107,6 +107,9 @@ python () {
>          for task in d.getVar("SRCTREECOVEREDTASKS").split():
>              if local_srcuri and task in fetch_tasks:
>                  continue
> +            for bbtask in (d.getVar('__BBTASKS', False) or []):
> +                if 'depends' in (d.getVarFlags(bbtask, False) or []) and 
> ('${PN}:%s' % task) in d.getVarFlags(bbtask, False)['depends']:
> +                    d.setVarFlag(bbtask, 'depends', d.getVarFlags(bbtask, 
> False)['depends'].replace(('${PN}:%s' % task), ''))
>              bb.build.deltask(task, d)

would it help to change the python recipe to do:

addtask do_create_manifest after do_patch do_prepare_recipe_sysroot

?

Cheers,

Richard


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#147228): 
https://lists.openembedded.org/g/openembedded-core/message/147228
Mute This Topic: https://lists.openembedded.org/mt/80115290/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to