Bug 2155013
Summary: | hivex fails to build with Python 3.12: ModuleNotFoundError: No module named 'distutils' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | hivex | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | mhroncok, rjones, thrnciar |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | hivex-1.3.21-12.fc38 hivex-1.3.23-1.fc38 hivex-1.3.23-1.fc37 hivex-1.3.23-1.fc36 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-01-18 13:57:52 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: | 2135404 |
Description
Tomáš Hrnčiar
2022-12-19 18:32:02 UTC
FEDORA-2023-19fed252af has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-19fed252af FEDORA-2023-19fed252af has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. There is one more usage of distutils in configure.ac. 358 PYTHON_BLDLIBRARY=`$PYTHON -c "import distutils.sysconfig; \ 359 print (distutils.sysconfig.get_config_var('BLDLIBRARY'))"` Because of this, HAVE_PYCAPSULE_NEW is undefined and the package fails with: Traceback (most recent call last): File "/builddir/build/BUILD/hivex-1.3.21/python/./t/010-import.py", line 18, in <module> import hivex File "/builddir/build/BUILD/hivex-1.3.21/python/hivex/__init__.py", line 37, in <module> import libhivexmod ImportError: /builddir/build/BUILD/hivex-1.3.21/python/.libs/libhivexmod.cpython-312-x86_64-linux-gnu.so: undefined symbol: PyCObject_FromVoidPtrAndDesc Note that the upstream sources are correct: https://github.com/libguestfs/hivex/blob/master/configure.ac However what is happening is that my backport of the upstream fix doesn't cover earlier changes to configure.ac which happened since the last upstream release (1.3.21). I think I'll just do an upstream release and drop the need for downstream patching. FEDORA-2023-406cac8888 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-406cac8888 FEDORA-2023-406cac8888 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2023-9e3b773c50 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-9e3b773c50 FEDORA-2023-78272ecc63 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-78272ecc63 FEDORA-2023-78272ecc63 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-78272ecc63` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-78272ecc63 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-9e3b773c50 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-9e3b773c50` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-9e3b773c50 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2023-9e3b773c50 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2023-78272ecc63 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report. |