Skip to content

Commit d7fee0b

Browse files
authored
Merge pull request #1646 from nexB/license-updates-07-10
Add new License rules and licenses
2 parents 8efa043 + 89a5af3 commit d7fee0b

3,394 files changed

Lines changed: 13717 additions & 6960 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.

configure

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ $PYTHON_EXE "$CONFIGURE_ROOT_DIR/etc/configure.py" $CFG_CMD_LINE_ARGS
3333
if [ -f "$CONFIGURE_ROOT_DIR/bin/activate" ]; then
3434
source "$CONFIGURE_ROOT_DIR/bin/activate"
3535
fi
36+
37+
set +e

etc/scripts/synclic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,9 @@ def merge_licenses(scancode_license, external_license, updatable_attributes,
816816
matching. In this case, the key that is used is that from the ScanCode
817817
license.
818818
"""
819+
if TRACE:
820+
print('merge_licenses:', scancode_license, external_license)
821+
819822
updated_scancode_attributes = []
820823

821824
def update_scancode(_attrib, _sc_val, _ext_val):

src/cluecode/copyrights.py

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def detect_copyrights(location, copyrights=True, holders=True, authors=True,
273273
# MORE NN exceptions to NNP or CAPS
274274
# 'Berkeley Software Distribution',??
275275
(r'^(Unicode|Modified|NULL|FALSE|False|TRUE|True|Last|Predefined|If|Standard'
276-
r'|Versions?\.?|Package|PACKAGE|Powered|License[d\.e\:]?|License-Alias\:?|Legal'
276+
r'|Versions?\.?|Package|PACKAGE|Powered|Licen[cs]e[d\.e\:]?|License-Alias\:?|Legal'
277277
r'|Entity|Indemnification\.?|IS|This|Java|DoubleClick|DOM|SAX|URL|Operating'
278278
r'|Original|Release|IEEE|Std|BSD|POSIX|Derivative|Works|Intellij|IDEA|README'
279279
r'|NEWS|CHANGELOG|Change[lL]og|CHANGElogger|SIGN|F2Wku|LegalTrademarks|OriginalFilename'
@@ -282,7 +282,7 @@ def detect_copyrights(location, copyrights=True, holders=True, authors=True,
282282
r')$', 'NN'),
283283

284284
# MORE NN exceptions to CAPS
285-
(r'^(OR|VALUE|END|TODO)$', 'NN'),
285+
(r'^(OR|VALUE|END|TODO|DOCUMENTATION|CHANGES|ISC-LICENSE)$', 'NN'),
286286

287287
# Various rare non CAPS but NNP, treated as full names
288288
(r'^(FSF[\.,]?)$', 'NAME'),
@@ -291,16 +291,16 @@ def detect_copyrights(location, copyrights=True, holders=True, authors=True,
291291
(r'^(Windows|XP|SP1|SP2|SP3|SP4|assembly)$', 'JUNK'),
292292

293293
# various junk bits
294-
(r'^example\.com$', 'JUNK'),
295-
(r'^null$', 'JUNK'),
296-
294+
(r'^(example\.com'
295+
r'|null$'
296+
r'|:Licen[cs]e)$', 'JUNK'),
297+
297298
# when uppercase this is likely part of some SQL statement
298299
(r'FROM|CREATE|CURDIR', 'JUNK'),
299300
(r'RECURSIVE|VIEW', 'NN'),
300301
# found in sqlite
301302
(r'\+0|ToUpper', 'JUNK'),
302303

303-
304304
# Java
305305
(r'^.*Servlet,?|class$', 'JUNK'),
306306

@@ -479,7 +479,8 @@ def detect_copyrights(location, copyrights=True, holders=True, authors=True,
479479
# or et.al.
480480
(r'^[Oo]ther?s|et\.al[\.,]?$', 'OTH'),
481481
# in year ranges: dash, or 'to': "1990-1995", "1990/1995" or "1990 to 1995"
482-
(r'^([-/]|to)$', 'DASH'),
482+
(r'^[-/]$', 'DASH'),
483+
(r'^to$', 'TO'),
483484

484485
# explicitly ignoring these words: FIXME: WHY?
485486
(r'^([Tt]his|THIS|[Pp]ermissions?|PERMISSIONS?|All)$', 'NN'),
@@ -631,11 +632,12 @@ def detect_copyrights(location, copyrights=True, holders=True, authors=True,
631632
#######################################
632633
633634
YR-RANGE: {<YR>+ <CC>+ <YR>} #20
634-
YR-RANGE: {<YR> <DASH>* <YR|CD>+} #30
635+
YR-RANGE: {<YR> <DASH|TO>* <YR|CD>+} #30
635636
YR-RANGE: {<CD>? <YR>+} #40
636637
YR-RANGE: {<YR>+ } #50
637638
YR-AND: {<CC>? <YR>+ <CC>+ <YR>} #60
638639
YR-RANGE: {<YR-AND>+} #70
640+
YR-RANGE: {<YR-RANGE>+ <DASH|TO> <YR-RANGE>+} #71
639641
YR-RANGE: {<YR-RANGE>+ <DASH>?} #72
640642
641643
#######################################
@@ -1209,6 +1211,11 @@ def detect_copyrights(location, copyrights=True, holders=True, authors=True,
12091211
# Copyright (c) 2007-2014 IOLA and Ole Laursen.
12101212
COPYRIGHT: {<COPYRIGHT> <ANDCO>}
12111213
1214+
# Vladimir Oleynik <dzo@simtreas.ru> (c) 2002
1215+
COPYRIGHT: {<NAME2> <COPYRIGHT2>} #2840
1216+
1217+
1218+
12121219
# Authors
12131220
# Created by XYZ
12141221
AUTH: {<AUTH2>+ <BY>} #2645

src/licensedcode/data/licenses/activestate-community-2012.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
key: activestate-community-2012
22
short_name: ActiveState Community License 2012
33
name: ActiveState Community License 2012
4-
category: Free Restricted
4+
category: Proprietary Free
55
owner: ActiveState Software, Inc.
66
homepage_url: https://web.archive.org/web/20130420143215/http://www.activestate.com/activeperl/license-agreement
7-
standard_notice: |-
7+
standard_notice: |
88
ActivePerl is covered by the ActiveState Community License.
99
Please note:
1010
If you plan to redistribute ActivePerl you will need a different license.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
key: activestate-community
22
short_name: ActiveState Community License
33
name: ActiveState Community License
4-
category: Free Restricted
4+
category: Proprietary Free
55
owner: ActiveState Software, Inc.

src/licensedcode/data/licenses/alfresco-exception-0.5.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ key: alfresco-exception-0.5
22
short_name: Alfresco FLOSS Exception v0.5
33
name: Alfresco FLOSS Exception v0.5
44
category: Copyleft
5-
owner: Alfresco
5+
owner: Alfresco Software
66
homepage_url: https://web.archive.org/web/20070306001556/http://www.alfresco.com/legal/licensing/floss_exception/
7+
is_exception: yes

src/licensedcode/data/licenses/ams-fonts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ key: ams-fonts
22
short_name: AMSFonts license
33
name: AMSFonts license
44
category: Permissive
5-
owner: AMS
5+
owner: American Mathematical Society (AMS)
66
homepage_url: http://www.ams.org/publications/type1-fonts
77
other_urls:
88
- https://fedoraproject.org/wiki/Licensing:AMS

0 commit comments

Comments
 (0)