Skip to content

Commit cf2a245

Browse files
committed
Improve license detection of some tests expecting for fail for now
* add new rules and texts (including a general CLA) * refine frequent tokens * add new disambiguation with a filter for matches that overlap multiple matches * correct the licensing identifier of rules that were all incorrect (and were set to False) Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 2b50c98 commit cf2a245

77 files changed

Lines changed: 1133 additions & 108 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
key: generic-cla
2+
short_name: Generic CLA
3+
name: Prior Generic Contributor License Agreement
4+
category: Proprietary
5+
notes: this is a generic license for CLAs.

src/licensedcode/data/licenses/gpl-2.0-gcc-compiler-exception.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
key: gpl-2.0-gcc-compiler-exception
22
short_name: GPL 2.0 with GCC compiler exception
3-
name: >-
4-
GNU General Public License 2.0 with GCC compiler exception
3+
name: GNU General Public License 2.0 with GCC compiler exception
54
category: Copyleft Limited
65
owner: Free Software Foundation (FSF)
76
other_urls:
Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
1-
This file is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
1+
This file is free software; you can redistribute it and/or modify it under the terms
2+
of the GNU General Public License as published by the Free Software Foundation;
3+
either version 2 of the License, or (at your option) any later version.
24

3-
In addition to the permissions in the GNU General Public License, the Free Software Foundation gives you unlimited permission to link the compiled version of this file into combinations with other programs, and to distribute those combinations without any restriction coming from the use of this file. (The General Public License restrictions do apply in other respects; for example, they cover modification of the file, and distribution when not linked into a combined executable.)
5+
In addition to the permissions in the GNU General Public License, the Free Software
6+
Foundation gives you unlimited permission to link the compiled version of this file
7+
into combinations with other programs, and to distribute those combinations without
8+
any restriction coming from the use of this file. (The General Public License
9+
restrictions do apply in other respects; for example, they cover modification of the
10+
file, and distribution when not linked into a combined executable.)
411

5-
This program 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.
12+
This program is distributed in the hope that it will be useful, but WITHOUT ANY
13+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14+
PARTICULAR PURPOSE. See the GNU General Public License for more details.
615

7-
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., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
16+
You should have received a copy of the GNU General Public License along with this
17+
program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street -
18+
Fifth Floor, Boston, MA 02110-1301, USA.

src/licensedcode/data/licenses/gpl-2.0-plus-linking.LICENSE

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
1+
This library is free software; you can redistribute it and/or modify it under the
2+
terms of the GNU General Public License as published by the Free Software Foundation;
3+
either version 2, or (at your option) any later version.
24

3-
This library 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.
5+
This library is distributed in the hope that it will be useful, but WITHOUT ANY
6+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
7+
PARTICULAR PURPOSE. See the GNU General Public License for more details.
48

5-
You should have received a copy of the GNU General Public License along with this library; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9+
You should have received a copy of the GNU General Public License along with this
10+
library; see the file COPYING. If not, write to the Free Software Foundation, 51
11+
Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
612

713
As a special exception, if you link this library with other files,
814
some of which are compiled with GCC, to produce an executable,
Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,28 @@
1-
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
1+
This library is free software; you can redistribute it and/or modify it under the
2+
terms of the GNU General Public License as published by the Free Software Foundation;
3+
either version 2, or (at your option) any later version.
24

3-
This library 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.
5+
This library is distributed in the hope that it will be useful, but WITHOUT ANY
6+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
7+
PARTICULAR PURPOSE. See the GNU General Public License for more details.
48

5-
You should have received a copy of the GNU General Public License along with this library; see the file COPYING. If not, write to the Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9+
You should have received a copy of the GNU General Public License along with this
10+
library; see the file COPYING. If not, write to the Free Software Foundation, 51
11+
Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
612

