aboutcode-org / aboutcode-org/scancode-toolkit

freebsd package can't find expected ruby license

Open
#1,470 1 comment 0 reactions 0 assignees View on GitHub
bug license scan package scan package-formats
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

### Description

When freebsd package parser to parse the following content:
`{"name":"rubygem-ttfunk","origin":"print/rubygem-ttfunk","version":"1.5.1","comment":"Font Metrics Parser for Prawn","maintainer":"ruby@FreeBSD.org","www":"https://github.com/prawnpdf/ttfunk","abi":"FreeBSD:10:*","arch":"freebsd:10:*","prefix":"/usr/local","flatsize":1656569,"licenselogic":"or","licenses":["GPLv3","RUBY","GPLv2"],"desc":"Font Metrics Parser for Prawn\n\nWWW: https://github.com/prawnpdf/ttfunk","deps":{"ruby":{"origin":"lang/ruby24","version":"2.4.4,1"},"ruby24-gems":{"origin":"devel/ruby-gems","version":"2.7.6"}},"categories":["print","rubygems"]}`

And it returns the package info with:
```

"license_expression": "gpl-2.0 AND unknown",
"declared_license": "RUBY OR GPLv2",

```

Ruby license should be detected instead of "unknown" here in license_expression.

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.