Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The following organizations or individuals have contributed to ScanCode:
- Arnaud Jeansen @ajeans
- Arnav Mandal @arnav-mandal1234
- Aryan Kenchappagol @aryanxk02
- Ashutosh Panda @Ashutosh-Panda2004
- Avi Aryan @aviaryan
- Aviral Verma @avirlrma
- Ayush @macayu17
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ Next release
``ValueError: did not find any 'pre_scan' hooks``.
https://github.com/aboutcode-org/scancode-toolkit/issues/5363

- Fix a GPL-2.0-only license notice, as found in the Linux kernel ``ray_cs.c``
driver, being detected as another GPL variant. Add rules for the
``version 2 only`` and ``version 2 or later`` notice variants that end with
the old Free Software Foundation postal address.
https://github.com/aboutcode-org/scancode-toolkit/issues/5039

v33.0.0rc1 - 2026-05-14
------------------------

Expand Down
18 changes: 18 additions & 0 deletions src/licensedcode/data/rules/gpl-2.0-plus_1156.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
license_expression: gpl-2.0-plus
is_license_notice: yes
relevance: 100
---

This driver is free software; you can redistribute it and/or modify
it under the terms of version 2 or later of the {{GNU General Public License}} as
published by the Free Software Foundation.

It 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
{{GNU General Public License}} for more details.

You should have received a copy of the {{GNU General Public License}}
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
18 changes: 18 additions & 0 deletions src/licensedcode/data/rules/gpl-2.0_1487.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
license_expression: gpl-2.0
is_license_notice: yes
relevance: 100
---

This driver is free software; you can redistribute it and/or modify
it under the terms of version 2 only of the {{GNU General Public License}} as
published by the Free Software Foundation.

It 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
{{GNU General Public License}} for more details.

You should have received a copy of the {{GNU General Public License}}
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
14 changes: 14 additions & 0 deletions tests/licensedcode/data/datadriven/lic1/ray_cs_gpl-2.0-plus.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This driver is free software; you can redistribute it and/or modify
* it under the terms of version 2 or later of the GNU General Public License as
* published by the Free Software Foundation.
*
* It 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
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
license_expressions:
- gpl-2.0-plus
14 changes: 14 additions & 0 deletions tests/licensedcode/data/datadriven/lic1/ray_cs_gpl-2.0.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* This driver is free software; you can redistribute it and/or modify
* it under the terms of version 2 only of the GNU General Public License as
* published by the Free Software Foundation.
*
* It 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
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
2 changes: 2 additions & 0 deletions tests/licensedcode/data/datadriven/lic1/ray_cs_gpl-2.0.c.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
license_expressions:
- gpl-2.0
Loading