aboutcode-org / aboutcode-org/scancode-toolkit

bsd-simplified license text without disclaimer

Ouverte
#2,555 4 commentaires 0 réactions 2 personnes assignées Réclamée par @AyanSinhaMahapatra Voir sur GitHub
bug license scan revisit
Langage dominant
Python
Étoiles
2.6k
Forks
791
Merge moyen
1 j 12 h
PR mergées (30 j)
5

Description

We have a bsd text in several debian copyright files tagged `BSD-2-clause` which is just first two clauses of `BSD-3-clause` , so basically with a mention of disclaimer without the disclaimer itself. This isn't getting detected by scancode exactly, so a new rule (or maybe license?) needs to be added but I'm not sure of the license-expression, since it's different from `bsd-new` or `bsd-simplified` or `bsd-no-disclaimer`, more like -> `bsd-simplified-no-disclaimer-text`
```
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
```
Example: https://github.com/nexB/scancode-toolkit/blob/develop/tests/packagedcode/data/debian/copyright/debian-slim-2021-04-07/usr/share/doc/libblkid1/copyright#L402

Matched License with diagnostics:
```
"licenses": [
{
"key": "bsd-no-disclaimer",
"score": 84.38,
"name": "BSD-2-Clause without Warranty Disclaimer",
"short_name": "BSD-2-Clause no disclaimer",
"category": "Permissive",
"is_exception": false,
"owner": "Unspecified",
"homepage_url": null,
"text_url": "",
"reference_url": "https://scancode-licensedb.aboutcode.org/bsd-no-disclaimer",
"scancode_text_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/bsd-no-disclaimer.LICENSE",
"scancode_data_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/bsd-no-disclaimer.yml",
"spdx_license_key": "LicenseRef-scancode-bsd-no-disclaimer",
"spdx_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/licenses/bsd-no-disclaimer.LICENSE",
"start_line": 1,
"end_line": 8,
"matched_rule": {
"identifier": "bsd-no-disclaimer.LICENSE",
"license_expression": "bsd-no-disclaimer",
"licenses": [
"bsd-no-disclaimer"
],
"is_license_text": true,
"is_license_notice": false,
"is_license_reference": false,
"is_license_tag": false,
"is_license_intro": false,
"matcher": "3-seq",
"rule_length": 64,
"matched_length": 54,
"match_coverage": 84.38,
"rule_relevance": 100
},
"matched_text": "Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n 1. Redistributions of source code must retain the above copyright\n notice, [this] [list] [of] [conditions] [and] [the] [following] [disclaimer].\n 2. Redistributions in binary form must reproduce the above copyright\n notice, [this] [list] [of] [conditions] [and] [the] [following] [disclaimer] in the\n documentation and/or other materials provided with the distribution."
}
],
```
Note that the disclaimer is present elsewhere in the file in the `Bsd-3-Clause` License Paragraph.

Should this just be a Rule or a new License? What should the license-expression be ?
@DennisClark @pombredanne

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.