@thedanbob: a (legally) safer way would be to integrate patches 3ace9de and 2e9c9b7 from github. Using the sed command only makes the kernel module lie about it's license which is legally wrong.
https://github.com/openzfs/zfs/issues/14658
The patches rewrites the the offending parts of the code to not use the two offending GPL-only symbols. You need to rerun autogen.sh once the patches are applied. I've tested this on both 2.1.9 and git and they work, so I can vouch for it.
Pinned Comments
kstolp commented on 2023-09-29 00:34 (UTC)
When requesting changes, please include detailed reasoning for the change.
kstolp commented on 2023-01-07 09:31 (UTC)
If you receive this error when trying to build, it is because you have not imported the GPG keys used for verification.
You have two options:
1) Import the two keys into your keyring. ArchWiki article. You can find the key IDs in the PKGBUILD file, in the
validpgpkeys
array. (recommended)2) Alternatively, you can skip this verification by passing the
--skippgpcheck
argument tomakepkg
when building. (not recommended)