summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorAlexandru Croitor <[email protected]>2024-07-24 17:33:17 +0200
committerAlexandru Croitor <[email protected]>2024-11-15 14:42:37 +0100
commit36dca3c04f759449f74008a3e79021a179b0f35e (patch)
treef3f8066b051961ab3f28d8a79bfb1d2757545468 /util
parent6d52ef9c7e4cae7373d75e1054d5e7a6bfd6f2c4 (diff)
CMake: Add PURL and CPE info to 3rd party attribution files
The change adds CPE and PURL keys to all qt_attribution.json files in the repo. In case if no sensible CPE or PURL exists, a "Comment" field is added with the text "no relevant CPE or PURL found". If only one of them does not exist, it is written as such in the Comment field. This allows filtering for files that haven't had the information added yet vs those that were looked up but no relevant information was found. For sources that are not hosted on github, a generic PURL is used with a download_url fragment pointing either to the exact location where the sources can be downloaded, or to the homepage of the project. The generic package name was chosen based on the 'Id' key of the attribution entry where it was present, and is not authoritative. For PURL github packages, the 'git tag' name was specified into the 'version' part of the PURL, rather than the 'version number', because SBOM processing tooling handle that better than the version number. For example for the freetype package, we specify the string 'VER-2-13-3' rather than the tag name '2.13.3'. We might revisit this in the future. [ChangeLog][Third-Party Code] Added PURL and CPE information to the attribution files of 3rd party sources. Pick-to: 6.5 6.8 Task-number: QTBUG-122899 Task-number: QTBUG-129602 Change-Id: Iad126242cafc3ea0b678c5c36b26f857039b1dbd Reviewed-by: Alexey Edelev <[email protected]>
Diffstat (limited to 'util')
-rw-r--r--util/gradientgen/qt_attribution.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/gradientgen/qt_attribution.json b/util/gradientgen/qt_attribution.json
index e3a70a7404e..25c382c7d27 100644
--- a/util/gradientgen/qt_attribution.json
+++ b/util/gradientgen/qt_attribution.json
@@ -8,6 +8,7 @@
"Description": "WebGradients is a free collection of 180 linear gradients.",
"Homepage": "https://webgradients.com/",
+ "PURL": "pkg:generic/webgradients?download_url=https://webgradients.com/",
"License": "MIT License",
"LicenseId": "MIT",
"LicenseFile": "WEBGRADIENTS_LICENSE.txt",