The dependency chain here is a little weird, because do_create_spdx()
depends on do_collect_spdx_deps(), and the do_collect_spdx_deps has a
deptask on do_create_sdpx to get the dependencies from upstream
recipes (read the comment in there for why that is). We avoided
recrdeptask because we _should_ only be pulling in SPDX documents from
direct dependencies, so the "recursive" part _should_ not be necessary
(which is why we use deptask instead of recrdeptask).

That being said, there is a bug here somewhere and I can't quite
figure out what it might be and I'm having a really hard time
reproducing it; but I'm not sure this is the fix.

I don't think

On Fri, Oct 13, 2023 at 9:42 AM Jose Quaresma <[email protected]> wrote:
>
> Given that we need some SPDX files produced in other recipes by 
> do_create_spdx task,
> we need to ensure that any of this other do_create_spdx build-time 
> dependencies
> runs first to produce the artidacts we need in the do_create_spdx of the 
> current recipe.
>
> Fix the following which especially affects multiconfig machines:
>
> | ERROR: flex-native-2.6.4-r0 do_create_spdx: Cannot find any SPDX file for 
> recipe autoconf-native, True 
> sstate:autoconf-native:x86_64-linux:2.72c:r0:x86_64:11: 
> sstate:autoconf-native::2.72c:r0::11:
>
> Signed-off-by: Jose Quaresma <[email protected]>
> ---
>  meta/classes/create-spdx-2.2.bbclass | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/meta/classes/create-spdx-2.2.bbclass 
> b/meta/classes/create-spdx-2.2.bbclass
> index b0aef80db1..a37245bdba 100644
> --- a/meta/classes/create-spdx-2.2.bbclass
> +++ b/meta/classes/create-spdx-2.2.bbclass
> @@ -709,6 +709,7 @@ addtask do_create_spdx_setscene
>  do_create_spdx[dirs] = "${SPDXWORK}"
>  do_create_spdx[cleandirs] = "${SPDXDEPLOY} ${SPDXWORK}"
>  do_create_spdx[depends] += "${PATCHDEPENDENCY}"
> +do_create_spdx[recrdeptask] += "do_create_spdx"
>
>  def collect_package_providers(d):
>      from pathlib import Path
> --
> 2.34.1
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#189073): 
https://lists.openembedded.org/g/openembedded-core/message/189073
Mute This Topic: https://lists.openembedded.org/mt/101942902/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to