Skip to content

spdx: add support to include releaseTime

[email protected] openembedded-core 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 0 repliesNew
  2. v53 patches 4 repliesSuperseded
  3. v43 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v33 patches5 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3oe/reproducible: exclude __CACHED_SOURCE_DATE_EPOCH from task hashmeta/lib/oe/reproducible.py+3 -00 replies
2/3create-spdx-3.0: record component release date in SPDX outputmeta/lib/oe/spdx30_tasks.py meta/lib/oeqa/selftest/cases/spdx.py+67 -00 replies
3/3scripts/contrib: add spdx-release-date-report.pyscripts/contrib/spdx-release-date-report.py+191 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH v6 0/3] spdx: add support to include releaseTime

From: Daniel Turull <[email protected]>

We have a requirements to include release time of open source components in the SBOM. There is a field specific for that in spdx 3 spec.

https://spdx.github.io/spdx-spec/v3.0.1/model/Core/Properties/releaseTime/

This can also be used to evaluate how old are some of the core components and decide if they need replacement.

The previous 2 versions did not have cover letter.

In v4 I kept the simpler logic to just check for the epoch date, even if we have multiple sources with different release dates. It was getting complicated and adding more code for git and tarfiles. I can do a follow up patch after this simpler version gets in, so we can fine tune it.

Tested with oe-selftest -r spdx

v6: fix first commit for __CACHED_SOURCE_DATE_EPOCH and use same function for getting epoch as SOURCE_DATE_EPOCH uses.

Daniel Turull (3):
oe/reproducible: exclude __CACHED_SOURCE_DATE_EPOCH from task hash create-spdx-3.0: record component release date in SPDX output scripts/contrib: add spdx-release-date-report.py

 meta/lib/oe/reproducible.py                 |   3 +
 meta/lib/oe/spdx30_tasks.py                 |  25 +++
 meta/lib/oeqa/selftest/cases/spdx.py        |  42 +++++
 scripts/contrib/spdx-release-date-report.py | 191 ++++++++++++++++++++
 4 files changed, 261 insertions(+)
 create mode 100755 scripts/contrib/spdx-release-date-report.py