7-
In addition, as a special exception, Red Hat, Inc. gives You the additional right to link the code of this Program with code not covered under the GNU General Public License ("Non-GPL Code") and to distribute linked combinations including the two, subject to the limitations in this paragraph. Non-GPL Code permitted under this exception must only link to the code of this Program through those well defined interfaces identified in the file named EXCEPTION found in the source code files (the "Approved Interfaces"). The files of Non-GPL Code may instantiate templates or use macros or inline functions from the Approved Interfaces without causing the resulting work to be covered by the GNU General Public License. Only Red Hat, Inc. may make changes or additions to the list of Approved Interfaces. You must obey the GNU General Public License in all respects for all of the Program code and other code used in conjunction with the Program except the Non-GPL Code covered by this exception. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to provide this exception without modification, you must delete this exception statement from your version and license this file solely under the GPL without exception.
13+
In addition, as a special exception, Red Hat, Inc. gives You the additional right to
14+
link the code of this Program with code not covered under the GNU General Public
15+
License ("Non-GPL Code") and to distribute linked combinations including the two,
16+
subject to the limitations in this paragraph. Non-GPL Code permitted under this
17+
exception must only link to the code of this Program through those well defined
18+
interfaces identified in the file named EXCEPTION found in the source code files (the
19+
"Approved Interfaces"). The files of Non-GPL Code may instantiate templates or use
20+
macros or inline functions from the Approved Interfaces without causing the resulting
21+
work to be covered by the GNU General Public License. Only Red Hat, Inc. may make
22+
changes or additions to the list of Approved Interfaces. You must obey the GNU
23+
General Public License in all respects for all of the Program code and other code
24+
used in conjunction with the Program except the Non-GPL Code covered by this
25+
exception. If you modify this file, you may extend this exception to your version of
26+
the file, but you are not obligated to do so. If you do not wish to provide this
27+
exception without modification, you must delete this exception statement from your
28+
version and license this file solely under the GPL without exception.
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
COPYING CONDITIONS FOR TeX Live:
2+
3+
To the best of our knowledge, all software in the TeX Live distribution
4+
is freely redistributable (libre, that is, not necessarily gratis),
5+
within the Free Software Foundation's definition and the Debian Free
6+
Software Guidelines. Where the two conflict, we generally follow the
7+
FSF (see [*] below). If you find any non-free files included, please
8+
contact us (references given at the end).
9+
10+
That said, TeX Live has neither a single copyright holder nor a single
11+
license covering its entire contents, since it is a collection of many
12+
disparate packages. Therefore, you may copy, modify, and/or
13+
redistribute software from TeX Live only if you comply with the
14+
requirements placed thereon by the owners of the respective packages.
15+
16+
To most easily learn these requirements, we suggest checking the TeX
17+
Catalogue at: http://www.ctan.org/tex-archive/help/Catalogue/ (or any
18+
CTAN mirror). The Catalogue is also included in TeX Live in
19+
./texmf/doc/html/catalogue/, but the online version will have updates.
20+
Of course the legal statements within the packages themselves are the
21+
final authority.
22+
23+
In some cases, TeX Live is distributed with a snapshot of the CTAN
24+
archive, which is entirely independent of and separable from TeX Live
25+
itself. (The "live" DVD in the TeX Collection is one example of this.)
26+
Please be aware that the CTAN snapshot contains many files which are
27+
*not* freely redistributable; see LICENSE.CTAN for more information.
28+
29+
30+
GUIDELINES FOR REDISTRIBUTION:
31+
32+
In general, you may redistribute TeX Live, with or without modification,
33+
for profit or not, according to the usual free software tenets. Here
34+
are some general guidelines for doing this:
35+
36+
- If you make any changes to the TeX Live distribution or any
37+
package it contains, besides complying with any licensing requirements,
38+
you must prominently mention such changes in your modified distribution
39+
so that users do not take your work for ours, and know to contact you,
40+
not us, in case of questions or problems. A new top-level
41+
README.<yourwork> file is a good place to describe the general situation.
42+
43+
- Especially (but not necessarily) if changes or additions are made, we
44+
recommend a clearly different title, such as "<your work> DVD, based on
45+
TeX Live YYYY (with updates)", where YYYY is the year of TeX Live you
46+
are using. This credits both our work and yours.
47+
48+
- You absolutely may *not* place your own copyright on the entire
49+
distribution, since it is not your work (as stated above, TeX Live is
50+
not created by any single person or entity). Statements such as "all
51+
rights reserved" and "may not be reproduced" are especially
52+
reprehensible, since they are antithetical to the free software
53+
principles under which TeX Live is produced.
54+
55+
- You may use any cover or media label designs that you wish. Such
56+
packaging and marketing details are not covered by any TeX Live license.
57+
58+
- Finally, we make the following requests (not legal requirements):
59+
60+
a) Acknowledging that TeX Live is developed as a joint effort by all TeX
61+
user groups, and encouraging the user/reader to join their user group
62+
of choice. The web page http://www.tug.org/usergroups.html may be
63+
referenced as a list of TeX user groups.
64+
65+
b) Referencing the TeX Live home page: http://www.tug.org/texlive/
66+
67+
Such information may be placed on the label of your media, your cover,
68+
and/or in accompanying text (for instance, in the acknowledgements
69+
section of a book).
70+
71+
Finally, although it is again not at all a requirement, we'd like to
72+
invite any redistributors to make a donation to the project, whether
73+
cash or in-kind, for example via https://www.tug.org/donate/dev.html.
74+
Thanks.
75+
76+
77+
If you have any questions or comments, *please* contact us. In general,
78+
we appreciate being given the chance to review any TeX Live-related
79+
material in advance of publication, simply to avoid mistakes. It is
80+
much better to correct text on a CD label or in a book before thousands
81+
of copies are made!
82+
83+
We are also happy to keep anyone planning a publication informed as to
84+
our deadlines and progress. Just let us know. However, be aware that
85+
TeX Live is produced entirely by volunteers, and no dates can be
86+
guaranteed.
87+
88+
89+
LICENSING FOR NEW PACKAGES:
90+
91+
Finally, we are often asked what license to use for new work. To be
92+
considered for inclusion on TeX Live, a package must use a free software
93+
license, such as the LaTeX Project Public License, the GNU General
94+
Public License, the X Window System license, the modified BSD license,
95+
etc. Furthermore, all sources must be available, including for
96+
documentation files. Please see the url's below for more information.
97+
98+
Thanks for your interest in TeX.
99+
100+
- Karl Berry, editor, for the TeX Live team
101+
102+
------------------------------------------------------------
103+
[*] Conflicts between FSF and Debian.
104+
105+
The most notable instance of legal conflict between the FSF definition
106+
of "free software" and the Debian Free Software Guidelines is in regard
107+
to the GNU Free Documentation License when "invariant sections" (e.g.,
108+
Front-Cover Texts, Back-Cover Texts, or Invariant Sections) are
109+
included. (FSF considers it free, of course, and Debian doesn't.)
110+
111+
The most common instance of such a license is in documentation for
112+
official GNU packages -- such as GNU Texinfo, which is included in TeX
113+
Live. There may be other GFDL'd files with invariant sections as well;
114+
we have not exhaustively checked.
115+
116+
For TeX Live, we decided to follow the FSF, rather than Debian. So such
117+
documentation *is* included in the original TeX Live distribution. (In
118+
repackagings of TL according to Debian rules, it is removed.) We surely
119+
wish these two major organizations in the free software world could
120+
cooperate on a documentation license acceptable to both.
121+
122+
If other specific conflicts are brought to our attention, we will note
123+
them here.
124+
125+
------------------------------------------------------------
126+
TeX Live mailing list: texlive@tug.org
127+
TeX Live home page: http://www.tug.org/tex-live/
128+
129+
The FSF's free software definition: http://www.gnu.org/philosophy/free-sw.html
130+
Debian Free Software Guidelines: http://www.debian.org/intro/free
131+
FSF commentary on existing licenses:
132+
http://www.gnu.org/licenses/license-list.html
133+
134+
LPPL: http://latex-project.org/lppl.html or texmf/doc/latex/base/lppl.txt
135+
LPPL rationale: texmf/doc/latex/base/modguide.pdf
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
key: tex-live
2+
short_name: TeX Live License
3+
name: TeX Live License
4+
category: Attribution
5+
owner: Karl Berry
6+
homepage_url: ftp://tug.org/historic/systems/texlive/2007/LICENSE.TL
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
key: w3c-software-19980720
22
short_name: W3C-SOFTWARE-19980720
3-
name: >-
4-
W3C Software Notice and License (1998-07-20)
3+
name: W3C Software Notice and License (1998-07-20)
54
category: Attribution
65
owner: W3C - World Wide Web Consortium
76
homepage_url: http://www.w3.org/Consortium/Legal/copyright-software-19980720.html
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Redistribution and use in source and binary forms, with or without modification, are
2+
permitted provided that the following conditions are met:
3+
4+
Redistributions of source code must retain the above copyright notice, this list of
5+
conditions and the following disclaimer.
6+
7+
Redistributions in binary form must reproduce the above copyright notice, this list
8+
of conditions and the following disclaimer in the documentation and/or other
9+
materials provided with the distribution.
10+
11+
Neither the name of the author nor the names of its contributors may be used to
12+
endorse or promote products derived from this software without specific prior written
13+
permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
16+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
18+
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
19+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
20+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
21+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
23+
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
24+
DAMAGE.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
licenses:
2+
- bsd-new

0 commit comments

Comments
 (0)