From ce7ff8fb05935a4368acf0a975f7a1705a8da2a9 Mon Sep 17 00:00:00 2001 From: Scirese Date: Thu, 22 Jun 2023 04:11:01 +0000 Subject: [PATCH] zfs: Declare zfs as a GPL compatible module Some kernel symbols zfs needed are exported as GPL-ONLY, makes zfs unable to build. Just hack the license declaration to GPL would solve this problem. See https://github.com/openzfs/zfs/issues/14555 . **I JUST WANT THINGS TO WORK, NO MEAN TO VIOLATE GPL AND DISRESPECT OPENZFS PROJECT** --- include/zfs/Makefile | 2 +- include/zfs/os/Makefile | 2 +- include/zfs/os/freebsd/Makefile | 2 +- include/zfs/os/freebsd/linux/Makefile | 2 +- include/zfs/os/freebsd/spl/Makefile | 2 +- include/zfs/os/freebsd/spl/acl/Makefile | 2 +- include/zfs/os/freebsd/spl/rpc/Makefile | 2 +- include/zfs/os/freebsd/spl/sys/Makefile | 2 +- include/zfs/os/freebsd/zfs/Makefile | 2 +- include/zfs/os/freebsd/zfs/sys/Makefile | 2 +- include/zfs/os/linux/Makefile | 2 +- include/zfs/os/linux/kernel/Makefile | 2 +- include/zfs/os/linux/kernel/linux/Makefile | 2 +- include/zfs/os/linux/spl/Makefile | 2 +- include/zfs/os/linux/spl/rpc/Makefile | 2 +- include/zfs/os/linux/spl/sys/Makefile | 2 +- include/zfs/os/linux/zfs/Makefile | 2 +- include/zfs/os/linux/zfs/sys/Makefile | 2 +- include/zfs/sys/Makefile | 2 +- include/zfs/sys/crypto/Makefile | 2 +- include/zfs/sys/fm/Makefile | 2 +- include/zfs/sys/fm/fs/Makefile | 2 +- include/zfs/sys/fs/Makefile | 2 +- include/zfs/sys/lua/Makefile | 2 +- include/zfs/sys/sysevent/Makefile | 2 +- include/zfs/sys/zstd/Makefile | 2 +- include/zfs/zfs_config.h | 4 ++-- 27 files changed, 28 insertions(+), 28 deletions(-) diff --git a/include/zfs/Makefile b/include/zfs/Makefile index 95bcf61a0c6ef5..186caaa3ff5fe7 100644 --- a/include/zfs/Makefile +++ b/include/zfs/Makefile @@ -605,7 +605,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/Makefile b/include/zfs/os/Makefile index 67c4a96fdb195d..cac369b42caaae 100644 --- a/include/zfs/os/Makefile +++ b/include/zfs/os/Makefile @@ -567,7 +567,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/freebsd/Makefile b/include/zfs/os/freebsd/Makefile index 099675e52ee3a1..8e0a10fc1f6c0e 100644 --- a/include/zfs/os/freebsd/Makefile +++ b/include/zfs/os/freebsd/Makefile @@ -567,7 +567,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/freebsd/linux/Makefile b/include/zfs/os/freebsd/linux/Makefile index c72f73acdc2479..a88639e0779b2a 100644 --- a/include/zfs/os/freebsd/linux/Makefile +++ b/include/zfs/os/freebsd/linux/Makefile @@ -528,7 +528,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/freebsd/spl/Makefile b/include/zfs/os/freebsd/spl/Makefile index ad2001b0d20d78..21ef5ee0ba9f2c 100644 --- a/include/zfs/os/freebsd/spl/Makefile +++ b/include/zfs/os/freebsd/spl/Makefile @@ -567,7 +567,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/freebsd/spl/acl/Makefile b/include/zfs/os/freebsd/spl/acl/Makefile index a6dde10be09e36..5fd55c18671e08 100644 --- a/include/zfs/os/freebsd/spl/acl/Makefile +++ b/include/zfs/os/freebsd/spl/acl/Makefile @@ -528,7 +528,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/freebsd/spl/rpc/Makefile b/include/zfs/os/freebsd/spl/rpc/Makefile index 9b2bd2b981ff95..7e928ddb9a34f6 100644 --- a/include/zfs/os/freebsd/spl/rpc/Makefile +++ b/include/zfs/os/freebsd/spl/rpc/Makefile @@ -528,7 +528,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/freebsd/spl/sys/Makefile b/include/zfs/os/freebsd/spl/sys/Makefile index 42d5b0897bc958..3d7e0e7f418410 100644 --- a/include/zfs/os/freebsd/spl/sys/Makefile +++ b/include/zfs/os/freebsd/spl/sys/Makefile @@ -528,7 +528,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/freebsd/zfs/Makefile b/include/zfs/os/freebsd/zfs/Makefile index f9160dc6dc27cb..c3a422f391424b 100644 --- a/include/zfs/os/freebsd/zfs/Makefile +++ b/include/zfs/os/freebsd/zfs/Makefile @@ -567,7 +567,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/freebsd/zfs/sys/Makefile b/include/zfs/os/freebsd/zfs/sys/Makefile index 615a546e109201..56bc5680aed292 100644 --- a/include/zfs/os/freebsd/zfs/sys/Makefile +++ b/include/zfs/os/freebsd/zfs/sys/Makefile @@ -528,7 +528,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/linux/Makefile b/include/zfs/os/linux/Makefile index 5e5b84aa7428c1..f3a5a1cc08a54f 100644 --- a/include/zfs/os/linux/Makefile +++ b/include/zfs/os/linux/Makefile @@ -567,7 +567,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/linux/kernel/Makefile b/include/zfs/os/linux/kernel/Makefile index cffaea268b2c2b..d07e86abf55f7c 100644 --- a/include/zfs/os/linux/kernel/Makefile +++ b/include/zfs/os/linux/kernel/Makefile @@ -567,7 +567,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/linux/kernel/linux/Makefile b/include/zfs/os/linux/kernel/linux/Makefile index e08781758b7f08..2634f6cbd9462e 100644 --- a/include/zfs/os/linux/kernel/linux/Makefile +++ b/include/zfs/os/linux/kernel/linux/Makefile @@ -560,7 +560,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/linux/spl/Makefile b/include/zfs/os/linux/spl/Makefile index 77ff8db9f92428..5e61d58d982e71 100644 --- a/include/zfs/os/linux/spl/Makefile +++ b/include/zfs/os/linux/spl/Makefile @@ -567,7 +567,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/linux/spl/rpc/Makefile b/include/zfs/os/linux/spl/rpc/Makefile index cc9d09f6127a42..baae1ba19dc365 100644 --- a/include/zfs/os/linux/spl/rpc/Makefile +++ b/include/zfs/os/linux/spl/rpc/Makefile @@ -557,7 +557,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/linux/spl/sys/Makefile b/include/zfs/os/linux/spl/sys/Makefile index 9ffb923f104e34..611c71fc32ca19 100644 --- a/include/zfs/os/linux/spl/sys/Makefile +++ b/include/zfs/os/linux/spl/sys/Makefile @@ -565,7 +565,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/linux/zfs/Makefile b/include/zfs/os/linux/zfs/Makefile index 15a74967526ac8..d0e0b007eec4ae 100644 --- a/include/zfs/os/linux/zfs/Makefile +++ b/include/zfs/os/linux/zfs/Makefile @@ -567,7 +567,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/os/linux/zfs/sys/Makefile b/include/zfs/os/linux/zfs/sys/Makefile index 30d332f056f151..a10b6af8e60e45 100644 --- a/include/zfs/os/linux/zfs/sys/Makefile +++ b/include/zfs/os/linux/zfs/sys/Makefile @@ -563,7 +563,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/sys/Makefile b/include/zfs/sys/Makefile index a94dbe74048f11..42729da0180945 100644 --- a/include/zfs/sys/Makefile +++ b/include/zfs/sys/Makefile @@ -653,7 +653,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/sys/crypto/Makefile b/include/zfs/sys/crypto/Makefile index 3249e3aaf6172e..811ead8d5613ad 100644 --- a/include/zfs/sys/crypto/Makefile +++ b/include/zfs/sys/crypto/Makefile @@ -558,7 +558,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/sys/fm/Makefile b/include/zfs/sys/fm/Makefile index 00ec2d27ec4869..8bb800bef6603b 100644 --- a/include/zfs/sys/fm/Makefile +++ b/include/zfs/sys/fm/Makefile @@ -600,7 +600,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/sys/fm/fs/Makefile b/include/zfs/sys/fm/fs/Makefile index f3643d38bf07f4..29afd22dcff3f4 100644 --- a/include/zfs/sys/fm/fs/Makefile +++ b/include/zfs/sys/fm/fs/Makefile @@ -558,7 +558,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/sys/fs/Makefile b/include/zfs/sys/fs/Makefile index 7936501ef43426..b35ac58357ac05 100644 --- a/include/zfs/sys/fs/Makefile +++ b/include/zfs/sys/fs/Makefile @@ -558,7 +558,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/sys/lua/Makefile b/include/zfs/sys/lua/Makefile index f570f093389a8e..d3511c94ef3633 100644 --- a/include/zfs/sys/lua/Makefile +++ b/include/zfs/sys/lua/Makefile @@ -558,7 +558,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/sys/sysevent/Makefile b/include/zfs/sys/sysevent/Makefile index 01532f542ea48b..1e92d7826a3fcd 100644 --- a/include/zfs/sys/sysevent/Makefile +++ b/include/zfs/sys/sysevent/Makefile @@ -558,7 +558,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/sys/zstd/Makefile b/include/zfs/sys/zstd/Makefile index 477673e9a878fb..0b52ce8673ff6f 100644 --- a/include/zfs/sys/zstd/Makefile +++ b/include/zfs/sys/zstd/Makefile @@ -558,7 +558,7 @@ ZFS_META_AUTHOR = OpenZFS ZFS_META_DATA = ZFS_META_KVER_MAX = 6.3 ZFS_META_KVER_MIN = 3.10 -ZFS_META_LICENSE = CDDL +ZFS_META_LICENSE = GPL ZFS_META_LT_AGE = ZFS_META_LT_CURRENT = ZFS_META_LT_REVISION = diff --git a/include/zfs/zfs_config.h b/include/zfs/zfs_config.h index eb77382d14f179..4936ed1294c8c1 100644 --- a/include/zfs/zfs_config.h +++ b/include/zfs/zfs_config.h @@ -1,4 +1,4 @@ -/* zfs_config.h. Generated from zfs_config.h.in by configure. */ +;/* zfs_config.h. Generated from zfs_config.h.in by configure. */ /* zfs_config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if translation of program messages to the user's native @@ -1018,7 +1018,7 @@ #define ZFS_META_KVER_MIN "3.10" /* Define the project license. */ -#define ZFS_META_LICENSE "CDDL" +#define ZFS_META_LICENSE "GPL" /* Define the libtool library 'age' version information. */ /* #undef ZFS_META_LT_AGE */