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.
This is already fixed in the final v2.37 release, already in rawhide as util-linux-2.37-1. Update! :-)