aboutcode-org / aboutcode-org/scancode-toolkit

GPLv3 false positive (should be GPLv2)

Đang mở
#4,884 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### 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"
}
]
},

```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.