aboutcode-org / aboutcode-org/scancode-toolkit

scancode-toolkit-31.0.2 is not recognizing a declared license choice

Open
#3,082 1 comment 0 reactions 1 assignee Claimed by @AyanSinhaMahapatra View on GitHub
bug
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

scanned doris-1.1.1-rc03 ( available at https://github.com/apache/doris/archive/refs/tags/1.1.1-rc03.tar.gz )
using scancode-toolkit-31.0.2
and although it detected most of the licenses in the rather complex notice (attached) in
doris-1.1.1-rc03/dist/LICENSE-dist.txt
it returns unknown-license-reference twice for portions of the following text:

```
be/src/env (some portions): 3-clause BSD

Some portions of this module are derived from code from RocksDB
( https://github.com/facebook/rocksdb ). RocksDB is dual-licensed
under both the GPLv2 and Apache 2.0 License. We select Apache 2.0
License.

--------------------------------------------------------------------------------

be/src/util/coding.*: this code is licensed under both GPLv2 and Apache 2.0 License.
Doris chooses Apache 2.0 License.

Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
This source code is licensed under both the GPLv2 (found in the
COPYING file in the root directory) and Apache 2.0 License
(found in the LICENSE.Apache file in the root directory).

Copyright (c) 2011 The LevelDB Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. See the AUTHORS file for names of contributors.
```

See lines 9463 forward in the scan results for multiple cases where SCTK finds multiple cases of both unknown-license-reference and also identifies the license choices.

In these cases the authors declare the choice of Apache 2.0, using slightly different language in each case. It would be great if SCTK could be improved to interpret these instances of a dual-license choice being declared in the license notice and not to return an unknown-license-reference.

[LICENSE-dist.txt.zip](https://github.com/nexB/scancode-toolkit/files/9473526/LICENSE-dist.txt.zip)

[doris-1.1.1-rc03-results.json.zip](https://github.com/nexB/scancode-toolkit/files/9473528/doris-1.1.1-rc03-results.json.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.