Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LGPL3 recognised as GPL3 #3804

Closed
leslielazzarino opened this issue Jun 14, 2024 · 0 comments · Fixed by #3805
Closed

LGPL3 recognised as GPL3 #3804

leslielazzarino opened this issue Jun 14, 2024 · 0 comments · Fixed by #3805
Labels

Comments

@leslielazzarino
Copy link
Contributor

leslielazzarino commented Jun 14, 2024

Description

The header of a file in an older version of pyzmq gets recognized as GPL3, as the word "lesser" in the text gets ignored.
PS: I've got already a fix by adding a new rule, I'm gonna open a PR soon.

How To Reproduce

Tell us how to reproduce the issue.

Create a test file with the following content:
# pyzmq is free software; you can redistribute it and/or modify it under
# the terms of the Lesser GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# pyzmq is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# Lesser GNU General Public License for more details.
#
# You should have received a copy of the Lesser GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.

Then run e.g. the current version of scan code on the develop branch:
scancode -clpu --only-findings --license-text --verbose --json-pp results.json test.pxd

The results will contain only gpl-3.0-plus, due to gpl-3.0-plus_27.RULE being triggered.

System configuration

  • What OS are you running on? Same results on Windows and Linux
  • What version of scancode-toolkit was used to generate the scan file? develop branch
  • What installation method was used to install/run scancode? source download
leslielazzarino referenced this issue in leslielazzarino/scancode-toolkit Jun 14, 2024
Signed-off-by: leslielazzarino <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant