Bug 2135406
Summary: | Packages using /usr/bin/g-ir-scanner will fail to build without distutils | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | gobject-introspection | Assignee: | Kalev Lember <klember> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | amigadave, anaconda-maint-list, dcbw, fmuellner, i18n-bugs, klember, otaylor, pviktori, raveit65.sun, redhat-bugzilla, tbzatek, tfujiwar, thrnciar, vtrefny, walters, yaneti |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | gobject-introspection-1.74.0-2.fc38 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-06-07 11:06:49 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, 2154816, 2154819, 2154827 |
Description
Miro Hrončok
2022-10-17 14:35:44 UTC
gobject-introspection itself builds fine, presumably because it has no %check. This issue affects the "pluma" RPM package during build-time. g-ir-scanner --compiler=unix option does not help to resolve this issue. 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.12: https://copr.fedorainfracloud.org/coprs/python3.12/ Please use this copr for testing rather than https://copr.fedorainfracloud.org/coprs/g/python/python-without-distutils/ If your package is listed in [0], you may workaround this issue by BuildRequiring python-setuptools, note that adding such BuildRequires might however hide some transitive dependency problem, if the distutils import comes from a dependency. Cooperation with upstream is recommended. Additional context [1]. [0] https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/message/6BHNAWHE7M5VY3YQVJLOYHLY4M7KIFFN/ [1] https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/N6ITYHLRWIDNYNXGPYG2ZHF3ZLQWZN7L/ https://docs.python.org/3.12/whatsnew/3.12.html For all our attempts to build {PACKAGE} with Python 3.12, see: https://copr.fedorainfracloud.org/coprs/python3.12/package/{PACKAGE}/ Let us know here if you have any questions. Python 3.12 is planned to be included in Fedora 39. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.12. 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. Would it make sense to add 'Requires: python3-setuptools' for now to gobject-introspection-devel as the python scripts shipped there use distutils? I'd probably limit that to: Requires: (python3-setuptools if python3 >= 3.12) But yes, that should unblock a lot of packages. OK, should be fixed in https://src.fedoraproject.org/rpms/gobject-introspection/c/0bf1bb88067ef99235b81a39f2662c4df3f09609?branch=rawhide Thank you. *** Bug 2154829 has been marked as a duplicate of this bug. *** setuptools internally ends up imports `inspect`, which needs `ast`. When giscanner/ is in PYTHONPATH (as it is in tests), it provides its own top-level `ast.py`, overriding the standard library with an incompatible module. Tests will fail. Upstream bug: https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/429 Maybe we can solve this properly upstream. I can also provide a crude patch to unblock the Python 3.12 rebuild in Fedora, if this happens with the Python/setuptools we end up with. If broken, let's keep this open. There is already bug 2208966 open for this (as the test wuite was enabled after this change). |