Validate that all licenses (and their URLs) are detected from https://directory.fsf.org/wiki?title=Category:License
There are about ~240 URLs and licenses listed at https://directory.fsf.org/wiki?title=Category:License We should:
- ensure that we can detect all of them
- ensure that we can detect their URL We should also add as an "other_urls" ech URL to the corresponding license YAML
Hello @pombredanne , I wish to take a try at this issue. Could you please assign it to me? Also, it is my first issue with the toolkit so I would need some guidance over as to what exactly needs to be done in the issue. It would be helpful if you could give me an idea about the "detection" part and what all relevant files need to be referred and changed. Thanks!
@sankha555 welcome and thank you for willing to have a look at it! The first step would be to collect:
- all the files (with wget for instance)
- and also put all the URLs to these files in a file
Then, you want to run license detection on these and carefully review the results for each. If we do not have perfect detection results, you would need to add license detection rules. @AyanSinhaMahapatra I cannot place it, but I think we have a doc to explain how to do the new rules creation? Do you have a pointer?
Doc on Adding a new License - https://scancode-toolkit.readthedocs.io/en/latest/how-to-guides/add_new_license.html Similar solved issue - https://github.com/nexB/scancode-toolkit/issues/1983 @pombredanne made some helpful comments here
@sankha555 Feel free to tag me if you have any issues
Also @pombredanne I was solving a similar issue and asked questions here that got sidelined, please check that out :P
Thanks a lot for the inputs...I'll try to make the relevant changes in my fork as soon as I am capable of.
@pombredanne @AyanSinhaMahapatra I have made a PR to add a new license HESSLA to the dataset of licenses. If there is something missing in my PR, it would be very helpful if you could guide me as to what needs to be done. Based on your inputs I'll also continue with the rest of the URLs.
Hello @pombredanne @AyanSinhaMahapatra . Apologies for the delayed response on this issue, had been a bit busy with a series of university exams. Also thanks a lot for merging my previous PR. I have been able to devote some time today to find the licenses of a few more URLs. Shall I make a PR to add them for your review? In that case, it would be helpful if you could kindly re-open the issue. Thanks!
@sankha555 Please do! Re-opening the issue.
So when you open a PR with the line fixes #issue-no it automatically closes the issue when the PR is merged, so refrain from doing that, and just mention that it solves it partially. It's also better if you make them in one single PR (if there aren't like too many licenses).
@AyanSinhaMahapatra Sorry for the inconvenience caused, will take care of this in the future. I have made a PR (#2269 ) for the above. Awaiting comments and reviews!
No inconvenience at all! Thanks for your contributions. Just pointing out how it was closed :P
@pombredanne Added the license in the below PR (#2302 ). Kindly review the files added. Waiting for yours comments and feedback. Thanks!
@pombredanne sir and @AyanSinhaMahapatra sir, I would like to contribute on this issue, I am new to this and need guidance. Please help me if it is possible for me to contribute to it. I have already read the contribution guidelines.
Greetings @pombredanne sir and @AyanSinhaMahapatra sir I will contribute on this issue as I am new to this and need guidance. Please help me if it is possible for me to contribute to it. I would really love to contribute to it for validating the license.
@Himanshu12145 no need to address people as sirs.
Look into this PR and this comment here for help.
Scancode has a directory of Licenses, and if you see any new license that isn't present there, you have to add that license in the directory, a <name>.LICENSE file and <name>.yml file for each new license. Each new license creation would go in a separate PR. The PR linked above is a good example of the same.
Feel free to ask any more specific questions, if you have any.
Hello @pombredanne sir, I wish to try this issue. It is my first issue with the toolkit so I would need some guidance as to what exactly needs to be done in the issue. Could you help me giving the idea about the 'detection' and 'license' part and what are the files to be managed. Thanks!
@pombredanne I would like to work on this.I have found that the SCILAB license from the fsf directory is not being detected .Can I raise a PR for this.
@pombredanne @AyanSinhaMahapatra There is wrong license detected for ANTI-CAPITALIST SOFTWARE LICENSE (v 1.4)
License text used: Copyright © [year] [copyright holders]
This is anti-capitalist software, released for free use by individuals and organizations that do not operate by capitalist principles.
Permission is hereby granted, free of charge, to any person or organization (the "User") obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, merge, distribute, and/or sell copies of the Software, subject to the following conditions:
-
The above copyright notice and this permission notice shall be included in all copies or modified versions of the Software.
-
The User is one of the following: a. An individual person, laboring for themselves b. A non-profit organization c. An educational institution d. An organization that seeks shared profit for all of its members, and allows non-members to set the cost of their labor
-
If the User is an organization with owners, then all owners are workers and all workers are owners with equal equity and/or equal vote.
-
If the User is an organization, then the User is not law enforcement or military, or working for or under either.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"licenses": [ { "key": "waterfall-feed-parser", "score": 27.92, "name": "Waterfall Feed Parser License", "short_name": "Waterfall Feed Parser License", "category": "Free Restricted", "is_exception": false, "owner": "Michael Waterfall", "homepage_url": "https://github.com/mwaterfall/MWFeedParser/blob/master/LICENSE.txt", "text_url": "", "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:waterfall-feed-parser", "spdx_license_key": null, "spdx_url": "", "start_line": 7, "end_line": 9, "matched_rule": { "identifier": "waterfall-feed-parser.LICENSE", "license_expression": "waterfall-feed-parser", "licenses": [ "waterfall-feed-parser" ], "is_license_text": true, "is_license_notice": false, "is_license_reference": false, "is_license_tag": false, "matcher": "3-seq", "rule_length": 197, "matched_length": 55, "match_coverage": 27.92, "rule_relevance": 100 } }, { "key": "warranty-disclaimer", "score": 84.72, "name": "Generic Bare Warranty Disclaimer", "short_name": "Generic Bare Warranty Disclaimer", "category": "Unstated License", "is_exception": false, "owner": "Unspecified", "homepage_url": null, "text_url": "", "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:warranty-disclaimer", "spdx_license_key": null, "spdx_url": "", "start_line": 21, "end_line": 21, "matched_rule": { "identifier": "warranty-disclaimer_9.RULE", "license_expression": "warranty-disclaimer", "licenses": [ "warranty-disclaimer" ], "is_license_text": false, "is_license_notice": true, "is_license_reference": false, "is_license_tag": false, "matcher": "3-seq", "rule_length": 72, "matched_length": 61, "match_coverage": 84.72, "rule_relevance": 100 } } ], "license_expressions": [ "waterfall-feed-parser", "warranty-disclaimer" ], "percentage_of_license_text": 44.62, "copyrights": [], "holders": [], "authors": [], "packages": [], "emails": [], "urls": [], "files_count": 0, "dirs_count": 0, "size_count": 0, "scan_errors": [] }