-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecated SPDX license (GFDL* and BSD-2-Clause-NetBSD) #1179
Comments
I have create a new pull request #1263 to fix this. All deprecated licenses should be replaced, except the ones that must be replaced with a WITH:
I do not think it is possible to do it with the current implementation, as the replacement is not a license, but a license with an exception. Some hacks needed until the licenses.json file is updated. |
Thanks for your time on this @vargenau . Taking a look at #950 (comment) it seems like it works pretty well, however, there are exceptions to the proposed deprecation-mapping ruleset that was done in #1009 . Take for example a {
"reference": "https://spdx.org/licenses/GFDL-1.2.html",
"isDeprecatedLicenseId": true,
"detailsUrl": "https://spdx.org/licenses/GFDL-1.2.json",
"referenceNumber": 397,
"name": "GNU Free Documentation License v1.2",
"licenseId": "GFDL-1.2",
"seeAlso": [
"https://www.gnu.org/licenses/old-licenses/fdl-1.2.txt"
],
"isOsiApproved": false,
"isFsfLibre": true
},
and {
"reference": "https://spdx.org/licenses/GFDL-1.2-only.html",
"isDeprecatedLicenseId": false,
"detailsUrl": "https://spdx.org/licenses/GFDL-1.2-only.json",
"referenceNumber": 224,
"name": "GNU Free Documentation License v1.2 only",
"licenseId": "GFDL-1.2-only",
"seeAlso": [
"https://www.gnu.org/licenses/old-licenses/fdl-1.2.txt"
],
"isOsiApproved": false,
"isFsfLibre": true
},
It seems like the names aren't the same (unlike many of the GPL cases):
Even though I think there may still be a way to account for these in the generic generation logic yet still. Specifically: https://github.com/anchore/syft/pull/1263/files#diff-f60222b80650a43e8ac9d70962f7120afe7d507d71ed448f729a318087c78274R34-R67 . These could be covered by "if I am processing a deprecated license I think your hard-coded cases for BSD make sense as is https://github.com/anchore/syft/pull/1263/files#diff-f60222b80650a43e8ac9d70962f7120afe7d507d71ed448f729a318087c78274R69-R75 . I'm not certain I follow the bzip changes: https://github.com/anchore/syft/pull/1263/files#diff-f60222b80650a43e8ac9d70962f7120afe7d507d71ed448f729a318087c78274R77-R79 . What motivates these? |
What happened:
This is a follow-up of #950.
The GPL family has been solved, but not all deprecated licenses. Please check the whole list of deprecated licenses at https://spdx.org/licenses/#Deprecated%20License%20Identifiers
What you expected to happen:
"GFDL-1.1" should be replaced by "GFDL-1.1-only"
"GFDL-1.2" should be replaced by "GFDL-1.2-only"
"GFDL-1.3" should be replaced by "GFDL-1.3-only"
"GFDL-1.1+" should be replaced by "GFDL-1.1-or-later"
"GFDL-1.2+" should be replaced by "GFDL-1.2-or-later"
"GFDL-1.3+" should be replaced by "GFDL-1.3-or-later"
"BSD-2-Clause-NetBSD " should be replaced by "BSD-2-Clause"
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
syft version
:cat /etc/os-release
or similar):The text was updated successfully, but these errors were encountered: