Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615862 - sys-fs/zfs-kmod-0.6.5.9 refuses to build for 4.10 kernel
Summary: sys-fs/zfs-kmod-0.6.5.9 refuses to build for 4.10 kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Yao (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-17 15:43 UTC by Marcel Schilling
Modified: 2017-04-25 16:25 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge.info,5.40 KB, text/plain)
2017-04-17 15:43 UTC, Marcel Schilling
Details
build log (build.log,1.64 KB, text/x-log)
2017-04-17 15:43 UTC, Marcel Schilling
Details
sys-fs/zfs-kmod-0.6.5.9.ebuild.diff (zfs-kmod-0.6.5.9.ebuild.diff,168 bytes, patch)
2017-04-17 16:12 UTC, Marcel Schilling
Details | Diff
sys-kernel/spl-0.6.5.9.ebuild.diff (spl-0.6.5.9.ebuild.diff,168 bytes, patch)
2017-04-17 16:14 UTC, Marcel Schilling
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Schilling 2017-04-17 15:43:08 UTC
Created attachment 470274 [details]
emerge --info

I cannot upgrade from 4.9 kernel to 4.10 as the latest zfs in gentoo doesn't support newer kernels.

https://github.com/zfsonlinux/zfs/releases/tag/zfs-0.6.5.9 list 4.10 kernel as supported, still emerge -v1 zfs-kmod returns:

 * ERROR: sys-fs/zfs-kmod-0.6.5.9::gentoo failed (setup phase):
 *   Linux 4.9 is the latest supported version.
 *
 * Call stack:
 *                 ebuild.sh, line 115:  Called pkg_setup
 *   zfs-kmod-0.6.5.9.ebuild, line  67:  Called die
 * The specific snippet of code:
 *      [ ${PV} != "9999" ] && \
 *              { kernel_is le 4 9 || die "Linux 4.9 is the latest supported version."; }

I believe this was caused by https://github.com/zfsonlinux/zfs/issues/5972.

Thus, a fix should be trivial.

I can try to adjust the ebuild and test in a local overlay but I don't know how to officially suggest the changes.
Comment 1 Marcel Schilling 2017-04-17 15:43:55 UTC
Created attachment 470276 [details]
build log
Comment 2 Marcel Schilling 2017-04-17 16:12:11 UTC
Created attachment 470280 [details, diff]
sys-fs/zfs-kmod-0.6.5.9.ebuild.diff

suggested fix
Comment 3 Marcel Schilling 2017-04-17 16:14:19 UTC
Created attachment 470282 [details, diff]
sys-kernel/spl-0.6.5.9.ebuild.diff

suggested fix for same problem in sys-kernel/spl
Comment 4 Marcel Schilling 2017-04-17 16:28:42 UTC
I added the sys-fs/zfs-kmod-0.6.5.9 and sys-kernel/spl-0.6.5.9 ebuilds and patched them as attached. With these changes, I was successfull in emerging a 4.10.10 kernel with zfs support.
As far as I can tell, everything seems to work just fine.
Comment 5 Jonathan Vasquez (RETIRED) gentoo-dev 2017-04-25 02:28:29 UTC
@ryao pushed the 4.10 update fix to zfs-kmod 2 days ago. Please sync your tree and try again :). Thanks for reporting. Resolving.
Comment 6 Marcel Schilling 2017-04-25 16:25:41 UTC
I can confirm that it works for me now. Thx.