Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 662228 - sys-fs/zfs-0.7.9 requires removed kernel 4.16
Summary: sys-fs/zfs-0.7.9 requires removed kernel 4.16
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Richard Yao (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-27 04:36 UTC by strites
Modified: 2018-07-27 19:33 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 strites 2018-07-27 04:36:03 UTC
Kernel branch 4.16 was removed for EOL
Last stable version of zfs ebuild (0.7.9) supports until kernel 4.16

This makes zfs users needing to downgrade kernel to 4.14 if they want an updated Gentoo.

9999 packages are more stringent in kernel version requirements.

spl and zfs are stated to support until kernel 4.17, but I didn't test that (and am not able to test now because the only machine where I use zfs is a remote headless one)

I see 2 solutions

1) delay/undo cancellation of kernel 4.16
Or
2) support of zfs package to kernel 4.17

Thank you

Reproducible: Always
Comment 1 Franz Trischberger 2018-07-27 07:49:47 UTC
I don't see any issues with the Gentoo package. I have only installed (and unkeyworded) gentoo-sources-4.17.x-versions. And emerge won't downgrade my kernel:

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N     ] sys-fs/zfs-0.7.9::gentoo  USE="rootfs -custom-cflags -debug (-kernel-builtin) -static-libs -test-suite" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 6.396 KiB
[ebuild  N     ]  sys-fs/zfs-kmod-0.7.9::gentoo  USE="rootfs -custom-cflags -debug" 0 KiB
[ebuild  N     ]   sys-kernel/spl-0.7.9::gentoo  USE="-custom-cflags -debug" 539 KiB
[ebuild  N     ]    virtual/linux-sources-3::gentoo  USE="-firmware" 0 KiB

Total: 4 packages (4 new), Size of downloads: 6.934 KiB

Could it be that you initially used a zfs-kmod-0.7.8 and bumped that on your own? Or did you use an overlay for 0.7.9?
If so just re-emerging zfs-kmod and zfs from ::gentoo repository should fix your issue as it replaces the offending package in your pkg-db.
Comment 2 strites 2018-07-27 14:47:29 UTC
please try to merge on that kernel... it will abort...
Comment 3 strites 2018-07-27 14:51:10 UTC
# emerge -va zfs

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-kernel/spl-0.7.9::gentoo  USE="-custom-cflags -debug" 0 KiB
[ebuild  N     ] sys-fs/zfs-kmod-0.7.9::gentoo  USE="rootfs -custom-cflags -debug" 0 KiB
[ebuild  N     ] sys-fs/zfs-0.7.9::gentoo  USE="rootfs -custom-cflags -debug (-kernel-builtin) -static-libs -test-suite" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5" 0 KiB

Total: 3 packages (3 new), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 3) sys-kernel/spl-0.7.9::gentoo
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log
 * spl-0.7.9.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                               [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/4.17.10-gentoo/build
 * Found sources for kernel version:
 *     4.17.10-gentoo
 * ERROR: sys-kernel/spl-0.7.9::gentoo failed (setup phase):
 *   Linux 4.16 is the latest supported version.
 * 
 * Call stack:
 *          ebuild.sh, line 124:  Called pkg_setup
 *   spl-0.7.9.ebuild, line  59:  Called die
 * The specific snippet of code:
 *      [ ${PV} != "9999" ] && \
 *              { kernel_is le 4 16 || die "Linux 4.16 is the latest supported version."; }
 * 
 * If you need support, post the output of `emerge --info '=sys-kernel/spl-0.7.9::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/spl-0.7.9::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-kernel/spl-0.7.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/spl-0.7.9/temp/die.env'.
 * Working directory: '/var/tmp/portage/sys-kernel/spl-0.7.9/homedir'
 * S: '/var/tmp/portage/sys-kernel/spl-0.7.9/work/spl-0.7.9'

>>> Failed to emerge sys-kernel/spl-0.7.9, Log file:

>>>  '/var/tmp/portage/sys-kernel/spl-0.7.9/temp/build.log'

 * Messages for package sys-kernel/spl-0.7.9:

 * ERROR: sys-kernel/spl-0.7.9::gentoo failed (setup phase):
 *   Linux 4.16 is the latest supported version.
 * 
 * Call stack:
 *          ebuild.sh, line 124:  Called pkg_setup
 *   spl-0.7.9.ebuild, line  59:  Called die
 * The specific snippet of code:
 *      [ ${PV} != "9999" ] && \
 *              { kernel_is le 4 16 || die "Linux 4.16 is the latest supported version."; }
 * 
 * If you need support, post the output of `emerge --info '=sys-kernel/spl-0.7.9::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-kernel/spl-0.7.9::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-kernel/spl-0.7.9/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-kernel/spl-0.7.9/temp/die.env'.
 * Working directory: '/var/tmp/portage/sys-kernel/spl-0.7.9/homedir'
 * S: '/var/tmp/portage/sys-kernel/spl-0.7.9/work/spl-0.7.9'
Comment 4 Georgy Yakovlev archtester gentoo-dev 2018-07-27 18:13:02 UTC
zfs-0.7.9 is not compatible with linux 4.17 so it has a reason for checking kernel version and dying.

you can try to modify ebuild, but all warranty is void, including warranty for you data =)

we are waiting for zfsonlinux to release another version which should be compatible. hopefully it'll be 0.7.10

here's the changes queued for 0.7.10
https://github.com/zfsonlinux/zfs/pulls?q=is%3Apr+project%3Azfsonlinux%2Fzfs%2F18+is%3Aclosed


I'm in the similar situation myself, stuck with 4.16 kernel, because my hardware does not properly work with 4.14.

you can keep updating with `--exclude gentoo-sources` emerge option, it will skip touching kernel if you still have 4.16 installed.

4.16 is EOL and I doubt kernel team will bring it back and zfs works just fine with LTS 4.14
Comment 5 Georgy Yakovlev archtester gentoo-dev 2018-07-27 18:38:43 UTC
after looking closer it seems 4.17 is supported.
https://github.com/zfsonlinux/zfs/issues/7730

release notes were updated 3 days ago.

I'll try to push a change with the ebuild allowing 4.17.
Comment 6 Larry the Git Cow gentoo-dev 2018-07-27 19:33:03 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49f3b46709fa2c5958ef07322c164e5dfb632989

commit 49f3b46709fa2c5958ef07322c164e5dfb632989
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2018-07-27 18:59:22 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2018-07-27 19:32:34 +0000

    sys-kernel/spl: bump 0.7.9 compat to linux 4.17
    
    Closes: https://bugs.gentoo.org/662228
    Package-Manager: Portage-2.3.43, Repoman-2.3.10

 sys-kernel/spl/spl-0.7.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf6b385cf59e560f89faedc1544dcf0814312142

commit cf6b385cf59e560f89faedc1544dcf0814312142
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2018-07-27 18:57:41 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2018-07-27 19:32:32 +0000

    sys-fs/zfs-kmod: bump 0.7.9 compat to linux 4.17
    
    Closes: https://bugs.gentoo.org/662228
    Package-Manager: Portage-2.3.43, Repoman-2.3.10

 sys-fs/zfs-kmod/zfs-kmod-0.7.9.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)