Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 770832 - =sys-fs/zfs-kmod-2.0.3 should allow builds kernel 5.11
Summary: =sys-fs/zfs-kmod-2.0.3 should allow builds kernel 5.11
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-15 19:54 UTC by Matthew Smith
Modified: 2021-03-09 21:26 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Smith gentoo-dev 2021-02-15 19:54:51 UTC
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".
Comment 1 Matthew Smith gentoo-dev 2021-02-15 19:56:26 UTC
I have tested this locally, seems to build and work fine.
Comment 2 Alex Buell 2021-02-16 10:38:54 UTC
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+ )"
Comment 3 Emily Rowlands 2021-02-16 10:40:45 UTC
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
Comment 4 Alex Buell 2021-02-16 14:21:12 UTC
(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
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-19 22:51:48 UTC
(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.
Comment 6 Georgy Yakovlev archtester gentoo-dev 2021-03-09 20:03:47 UTC
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.
Comment 7 Georgy Yakovlev archtester gentoo-dev 2021-03-09 21:26:01 UTC
2.0.4 is in the tree with proper compat, enjoy.