According to the release notes, OpenZFS 2.0.3 supports Linux 5.11, but the ebuild prevents this by setting ZFS_KERNEL_COMPAT="5.10".
I have tested this locally, seems to build and work fine.
Here's a patch that fixes this. --- zfs-kmod-2.0.3.ebuild 2021-02-16 10:10:06.369862821 +0000 +++ /var/db/repos/gentoo/sys-fs/zfs-kmod/zfs-kmod-2.0.3.ebuild 2021-02-16 10:22:56.690530223 +0000 @@ -16,7 +16,7 @@ SRC_URI="https://github.com/openzfs/zfs/releases/download/zfs-${MY_PV}/zfs-${MY_PV}.tar.gz" KEYWORDS="~amd64 ~arm64 ~ppc64" S="${WORKDIR}/zfs-${PV%_rc?}" - ZFS_KERNEL_COMPAT="5.10" + ZFS_KERNEL_COMPAT="5.11" fi LICENSE="CDDL MIT debug? ( GPL-2+ )"
Upstream has not tagged 2.0.3 as supporting 5.11, and I assume that this is what ZFS_KERNEL_COMPAT is set based on. See: https://github.com/openzfs/zfs/blob/9f5f86626620c52ad1bebf27d17cece6a28d39a0/META
(In reply to Emily Rowlands from comment #3) > Upstream has not tagged 2.0.3 as supporting 5.11, and I assume that this is > what ZFS_KERNEL_COMPAT is set based on. > > See: > https://github.com/openzfs/zfs/blob/9f5f86626620c52ad1bebf27d17cece6a28d39a0/ > META Actually, please see: https://github.com/openzfs/zfs/releases/tag/zfs-2.0.3
(In reply to Alex Buell from comment #4) > (In reply to Emily Rowlands from comment #3) > > Upstream has not tagged 2.0.3 as supporting 5.11, and I assume that this is > > what ZFS_KERNEL_COMPAT is set based on. > > > > See: > > https://github.com/openzfs/zfs/blob/9f5f86626620c52ad1bebf27d17cece6a28d39a0/ > > META > > Actually, please see: > https://github.com/openzfs/zfs/releases/tag/zfs-2.0.3 This doesn't change what the commit inside the tarball says, but yes, it looks like they're claiming support for 5.11 now.
2.0.4 is out which works fine on 5.11 and has 5.12 compat patches, use that instead, bumping right now, 2.0.3 will go away. btw, in the future if similar situation occurs, you can specify ZFS_KERNEL_COMPAT_OVERRIDE=5.11 as an environment variable and it will allow ebuild to install without editing locally.
2.0.4 is in the tree with proper compat, enjoy.