Openembedded Core Discussions
 help / color / mirror / Atom feed
From: "Antonin Godard" <antonin.godard@bootlin.com>
To: <dwagenknecht@emlix.com>, <openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH 0/2] Add meta layer information to spdx
Date: Tue, 15 Sep 2026 10:02:32 +0200	[thread overview]
Message-ID: <DLFQEDRDYFEW.1N7Q1KDCOBXUD@bootlin.com> (raw)
In-Reply-To: <20260914114526.2646773-1-dwagenknecht@emlix.com>

On Mon Sep 14, 2026 at 1:44 PM CEST, Daniel Wagenknecht via lists.openembedded.org wrote:
> Hello,
>
> as discussed before here
> https://lists.openembedded.org/g/openembedded-core/message/226131
> and here
> https://lists.openembedded.org/g/openembedded-core/message/225774
>
> it would be good to include information about the layers used in a build in the
> generated spdx documents.
>
> My primary goal is to track where all the configuration files added via file
> protocol in `SRC_URI` originate from, but the approach could be extended to
> track recipes, classes, machine config etc.
>
> These patches are meant as a basis to discuss the approach and should be
> considered draft status.
>
> The approach is to generate a `layers.spdx.json` on each build invocation
> that lists each layer used in the build as a `softwarePackage` with version
> and source information as well as - if can be reasonably deducted - the
> downloadLocation. Each source file added via file protocol is then linked to the
> containing meta layer via a `contains` relationship.
>
> Open Questions:
> - is the overall architecture reasonable/correct?
> - referring to layers is inconsistent across tooling. E.g. the core layer is
>   either named `core` as defined by `BBFILE_COLLECTIONS` or `meta` as that is
>   the layer directory in the openembedded-core repository.
>   I chose the latter since that is what the utility function
>   `oe.buildcfg.get_layer_revisions` returns. The package URL (PURL)
>   implementation uses the other naming scheme though. Any thoughts on which
>   should be chosen and why?
> - I do not understand the alias linking yet. With the current implementation
>   I see many hash mismatches like
>   WARNING: gcc-runtime-15.3.0-r0 do_create_spdx: Element http://spdx.org/spdxdocs/layers-7ad0d8d7-57f9-5c3c-9411-49227dd50610/layers/layer/meta
>     has alias http://spdx.org/spdxdocs/UNIHASH-7ad0d8d7-57f9-5c3c-9411-49227dd50610/UNIHASH/layer/meta, but it should have prefix
>     http://spdxdocs.org/openembedded-alias/by-doc-hash/e80f1d61f4749e663e80a4dfb25ebb1127b5f50600d3065de7ed91030942a1ef/
>
> I've currently got some time available to work on this to get a proper solution
> integrated into openembedded-core.

This series is causing the following issue on our Autobuilder:

  ERROR: No SPDX document named /srv/pokybuild/yocto-worker/qemuarm-alt/build/build/tmp/deploy/spdx/3.0.1/bitbake.spdx.json found

See full log here: https://autobuilder.yoctoproject.org/valkyrie/#/builders/74/builds/4598

Can you look into it?

Thanks,
Antonin


  parent reply	other threads:[~2026-09-15  8:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-14 11:44 [PATCH 0/2] Add meta layer information to spdx Daniel Wagenknecht
2026-09-14 11:44 ` [PATCH 1/2] spdx: add entries for meta-layers Daniel Wagenknecht
2026-09-14 11:44 ` [PATCH 2/2] spdx: link files to the meta-layer providing them Daniel Wagenknecht
2026-09-15  8:02 ` Antonin Godard [this message]
2026-09-15 13:04   ` [PATCH v2 0/2] Add meta layer information to spdx Daniel Wagenknecht
2026-09-16  7:08     ` [OE-core] " Antonin Godard
2026-09-16  8:45       ` Daniel Wagenknecht
2026-11-06 11:54     ` [DRAFT PATCH v3 " Daniel Wagenknecht
2026-11-06 11:54       ` [DRAFT PATCH v3 1/2] spdx: add entries for meta-layers Daniel Wagenknecht
2026-11-06 12:20         ` Paul Barker
2026-11-06 13:37           ` Daniel Wagenknecht
2026-11-06 11:54       ` [DRAFT PATCH v3 2/2] spdx: link files to the meta-layer providing them Daniel Wagenknecht
2026-11-06 12:23       ` [DRAFT PATCH v3 0/2] Add meta layer information to spdx Paul Barker
2026-11-10 23:32       ` [OE-core] " Joshua Watt
2026-09-16  5:39   ` [PATCH v2 1/2] spdx: add entries for meta-layers Daniel Wagenknecht
2026-09-16  5:39   ` [PATCH v2 2/2] spdx: link files to the meta-layer providing them Daniel Wagenknecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DLFQEDRDYFEW.1N7Q1KDCOBXUD@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=dwagenknecht@emlix.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox