Skip to content

Commit 484ff50

Browse files
authored
Merge pull request #211 from hesa/hesa-add-licenses-027
Add licenses bulk 027
2 parents 981f509 + 2c990b0 commit 484ff50

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+860
-57
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ Current support:
5656

5757
|Type | Number |
5858
|----------------|--------|
59-
|Licenses | 195 |
60-
|Aliases | 2696 |
59+
|Licenses | 201 |
60+
|Aliases | 2805 |
6161
|Compatibilities | 23 |
6262
|Operators | 14 |
63-
|Ambiguities | 143 |
64-
|Compounds | 38 |
63+
|Ambiguities | 159 |
64+
|Compounds | 46 |
6565

6666
# About
6767

STATUS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
|Type | Number |
33
|----------------|--------|
4-
|Licenses | 195 |
5-
|Aliases | 2696 |
4+
|Licenses | 201 |
5+
|Aliases | 2805 |
66
|Compatibilities | 23 |
77
|Operators | 14 |
8-
|Ambiguities | 143 |
9-
|Compounds | 38 |
8+
|Ambiguities | 159 |
9+
|Compounds | 46 |

devel/check-license-file.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
# check-license-file.sh <LICENSE-FILE>
1010
#
1111

12+
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})/../
1213
cat $1 | while read LICENSE
1314
do
1415
printf "unknown\n$LICENSE\n"
15-
done | ./devel/flame shell -s | grep -v Unknown
16+
done | ${SCRIPT_DIR}/devel/flame shell -s | grep -v Unknown

devel/flame

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
#
55
# SPDX-License-Identifier: GPL-3.0-or-later
66

7-
PYTHONPATH=./python python/flame/__main__.py $*
7+
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})/../
8+
PYTHONPATH=${SCRIPT_DIR}/python ${SCRIPT_DIR}/python/flame/__main__.py $*

tests/shell/sanity-check.sh

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,17 @@ check_presence()
8989
if [ "$PRESENT" != "" ]
9090
then
9191
echo "FAIL"
92-
echo " * cause: Not present in $FILE"
92+
echo " * cause: Not present ($PRESENT) in $FILE"
9393
echo " --------------------------"
9494
echo "Should be present: $REG_EXP_PRESENCE"
9595
echo " --------------------------"
96+
echo "Try yourself: "
97+
echo " cat $FILE | jq -r .aliases[] | grep -v \"$REG_EXP_PRESENCE\""
98+
echo " --------------------------"
9699
RET=$(( $RET + 1 ))
97100
_RET="FAIL"
98101
LICENSE_ERRORS="$LICENSE_ERRORS $REG_EXP_PRESENCE not present in $FILE"
102+
exit
99103
fi
100104

101105
# check unpresence
@@ -147,6 +151,8 @@ check_presence AFL-2.0 " -e 2.0 " "-e 1 -e 2.1 -e 3"
147151
check_presence AFL-2.1 " -e 2.1 " "-e 1. -e 2.0 -e 0 -e 3"
148152
check_presence AFL-3.0 " -e 3 " "-e 1 -e 2 "
149153

154+
check_presence AGPL-1.0-only " -i -e 1 -e affero" " -e '1 ' -e 2 -e later -e plus -e + -e library -e lesser "
155+
check_presence AGPL-1.0-or-later " -i -e 1 -e affero" " -e '1 ' -e library -e lesser "
150156
check_presence AGPL-3.0-only " -i -e 3 -e affero" " -e '1 ' -e 2 -e later -e plus -e + -e library -e lesser "
151157
check_presence AGPL-3.0-or-later " -e 3 -e later -e +" " -e '1 ' -e 2 -e library -e lesser "
152158

@@ -171,19 +177,20 @@ check_presence Bootloader-exception " -i bootloader" ""
171177
check_presence BSL-1.0 " -e BSL-1 -e BSL1 -e 1 " " -i -e original "
172178

173179

180+
check_presence LicenseRef-scancode-khronos " -i -e khronos" ""
174181
check_presence LicenseRef-scancode-openssl-exception-lgpl " -i -e openssl" ""
175182
check_presence LicenseRef-scancode-openssl-exception-gpl-2.0-plus " -i -e openssl" ""
176183
check_presence LicenseRef-scancode-openssl-exception-lgpl2.0plus " -i -e openssl" ""
177-
178184
check_presence LicenseRef-scancode-boost-original " -i -e original " " -e BSL-1 -e BSL1 -e 1 "
179185
check_presence LicenseRef-scancode-ssleay " -i -e leay " " -e openssl"
180186

181187
check_presence 0BSD "$ZERO_BSD_PRESENT" "$BSD3_PRESENT $BSD2_PRESENT "
182188
check_presence BSD-1-Clause " -i BSD" " -e 2 -e 3 -e 4 "
183-
check_presence BSD-2-Clause "$BSD2_PRESENT" "$ZERO_BSD_PRESENT $BSD3_PRESENT "
189+
check_presence BSD-2-Clause "$BSD2_PRESENT" " -e 3 "
184190
check_presence BSD-2-Clause-Patent "$BSD2_PATENT_PRESENT" "$ZERO_BSD_PRESENT $BSD3_PRESENT "
185191
check_presence BSD-2-Clause-Views " -i -e view" " -e 0 -e 1 -e 3 -e 4"
186192
check_presence BSD-3-Clause "$BSD3_PRESENT" "$ZERO_BSD_PRESENT -i -e two -e simplified -e freebsd "
193+
check_presence BSD-3-Clause-Attribution " -i -e ack -e attribution" " -e 0 -e 1 -e 2 -e 4"
187194
check_presence BSD-3-Clause-Clear " -i -e clear" " -e 0 -e 1 -e 2 -e 4"
188195
check_presence BSD-3-Clause-Modification " -i -e modification -e repoze " " -e 0 -e 1 -e 2 -e 4"
189196
check_presence BSD-3-Clause-No-Nuclear-Warranty " -i -e nuclear" " -e 0 -e 1 -e 2 -e 4"
@@ -331,6 +338,7 @@ check_presence Plexus " -i -e plexus -e classworlds " ""
331338
check_presence PostgreSQL " -i -e postgresql " ""
332339
check_presence Python-2.0.1 " -i -e Python " ""
333340

341+
check_presence romic-exception " -i -e romic " ""
334342
check_presence RSA-MD " -i -e RSA " ""
335343
check_presence RSCPL " -i -e RSCPL -e Ricoh " ""
336344

@@ -371,7 +379,7 @@ check_presence xpp " -i -e xpp -e indiana " ""
371379
check_presence LicenseRef-scancode-xfree86-1.0 " -i -e 1.0 " " -e X/MIT -e 1.1 "
372380
check_presence XFree86-1.1 " -i -e 1.1 " " -e X/MIT -e 1.0 "
373381

374-
check_presence Zlib " -i -e libz -e zlib" " -i bsd "
382+
check_presence Zlib " -i -e libz -e zlib -e z-lib" " -i bsd "
375383
check_presence ZPL-1.1 " -e 1.1" " -e 2"
376384
check_presence ZPL-2.0 " -e 2.0" " -e 1 -e 2.1"
377385
check_presence ZPL-2.1 " -e 2.1" " -e 1.1 -e 2.0"

var/ambiguities.json

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
},
1616
"GNU Affero General Public License": {
1717
"aliases": [
18-
"AGPL"
18+
"AGPL",
19+
" Affero General Public License"
1920
],
2021
"problem": "This license has different versions (1.0, 2.0 and 3.0) and different names (version 1.0 does not have GNU in the name). Without a version number it is not possible to determine which of the versions is meant."
2122
},
@@ -37,7 +38,9 @@
3738
"License :: OSI Approved :: Apache Software License",
3839
"OSI Approved Apache Software License",
3940
"apache",
40-
"OSI-Approved-::-Apache-Software-License"
41+
"OSI-Approved-::-Apache-Software-License",
42+
"LICENSE-APACHE",
43+
"Apache other"
4144
],
4245
"problem": "This license has different version (1.0, 1.1, and 2.0). Without a version number it is not possible to determine which of the versions is meant."
4346
},
@@ -90,7 +93,11 @@
9093
"BSD license",
9194
"License :: OSI Approved :: BSD License",
9295
"BSD licensed code",
93-
"BSD Software License"
96+
"BSD Software License",
97+
"BSD_License",
98+
"BSD_License_",
99+
"BSD like",
100+
"BSD-LIKE"
94101
],
95102
"problem": "There are a couple of variants or versions of the BSD license (0BSD, BSD-1-Clause, BSD-2-Clause, BSD-3-Clause and BSD-4-Clause). Without the version/variant of the license it is not possible to determine which of the versions is meant."
96103
},
@@ -185,7 +192,7 @@
185192
"GNU GENERAL PUBLIC LICENSE",
186193
"License :: OSI Approved :: GNU General Public License",
187194
"License :: OSI Approved :: GNU General Public License (GPL)",
188-
"GNU General Public License (GPL)",
195+
"GNU General Public License (GPL)",
189196
"GNU-GPL",
190197
"GPL license"
191198
],
@@ -205,7 +212,9 @@
205212
"GNU Library/LGPL",
206213
"GNU Library",
207214
"GNU Library or GNU Lesser General Public License",
208-
"GNU Lesser General Public License v1.0"
215+
"GNU Lesser General Public License v1.0",
216+
"LGPL license",
217+
"GNU Lesser Public License"
209218
],
210219
"problem": "This license has different versions (2.0, 2.1 and 3.0). Without a version number it is not possible to determine which of the versions is meant."
211220
},
@@ -219,7 +228,9 @@
219228
"MIT Like",
220229
"MIT-style License.",
221230
"MIT-license",
222-
"MIT-Licences"
231+
"MIT-Licences",
232+
"MIT-like License",
233+
"MIT Style License"
223234
],
224235
"problem": "This is not a license identifier. It is most likely a license similar to MIT, but without more information no assumptions can be made."
225236
},
@@ -228,7 +239,8 @@
228239
"MPL",
229240
"MPL-1",
230241
"MPLv1",
231-
"Mozilla-permissive"
242+
"Mozilla-permissive",
243+
"Mozilla"
232244
],
233245
"problem": "This license has different version (1.0, 1.1 and 2.0). Without a version number clearly distinguishing the version it is not possible to determine which of the versions is meant."
234246
},
@@ -276,7 +288,11 @@
276288
"Python Software Foundation",
277289
"Python Software Foundation License (PSFL)",
278290
"The Python Software Foundation License",
279-
"PSF-License"
291+
"PSF-License",
292+
"psf-license",
293+
"PSF LICENSE",
294+
"Python Open Source GPL Compatible License Agreement",
295+
"Software Foundation License"
280296
],
281297
"problem": "This license has different versions (2.0 and 2.0.1). Without a version number clearly distinguishing the version it is not possible to determine which of the versions is meant."
282298
},

var/compounds.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44
"comment": ""
55
},
66
"compounds": [
7+
{
8+
"spdxid": "AGPL 3.0 WITH romic-exception",
9+
"aliases": [
10+
"linking-exception-agpl-3.0",
11+
"AGPL-3.0-only WITH romic-exception"
12+
]
13+
},
714
{
815
"spdxid": "Apache-2.0 WITH LLVM-exception",
916
"aliases": [
@@ -32,7 +39,8 @@
3239
"GPL v2.0 w/ CPE",
3340
"GPL2 w CPE",
3441
"GPL-2.0-only WITH the Classpath Exception",
35-
"GPL-2.0-only WITH the classpath exception"
42+
"GPL-2.0-only WITH the classpath exception",
43+
"GPLv2+CE"
3644
]
3745
},
3846
{
@@ -90,7 +98,12 @@
9098
"GNU General Public License v3.0 w/GCC Runtime Library exception",
9199
"GPLv3 + GCC Runtime Library Exception version 3.1",
92100
"GPL 3.0 w/RTE",
93-
"GPL-3 w/ GCC exception"
101+
"GPL-3 w/ GCC exception",
102+
"GPL-3.0-only WITH GCC exception",
103+
"GPL-3.0-only WITH GCC Runtime Library exception",
104+
"GPL-3.0+-with-GCC-exception",
105+
"GPL-2.0-only WITH GCC exception",
106+
"GPL-2.0-only WITH GCC Runtime Library exception"
94107
],
95108
"compatibility_as": "0BSD"
96109
},

var/licenses/0BSD.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"License :: OSI Approved :: Zero-Clause BSD (0BSD)",
2525
"BSD 0C",
2626
"Free Public License 1.0.0",
27-
"free-public-license-1-0-0"
27+
"free-public-license-1-0-0",
28+
"bsd-0-clause"
2829
]
2930
}

0 commit comments

Comments
 (0)