Skip to content

Commit

Permalink
zfs: Declare zfs as a GPL compatible module
Browse files Browse the repository at this point in the history
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 openzfs/zfs#14555 .

**I JUST WANT THINGS TO WORK, NO MEAN TO VIOLATE GPL AND DISRESPECT OPENZFS PROJECT**
  • Loading branch information
Scirese committed Jun 22, 2023
1 parent 8b315d0 commit ce7ff8f
Show file tree
Hide file tree
Showing 27 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion include/zfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/freebsd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/freebsd/linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/freebsd/spl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/freebsd/spl/acl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/freebsd/spl/rpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/freebsd/spl/sys/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/freebsd/zfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/freebsd/zfs/sys/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/linux/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/linux/kernel/linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/linux/spl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/linux/spl/rpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/linux/spl/sys/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/linux/zfs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/os/linux/zfs/sys/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/sys/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/sys/crypto/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/sys/fm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/sys/fm/fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/sys/fs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/sys/lua/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/sys/sysevent/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
2 changes: 1 addition & 1 deletion include/zfs/sys/zstd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
4 changes: 2 additions & 2 deletions include/zfs/zfs_config.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit ce7ff8f

Please sign in to comment.