scancode-toolkit icon indicating copy to clipboard operation
scancode-toolkit copied to clipboard

Validate that all licenses (and their URLs) are detected from https://directory.fsf.org/wiki?title=Category:License

Open pombredanne opened this issue 6 years ago • 22 comments

There are about ~240 URLs and licenses listed at https://directory.fsf.org/wiki?title=Category:License We should:

  1. ensure that we can detect all of them
  2. ensure that we can detect their URL We should also add as an "other_urls" ech URL to the corresponding license YAML

fsf-license-urls.txt

pombredanne avatar Sep 05 '20 11:09 pombredanne

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 avatar Sep 20 '20 14:09 sankha555

@sankha555 welcome and thank you for willing to have a look at it! The first step would be to collect:

  1. all the files (with wget for instance)
  2. 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?

pombredanne avatar Sep 21 '20 14:09 pombredanne

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

AyanSinhaMahapatra avatar Sep 21 '20 15:09 AyanSinhaMahapatra

@sankha555 Feel free to tag me if you have any issues

AyanSinhaMahapatra avatar Sep 21 '20 15:09 AyanSinhaMahapatra

Also @pombredanne I was solving a similar issue and asked questions here that got sidelined, please check that out :P

AyanSinhaMahapatra avatar Sep 21 '20 15:09 AyanSinhaMahapatra

Thanks a lot for the inputs...I'll try to make the relevant changes in my fork as soon as I am capable of.

sankha555 avatar Sep 22 '20 04:09 sankha555

@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.

sankha555 avatar Sep 22 '20 15:09 sankha555

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 avatar Sep 30 '20 18:09 sankha555

@sankha555 Please do! Re-opening the issue.

AyanSinhaMahapatra avatar Oct 01 '20 16:10 AyanSinhaMahapatra

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 avatar Oct 01 '20 16:10 AyanSinhaMahapatra

@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!

sankha555 avatar Oct 01 '20 16:10 sankha555

No inconvenience at all! Thanks for your contributions. Just pointing out how it was closed :P

AyanSinhaMahapatra avatar Oct 04 '20 13:10 AyanSinhaMahapatra

@pombredanne Added the license in the below PR (#2302 ). Kindly review the files added. Waiting for yours comments and feedback. Thanks!

sankha555 avatar Oct 24 '20 05:10 sankha555

@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.

sujit377 avatar Oct 24 '20 16:10 sujit377

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 avatar Dec 01 '20 18:12 Himanshu12145

@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.

AyanSinhaMahapatra avatar Dec 01 '20 19:12 AyanSinhaMahapatra

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!

D-lang14 avatar Dec 08 '20 03:12 D-lang14

@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.

tushar912 avatar Dec 12 '20 18:12 tushar912

@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:

  1. The above copyright notice and this permission notice shall be included in all copies or modified versions of the Software.

  2. 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

  3. 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.

  4. 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.

sritasngh avatar Jan 11 '21 12:01 sritasngh

"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": [] }

sritasngh avatar Jan 11 '21 12:01 sritasngh