-
-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
OR identified as AND #3523
Comments
@AyanSinhaMahapatra I believe the issue as reported is correct: |
It might be tricky, since it is very similar to the wording used for "or later" licenses. |
@hesa there is a reference to SCTK 31.2.6 and then 32.0.6 above .... I get this with 32.0.6: - matches:
- score: '94.64'
matcher: 3-seq
end_line: 29
rule_url: https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-2.1_or_mpl-1.1_2.RULE
start_line: 4
matched_text: |
* This library is free software; you can redistribute it and/or
* modify it either under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation
* (the "LGPL") or, at your option, under the terms of the Mozilla
* Public License Version 1.1 (the "MPL"). If you do not alter this
* notice, a recipient may use your version of this file under either
* the MPL or the LGPL.
*
* You should have received a copy of the LGPL along with this library
* in the file COPYING-LGPL-2.1; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
* You should have received a copy of the MPL along with this library
* in the file COPYING-MPL-1.1
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
* OF ANY KIND, either express or implied. See the LGPL or the MPL for
* the specific language governing rights and limitations.
*
* The Original Code is the cairo graphics library.
*
* The Initial Developer of the Original Code is Keith Packard
match_coverage: '94.64'
matched_length: 212
rule_relevance: 100
rule_identifier: lgpl-2.1_or_mpl-1.1_2.RULE
license_expression: lgpl-2.1 OR mpl-1.1
identifier: lgpl_2_1_or_mpl_1_1-8f4efaf4-1022-63ec-f250-bae5e2a90bfd
license_expression: lgpl-2.1 OR mpl-1.1 This is correct?? (but not perfect in my book, we will need an improve rule to ensure we match this exactly and no approximately) |
This is weird ..... I get different results when scanning the single file compared to the entire project. Below is the output from running a small script I wrote (see even further down below) to show the weirdness (I am not ruling out I have made a mistake).
Script:
|
@AyanSinhaMahapatra could this be because we are following (incorrectly) the license file references? |
@AyanSinhaMahapatra the issue is clearly because we follow references.
|
Description
Looking at Cairo 1.16 and the following file https://cgit.freedesktop.org/cairo/tree/src/cairo-analysis-surface-private.h?h=1.16.0
The file has the following license text at the top:
The interesting part is "GNU Lesser General Public License version 2.1 as published by the Free Software Foundation (the "LGPL") or, at your option, under the terms of the Mozilla Public License Version 1.1 (the "MPL"). "
Reported license Scancode version 31.2.6:
"license_expressions": [ "lgpl-2.1 OR mpl-1.1" ]
Reported license Scancode version 32.0.6:
So, Scancode 32.0.6 does not correctly identify "or, at your option" as "OR".
How To Reproduce
Download and unpack https://www.cairographics.org/releases/cairo-1.16.0.tar.xz
My settings/command line args for 32.0.6:
My settings/command line args for 32.0.6:
System configuration
Scancode:
OS:
The text was updated successfully, but these errors were encountered: