Skip to content

Commit bf999f7

Browse files
committed
test: add regression test for lgpl-3.0_16 required phrases
Add a lic4 datadriven fixture with the LGPL-2-or-later notice header from KDE libqzeitgeist src/logbrowser.cpp (issue #4995): it must detect as lgpl-2.0-plus only and no longer match lgpl-3.0_16.RULE now that the rule requires its GNU Lesser General Public License version 3 phrases. Signed-off-by: Eljees <3.14hell@gmail.com>
1 parent 226d6cd commit bf999f7

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Copyright (C) 2012 Trever Fischer <tdfischer@fedoraproject.org>
3+
*
4+
* This program is free software; you can redistribute it and/or
5+
* modify it under the terms of the GNU Lesser General Public License
6+
* as published by the Free Software Foundation; either version 2
7+
* of the License, or (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with this program; if not, write to the Free Software
16+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17+
*
18+
*/
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
license_expressions:
2+
- lgpl-2.0-plus
3+
- lgpl-2.0-plus
4+
notes: |
5+
LGPL "either version 2 of the License, or (at your option) any later
6+
version" notice header from KDE libqzeitgeist src/logbrowser.cpp as
7+
reported in https://github.com/aboutcode-org/scancode-toolkit/issues/4995
8+
This notice never mentions version 3 and must not be detected as lgpl-3.0:
9+
it used to match lgpl-3.0_16.RULE by a partial sequence match before that
10+
rule got required phrases.

0 commit comments

Comments
 (0)