Skip to content

Commit ca22879

Browse files
committed
spdxcheck: enforce SPDX license tags on build system files
Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Rob Norris <robn@despairlabs.com>
1 parent 8929831 commit ca22879

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

scripts/spdxcheck.pl

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
man/man?/*.?
8383
man/man?/*.?.in
8484
85+
# Build system
86+
*.ac
87+
*.am
88+
*.m4
89+
8590
# Unsuffixed programs (or generated of same)
8691
cmd/zarcstat.in
8792
cmd/zarcsummary
@@ -98,8 +103,6 @@
98103
99104
# Misc items that have clear licensing info but aren't easily matched,
100105
# or are the first of a class that we aren't ready to match yet.
101-
config/ax_code_coverage.m4
102-
configure.ac
103106
module/lua/README.zfs
104107
scripts/kmodtool
105108
tests/zfs-tests/tests/functional/inheritance/README.config
@@ -141,7 +144,6 @@
141144
tests/zfs-tests/tests/functional/tmpfile/tmpfile_003_pos.c
142145
tests/zfs-tests/tests/functional/tmpfile/tmpfile_test.c
143146
144-
autogen.sh
145147
contrib/bpftrace/zfs-trace.sh
146148
contrib/pyzfs/docs/source/conf.py
147149
contrib/pyzfs/libzfs_core/test/__init__.py
@@ -190,8 +192,18 @@
190192
'module/icp' => ['Apache-2.0', 'CDDL-1.0'],
191193
'contrib/icp' => ['Apache-2.0', 'CDDL-1.0'],
192194

193-
# Python bindings are always Apache-2.0
194-
'contrib/pyzfs' => ['Apache-2.0'],
195+
# Python bindings are always Apache-2.0; CDDL is available for build
196+
# files in that dir.
197+
'contrib/pyzfs' => ['Apache-2.0', 'CDDL-1.0'],
198+
199+
# Common licenses for autoconf macros; some of these are complex
200+
# with exceptions, so we don't have a "generic" list as such, just
201+
# a list of all the ones currently in use.
202+
'config' => [
203+
'CDDL-1.0', 'LGPL-2.1-or-later', 'FSFAP', 'FSFULLR',
204+
'GPL-2.0-or-later WITH Autoconf-exception-generic',
205+
'GPL-3.0-or-later WITH Autoconf-exception-macro',
206+
],
195207
);
196208

197209
# This is a list of "special case" license tags that are in use in the tree,
@@ -237,9 +249,6 @@
237249
'OpenSSL-standalone' => [qw(
238250
module/icp/asm-x86_64/aes/aes_aesni.S
239251
)],
240-
'LGPL-2.1-or-later' => [qw(
241-
config/ax_code_coverage.m4
242-
)],
243252

244253
# Legacy inclusions of BSD-2-Clause files in Linux SPL.
245254
'BSD-2-Clause' => [qw(

0 commit comments

Comments
 (0)