Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815817 - sys-fs/zfs-2.1.1-r2 fails at configuration with Python 3.10 as comparison >=3.4.0 fails
Summary: sys-fs/zfs-2.1.1-r2 fails at configuration with Python 3.10 as comparison >=3...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-02 08:52 UTC by Mattia Rossi
Modified: 2021-12-26 22:35 UTC (History)
4 users (show)

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


Attachments
emerge info (zfs.info,7.47 KB, text/plain)
2021-12-15 22:55 UTC, Brian Dolbec (RETIRED)
Details
emerge log (sys-fs:zfs-2.1.1-r5:20211215-221536.log,440 bytes, text/x-log)
2021-12-15 22:55 UTC, Brian Dolbec (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mattia Rossi 2021-10-02 08:52:39 UTC
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.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-02 15:36:46 UTC
Please do include the full build.log (and presumably config.log) too with emerge --info.
Comment 3 Georgy Yakovlev archtester gentoo-dev 2021-10-05 18:51:44 UTC
we already have new python deps in 9999, so it may need a backport
Comment 4 Georgy Yakovlev archtester gentoo-dev 2021-10-06 22:30:39 UTC
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
Comment 5 Brian Dolbec (RETIRED) gentoo-dev 2021-12-15 22:55:28 UTC
Created attachment 759258 [details]
emerge info
Comment 6 Brian Dolbec (RETIRED) gentoo-dev 2021-12-15 22:55:59 UTC
Created attachment 759259 [details]
emerge log
Comment 7 Brian Dolbec (RETIRED) gentoo-dev 2021-12-15 22:57:26 UTC
I am getting the same error.  It looks like autoconf is doing a text comparison instead of a numeric one on the seperate components.
Comment 8 Brian Dolbec (RETIRED) gentoo-dev 2021-12-15 23:06:48 UTC
I can confirm that the command line PYTHON_TARGETS override works for me as well.
Comment 9 Larry the Git Cow gentoo-dev 2021-12-16 02:51:31 UTC
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(+)
Comment 10 Georgy Yakovlev archtester gentoo-dev 2021-12-23 22:29:58 UTC
2.0.7 added which also contains the fix for USE=python
Comment 11 Larry the Git Cow gentoo-dev 2021-12-26 22:35:36 UTC
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(-)