-
-
Notifications
You must be signed in to change notification settings - Fork 562
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
"SPDX-License-Identifier: Artistic-1.0+" not recognised #3256
Comments
@vargenau this is because spdx license identifier
So the But we probably can do better here, I propose the following:
@pombredanne what do you think? Also:
This is a bug, thanks for reporting. We'll add the easy fix soon. |
Thank you for taking my report into account. In a source file the This is the case here. You have a valid license identifier See https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/ for license expressions and https://spdx.github.io/spdx-spec/v2.3/using-SPDX-short-identifiers-in-source-files/ |
@vargenau thanks for pointing out my mistake, I had no idea this was supported in SPDX. 😅 Thanks for the links, I'll look more into it, we will have to do this similar to what I mentioned above, if we want to support these expressions. |
@vargenau Actually, we handle this slightly differently in ScanCode toolkit. We do not have by design a concept of an arbitrary "+" suffix e.g., an "or later" addition. Instead we create one license key for each license where we have such thing showing up in the wild, and we maintain multiple SPDX alternative ids in these cases. For instance with the GPL-2.0, we have this data:
We will report always GPL-2.0-or-later but accept the other keys too when scanning. Here if BTW do you have an original notice for "./lib/HttpClient.php" that has this Artistic or later license? Do you have more examples of the same?
I could not find much more in the history of https://github.com/pombredanne/svn.code.sf.net-p-phpwiki-code/commits/master/lib/HttpClient.php in particular where the "or later" would have come from/ I see though that it used to be So I could not find any public evidence upstream that this was ever licensed under the Artistic-1.0 license. But assuming it was, there is no evidence this was Artistic-1.0 or a later version. |
Hi Philippe, Thank you for your detailed analysis. The original file, when it was imported to PhpWiki, had the following header: /** Copyright � 2003 Incutio Limited A few years ago, I started adding the SPDX-License-Identifier in all files of the project.
Perhaps this was a mistake. What was clearly a mistake is that I added a GPL header (that I removed when I noticed it). To confuse more the issue, I had replaced But my question was more general: why create a custom LicenseID when an SPDX LicenseID exists? In the case of:
or
the result is
which creates no custom LicenseID. So, yes, I would prefer to have
than a custom license, but it is not a major issue, the current behavior is correct. |
This artistic notice unfortunately never made it to archive.org: none of the the upstream versions have a license per https://web.archive.org/web/20080513205537/http://scripts.incutio.com/httpclient/HttpClient.class.php And at the time, the link to opensource.org was pointing to the artistic 1.0 license from 2002 to 2006: Dear Simon @simonw :
This was an early design choice for ScanCode that even predates SPDX: every license MUST have its own concrete record and key, because there are several cases where this matters, GPL being the most prominent. Having a "+" modifier on an existing license id creates a wart in the data model and in practice, all lawyers I chatted with consider an "or later" license variant as different license terms, so it is best to treat them as a different license record. Frankly, MO is that the adoption of a "plus" suffix by SPDX modifying a license has been a mistake and SPDX should have used instead only concrete license ids, and this is what happened eventually with the A/L/GPL licenses where we now have With these changes (from circa 2017 under the pressure of rms), the current SPDX ids state is a half concrete and half "+" modifier suffixes and this is messy. Technically |
Hi Philippe, I fully agree that That is why I had proposed last year to add in the SPDX spec a Boolean attribute to licenses, indicating whether or not they support the "+" operator. But it had no support. |
Add new rules to improve detection accuracy in phpwiki. Reference: #3256 Signed-off-by: Philippe Ombredanne <[email protected]>
Add new rules to improve detection accuracy in phpwiki. Reference: #3256 Signed-off-by: Philippe Ombredanne <[email protected]>
Description
In a PHP source file, I have the following line:
This results in:
and
I would have expected:
Moreover, the URL https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/licenses/unknown-spdx.yml give a 404 error.
How To Reproduce
Resulting SPDX file:
phpwiki.spdx.txt
System configuration
Ubuntu 22.10
The text was updated successfully, but these errors were encountered: