Re: [OE-core][PATCH v2 0/8] Add SPDX 3 Recipe Information

Benjamin Robin
2026-02-26T15:09:51Z

On Thursday, February 26, 2026 at 3:27 PM, Benjamin Robin wrote:
> On Thursday, February 26, 2026 at 1:52 PM, Mathieu Dubois-Briand wrote:
> > And a second one:
> >
> > Initialising tasks...ERROR: Task virtual:multilib:lib32:/srv/pokybuild/yocto-worker/qemux86-world-alt/build/layers/openembedded-core/meta/recipes-core/meta/meta-world-recipe-sbom.bb:do_create_spdx has circular dependency on /srv/pokybuild/yocto-worker/qemux86-world-alt/build/layers/openembedded-core/meta/recipes-core/meta/meta-world-recipe-sbom.bb:do_create_spdx
> > ERROR: Command execution failed: 1
> >
> > https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/3086
> > https://autobuilder.yoctoproject.org/valkyrie/#/builders/59/builds/3253
>
> For the second issue, it can be triggered by adding these lines in local.conf:
>
> MACHINE = "qemux86"
> OE_FRAGMENTS += 'core/yocto-autobuilder/multilib-x86-lib32'
>
> With this configuration these 2 commands failed:
> - bitbake -c create_recipe_sbom meta-world-recipe-sbom
> - bitbake world

I am proposing this fix for meta/recipes-core/meta/meta-world-recipe-sbom.bb:

python calculate_extra_depends() {
exclude = set('${WORLD_SBOM_EXCLUDE}'.split())
exclude.add(self_pn)

for variant in ('${MULTILIB_VARIANTS}' or "").split():
exclude.add(f"{variant}-{self_pn}")

for p in world_target:
if p in exclude:
continue
deps.append(p)
}

This fix solve the second issue (circular dependency).

Best regards,
--
Benjamin Robin, Bootlin
Embedded Linux and Kernel engineering