Bug 1966340
| Summary: | util-linux fails to build with Python 3.10: checking for python3 version... 3.1, libpython not found; not building pylibmount | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | util-linux | Assignee: | Karel Zak <kzak> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | jonathan, kzak, mhroncok, thrnciar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-06-04 10:46:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1890881 | ||
This is already fixed in the final v2.37 release, already in rawhide as util-linux-2.37-1. Update! :-) |
Since 2.37, util-linux fails to build with Python 3.10.0b1: checking whether python3 version is >= 3... yes checking for python3 version... 3.1 checking for python3 platform... linux checking for python3 script directory... ${prefix}/lib/python3.10/site-packages checking for python3 extension module directory... ${exec_prefix}/lib64/python3.10/site-packages checking for PYTHON... no configure: WARNING: libpython not found; not building pylibmount ... RPM build errors: Directory not found: /builddir/build/BUILDROOT/util-linux-2.37-0.1.fc35.x86_64/usr/lib64/python3.10/site-packages/libmount This is caused by the following code in aclocal.m4/configure: am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` This reports 3.1 on python 3.10. Use '{}.{}'.format(*sys.version_info) or similar instead. For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02216398-util-linux/ For all our attempts to build util-linux with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/util-linux/ Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/ Let us know here if you have any questions. Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.