-
-
Notifications
You must be signed in to change notification settings - Fork 580
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
Define a "namespace" for SPDX LicenseRef- for ScanCode licenses that are NOT known to SPDX (yet) #532
Comments
I was just wondering whether there are cases where it's uncontroversial how |
@pombredanne I recommend contacting Gary and/or Mark G. about the namespace idea. We have had many discussions and good ideas on this topic in the SPDX Tech group, but I cannot remember the details and life is too short to reread the emails. |
Currently, license-refs are local to a document. We have discussed different license lists with different namespaces in the past, but so far have not standardized an approach. The current convention is to use the license name field and comment field. Probably something we should revisit in the legal and tech teams |
@goneall thanks. So for now I am inclined to namespace all the non-SPDX scancode licenses with |
@sschuberth you wrote:
That's a possibility, but would you have any such example? |
No, I don't have a concrete example. It was just something that came to my mind. Populating the |
@pombredanne Seems like a reasonable and valid approach to generating the license-ref's in a readable manner. When we created namespaces for the documents, we spent quite a bit of energy making sure there were no collisions and versions were properly handled. From a spec perspective, these license refs will still be treated as local to the SPDX document. Perhaps we should (re)discuss expanding the spec to include external license lists and just work out the details for a complete solution, Another solution would be to submit any missing licenses that fit the SPDX listed license guidelines to the spdx listed license page and use that as a primary list of licenses. |
Addressing the issue upstream by doing so should indeed be the first choice, IMO, but we certainly need a fallback if that's not feasible for whatever reason. |
This is surely the best approach, but think about this: ScanCode has about 600+ more licenses than SPDX. Even if 200 of these could be set aside if I could determine quickly that they do not clearly fit the guidelines (hint: I cannot do this easily), then the work required to add to SPDX the 400 remaining licenses is immense! I can float the idea on the spdx-legal ML for sure. But @jlovejoy @DennisClark @MarkGisi what would be your initial take/reaction/feedback on this? |
@goneall note that when I speak of "namespace" I am NOT speaking of XML/RDF namespaces at all. I am just thinking of a convention to clearly identify extra non-SPDX-listed licenses in simplified/conventional way. |
Unless there is an objection I would like to start using this in SPDX outputs: |
No objections from my side! |
@pombredanne - using LicenseRef-scancode- for licenses you have in Scancode, but that are not on the SPDX License List sounds reasonable to me. Is there any reason not to just use: As to adding a large number of licenses to the SPDX License List - it would be a lot of work, but I think it's worthwhile to have a conversation at an upcoming legal call. we are starting to have better processes for adding licenses, so... (and don't we still need to get some of the license found in the kernel added? I digress...) Next SPDX legal call is Nov 1 - hope you can join |
@jlovejoy thank you++ for your feedback!
The idea here is to provide some hint that this is a ScanCode-standard, curated license by prefixing the ref with And also, there are cases where we have conflicting right hand parts used in LicenseRef between ScanCode and Fossology for instance and these may or may not be the same license... but the point is that there should be no ambiguity.
I will try to join the call at https://wiki.spdx.org/view/Legal_Team for sure!
We quite surely need that and I kinda dropped a bit the ball for this. |
Really like the idea of using a @pombredanne One comment regarding your statement above:
If the only thing to do is to add |
This could work OK, but then this would introduce a subtle issue: the Because of this and for a start I would likely only touch this one line here: Then I would do a replace of Then I would undo this replace. This would regenerate all tests expectations: I would then review these with diffs as the outgoing git changes. This is likely all there is to this at first |
@pombredanne #1307 implements the proposed changes. Thanks to your excellent instructions this was very straight forward. I have verified this on a few projects. Think it may be good if you do the same. |
This has been implemented by @furuholm (thank you ++ ) and is now available in the develop branch. |
There is some discussions around namespacing @ SPDX so let me reopen this ticket since we have a good history here. |
This is to support an evantual namespace registration of all ScanCode non-SPDX licenses as discussed in #536 and #532 Signed-off-by: Philippe Ombredanne <[email protected]>
This is to support an possible namespace registration of all ScanCode non-SPDX licenses as discussed in #536 and #532 Signed-off-by: Philippe Ombredanne <[email protected]>
This is also use in the SPDX outputs Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
This is also use in the SPDX outputs Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
SPDX validation was missing error details Signed-off-by: Philippe Ombredanne <[email protected]>
* This is done in validate in tests only for now as for all other validations. * Also ensure license key is required, which has always been the case. Signed-off-by: Philippe Ombredanne <[email protected]>
This has been completely implemented and we now assign ALWAYS an SPDX id to every license we have. See also https://scancode-licensedb.aboutcode.org/ for all the LicenseRefs |
A somewhat related question: Has ScanCode already bothered to submit a license namespace at https://tools.spdx.org/app/? |
Of course! a couple times but this is still failing for now. See spdx/spdx-online-tools#292 |
@sschuberth this is now registered at https://tools.spdx.org/app/license_namespace_requests/2/ thanks to @goneall help. |
ScanCode tracks many more licenses that SPDX does. As a result
LicenseRef-xxx
needs to be created (e.g. e37fec9 )For sanity and simplicity and clarity we should define a namespace for these non-SPDX refs.
For instance
LicenseRef-scancode-<license-key>
... I am not sure there is a convention that exist for this in SPDX though we could suggest it.@sschuberth input welcome!
The text was updated successfully, but these errors were encountered: