aboutcode-org / aboutcode-org/scancode-toolkit

G10's license identified as fsf-unlimited-no-warranty

Đang mở
#3,934 15 bình luận 1 reaction 2 người được giao Được @hesa nhận Xem trên GitHub
improve-license-detection license scan license-review new-license revisit
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ả

**Background**

On [https://ubuntu.com/legal/open-source-licences?release=xenial](https://ubuntu.com/legal/open-source-licences?release=xenial) you will find dbus, and if looking closer we can see
```
dbus 1.10.6-1ubuntu3.6 main AFL-2.1,AFL-2.1,,BSD-3-clause,BSD-3-clause-generic,Expat,g10-permissive,GPL-2+,Tcl-BSDish
```

Looking (even) closer at the "g10-permissive" license on [https://changelogs.ubuntu.com/changelogs/pool/main/d/dbus/dbus_1.10.6-1ubuntu3.6/copyright](https://changelogs.ubuntu.com/changelogs/pool/main/d/dbus/dbus_1.10.6-1ubuntu3.6/copyright) we can see the license referred to as "g10-permissive":

```
Files: dbus/versioninfo.rc.in
Copyright: © 2005 g10 Code GmbH
License: g10-permissive
This file is free software; as a special exception the author gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.
.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

**Problem**
Scancode (32.0.8) identifies the above license as [https://scancode-licensedb.aboutcode.org/fsf-unlimited-no-warranty.html](https://scancode-licensedb.aboutcode.org/fsf-unlimited-no-warranty.html).

However, these licenses (FSF and G10) are not (exactly) the same:

**_The FSF license_**
```
This file is free software; the Free Software Foundation gives
unlimited permission to copy and/or distribute it, with or without
modifications, as long as this notice is preserved.

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
```

**_The G10 license_**
```
* This file is free software; as a special exception the author gives
* unlimited permission to copy and/or distribute it, with or without
* modifications, as long as this notice is preserved.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```

**Reproducing the bug**

```
$ curl -LJO https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/dbus 1.10.6-1ubuntu3.6/dbus_1.10.6.orig.tar.gz
$ tar zxvf dbus_1.10.6.orig.tar.gz
$ scancode --classify --copyright --email --info --json-pp dbus-1.10.6-scan.json --license --license-clarity-score --license-text --license-text-diagnostics --package --processes 16 --summary dbus-1.10.6

# Finding the match
# alt 1
$ cat dbus-1.10.6-scan.json | jq '.files[] | select(.path=="dbus-1.10.6/dbus/versioninfo.rc.in")' | jq .license_detections
# alt 2
$ pip install scarfer
$ scarfer dbus-1.10.6-scan.json -l -m -if dbus/versioninfo.rc.in
```

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.