zfs fails to build with Python 3.10 enabled as the comparison with Python >= 3.4.0 fails in the configuration step. It works with Python 3.9.x Workaround for those who have PYTHON_TARGETS="python3_10": PYTHON_TARGETS="python3_9" emerge sys-fs/zfs switching order of python via "eselect python set" does not fix the issue.
Please do include the full build.log (and presumably config.log) too with emerge --info.
we need this: https://github.com/openzfs/zfs/commit/08cd0717359b1a18693e3c8e6d6e5a2819b35a48
we already have new python deps in 9999, so it may need a backport
actually it's https://github.com/openzfs/zfs/issues/12045 and mentioned patch may not fix the issue. we really need to know autoconf version your system uses, so please upload build log and emerge --info
Created attachment 759258 [details] emerge info
Created attachment 759259 [details] emerge log
I am getting the same error. It looks like autoconf is doing a text comparison instead of a numeric one on the seperate components.
I can confirm that the command line PYTHON_TARGETS override works for me as well.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52257c6d64aa3817575311016151e29ca46be0b9 commit 52257c6d64aa3817575311016151e29ca46be0b9 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2021-12-16 02:29:05 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2021-12-16 02:51:03 +0000 sys-fs/zfs: add 2.1.2 Bug: https://bugs.gentoo.org/815817 Closes: https://bugs.gentoo.org/820278 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> sys-fs/zfs/Manifest | 2 + sys-fs/zfs/files/2.1.2-openrc-vendor.patch | 42 ++++ sys-fs/zfs/files/2.1.2-scrub-timers.patch | 147 ++++++++++++++ sys-fs/zfs/zfs-2.1.2.ebuild | 303 +++++++++++++++++++++++++++++ 4 files changed, 494 insertions(+)
2.0.7 added which also contains the fix for USE=python
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=75a131e7d043e3e3ff0e15aa2038ebdf47997dc3 commit 75a131e7d043e3e3ff0e15aa2038ebdf47997dc3 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2021-12-26 22:30:57 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2021-12-26 22:35:03 +0000 sys-fs/zfs: drop 2.0.6-r1 Bug: https://bugs.gentoo.org/820278 Closes: https://bugs.gentoo.org/815817 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> sys-fs/zfs/Manifest | 2 - sys-fs/zfs/files/2.0.4-scrub-timers.patch | 97 ---------- sys-fs/zfs/zfs-2.0.6-r1.ebuild | 302 ------------------------------ 3 files changed, 401 deletions(-)