aboutcode-org / aboutcode-org/scancode-toolkit

GPLv3 false positive (should be GPLv2)

Offen
#4,884 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
Python
Sterne
2.6k
Forks
791
Ø Merge
1 T. 12 Std.
Gemergte PRs (30 T.)
5

Beschreibung

### Description

https://github.com/mirror/busybox/blob/1_35_stable/coreutils/who.c#L8

contains clearly a GPLv2 statement, but ScanCode Toolkit recognizes it as GPLv3:

```
{
"license_expression": "gpl-3.0",
"license_expression_spdx": "GPL-3.0-only",
"from_file": "busybox-1.35.0/coreutils/who.c",
"start_line": 8,
"end_line": 10,
"matcher": "3-seq",
"score": 70.59,
"matched_length": 24,
"match_coverage": 70.59,
"rule_relevance": 100,
"rule_identifier": "gpl-3.0_612.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-3.0_612.RULE"
}
```

The full result for this file (as GPL-1.0 also doesn't seem right):

```
{
"identifier": "gpl_1_0_plus_and_gpl_3_0-7f81c0b6-986b-a534-607f-989a35b11986",
"license_expression": "gpl-1.0-plus AND gpl-3.0",
"license_expression_spdx": "GPL-1.0-or-later AND GPL-3.0-only",
"detection_count": 1,
"reference_matches": [
{
"license_expression": "gpl-1.0-plus",
"license_expression_spdx": "GPL-1.0-or-later",
"from_file": "busybox-1.35.0/coreutils/who.c",
"start_line": 8,
"end_line": 11,
"matcher": "3-seq",
"score": 95.83,
"matched_length": 23,
"match_coverage": 95.83,
"rule_relevance": 100,
"rule_identifier": "gpl-1.0-plus_571.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-1.0-plus_571.RULE"
},
{
"license_expression": "gpl-3.0",
"license_expression_spdx": "GPL-3.0-only",
"from_file": "busybox-1.35.0/coreutils/who.c",
"start_line": 8,
"end_line": 10,
"matcher": "3-seq",
"score": 70.59,
"matched_length": 24,
"match_coverage": 70.59,
"rule_relevance": 100,
"rule_identifier": "gpl-3.0_612.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-3.0_612.RULE"
}
]
},

```

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.