Skip to content

spdx30: PURL and source download enrichment

Stefano Tondo openembedded-core 16 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v16 Latest posting 2/25 patches 4 repliesIn review
  2. v16 posting 1/25 patches 1 replySuperseded
  3. v144 patches 3 repliesSuperseded
Earlier versions · 13
VersionPostedPatchesRepliesStatus
v134 patches2 repliesSuperseded
v124 patches0 repliesSuperseded
v114 patches1 replySuperseded
v107 patches1 replySuperseded
v97 patches5 repliesSuperseded
v87 patches8 repliesSuperseded
v710 patches7 repliesSuperseded
v610 patches3 repliesSuperseded
v510 patches4 repliesSuperseded
v411 patches0 repliesSuperseded
v311 patches1 replySuperseded
v218 patches3 repliesSuperseded
v114 patches0 repliesSuperseded

Patches in v16 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5spdx30: Add configurable file exclusion pattern supportmeta/classes/spdx-common.bbclass meta/lib/oe/spdx30_tasks.py+60 -271 reply
2/5spdx30: Add supplier support for image and SDK SBOMsmeta/classes/create-spdx-3.0.bbclass meta/lib/oe/spdx30_tasks.py+30 -01 reply
3/5spdx30: Add ecosystem PURLs for recipe classesmeta/classes-recipe/cargo_common.bbclass meta/classes-recipe/cpan.bbclass meta/classes-recipe/go-mod.bbclass +2 more+27 -01 reply
4/5spdx30: Add Git version and PURL to source downloadsmeta/classes/create-spdx-3.0.bbclass meta/lib/oe/spdx30_tasks.py+109 -00 replies
5/5oeqa/selftest: Add tests for source download enrichmentmeta/lib/oeqa/selftest/cases/spdx.py+76 -01 reply

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchJoshua Watt
1/5R-b
2/5R-b
3/5R-b
4/5
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v16 thread

Cover letter [PATCH v16 0/5] spdx30: PURL and source download enrichment

This series enhances Yocto's SPDX 3.0 output with ecosystem-specific Package URLs, Git source version tracking, and configurable SBOM generation improvements.

Changes since v14 (addressing Joshua's review of v14 patches 3/4 and 4/4):
- Split the monolithic "Enrich source downloads" patch into two focused
patches: ecosystem PURLs (patch 3, bbclass-only) and Git download enrichment (patch 4, spdx30_tasks.py additions-only)
- Removed ALL extraneous changes: formatting, comment removals, blank-line deletions, variable removals, and off-topic refactors
- Fixed go-mod.bbclass duplicate SPDX_PACKAGE_URLS line
- Reverted pypi.bbclass UPSTREAM_CHECK_PYPI_PACKAGE change
- Removed the else-branch that copied recipe ecosystem PURLs to non-git download files (per Joshua's feedback)
- Reverted do_create_spdx -> do_create_package_spdx change in collect_build_package_inputs
- Reverted bb.note -> bb.fatal for missing SPDX providers
- Restored all removed TODO comments and blank lines
- Patches 2-5 are now strictly additions-only (0 deletions)
- Tests unchanged (additions-only, all 12 master tests preserved)

Stefano Tondo (5):
spdx30: Add configurable file exclusion pattern support
spdx30: Add supplier support for image and SDK SBOMs
spdx30: Add ecosystem PURLs for recipe classes
spdx30: Add Git version and PURL to source downloads oeqa/selftest: Add tests for source download enrichment

 meta/classes-recipe/cargo_common.bbclass |   3 +
 meta/classes-recipe/cpan.bbclass         |  11 ++
 meta/classes-recipe/go-mod.bbclass       |   3 +
 meta/classes-recipe/npm.bbclass          |   7 +
 meta/classes-recipe/pypi.bbclass         |   3 +
 meta/classes/create-spdx-3.0.bbclass     |  17 ++
 meta/classes/spdx-common.bbclass         |   7 +
 meta/lib/oe/spdx30_tasks.py              | 202 ++++++++++++++++++++---
 meta/lib/oeqa/selftest/cases/spdx.py     |  76 +++++++++
 9 files changed, 302 insertions(+), 27 deletions(-)
Signature · 1 line
2.53.0