spdxcheck: enforce SPDX license tags on build system files

Sponsored-by: https://despairlabs.com/sponsor/
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Closes #18077
This commit is contained in:
Rob Norris 2025-12-20 16:17:11 +11:00 committed by Brian Behlendorf
parent 85391ee931
commit 1051c3d211

View File

@ -82,6 +82,11 @@ my $tagged_patterns = q(
man/man?/*.?
man/man?/*.?.in
# Build system
*.ac
*.am
*.m4
# Unsuffixed programs (or generated of same)
cmd/zarcstat.in
cmd/zarcsummary
@ -98,8 +103,6 @@ my $tagged_patterns = q(
# Misc items that have clear licensing info but aren't easily matched,
# or are the first of a class that we aren't ready to match yet.
config/ax_code_coverage.m4
configure.ac
module/lua/README.zfs
scripts/kmodtool
tests/zfs-tests/tests/functional/inheritance/README.config
@ -141,7 +144,6 @@ my $untagged_patterns = q(
tests/zfs-tests/tests/functional/tmpfile/tmpfile_003_pos.c
tests/zfs-tests/tests/functional/tmpfile/tmpfile_test.c
autogen.sh
contrib/bpftrace/zfs-trace.sh
contrib/pyzfs/docs/source/conf.py
contrib/pyzfs/libzfs_core/test/__init__.py
@ -190,8 +192,18 @@ my @path_license_tags = (
'module/icp' => ['Apache-2.0', 'CDDL-1.0'],
'contrib/icp' => ['Apache-2.0', 'CDDL-1.0'],
# Python bindings are always Apache-2.0
'contrib/pyzfs' => ['Apache-2.0'],
# Python bindings are always Apache-2.0; CDDL is available for build
# files in that dir.
'contrib/pyzfs' => ['Apache-2.0', 'CDDL-1.0'],
# Common licenses for autoconf macros; some of these are complex
# with exceptions, so we don't have a "generic" list as such, just
# a list of all the ones currently in use.
'config' => [
'CDDL-1.0', 'LGPL-2.1-or-later', 'FSFAP', 'FSFULLR',
'GPL-2.0-or-later WITH Autoconf-exception-generic',
'GPL-3.0-or-later WITH Autoconf-exception-macro',
],
);
# This is a list of "special case" license tags that are in use in the tree,
@ -237,9 +249,6 @@ my %override_file_license_tags = (
'OpenSSL-standalone' => [qw(
module/icp/asm-x86_64/aes/aes_aesni.S
)],
'LGPL-2.1-or-later' => [qw(
config/ax_code_coverage.m4
)],
# Legacy inclusions of BSD-2-Clause files in Linux SPL.
'BSD-2-Clause' => [qw(