Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1966340 - util-linux fails to build with Python 3.10: checking for python3 version... 3.1, libpython not found; not building pylibmount
Summary: util-linux fails to build with Python 3.10: checking for python3 version... 3...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.10
TreeView+ depends on / blocked
 
Reported: 2021-05-31 21:28 UTC by Miro Hrončok
Modified: 2021-06-04 10:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-04 10:46:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github karelzak util-linux issues 1319 0 None open Release tarballs misdetect python 3.10 2021-05-31 21:28:36 UTC

Description Miro Hrončok 2021-05-31 21:28:21 UTC
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.

Comment 1 Karel Zak 2021-06-04 10:46:25 UTC
This is already fixed in the final v2.37 release, already in rawhide as util-linux-2.37-1. Update! :-)


Note You need to log in before you can comment on or make changes to this bug.