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 1890878
Summary: | libxml2 fails to build with Python 3.10: SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | libxml2 | Assignee: | Igor Raits <igor.raits> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | fedora, igor.raits, mhroncok, thrnciar, veillard, vstinner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libxml2-2.9.10-9.fc34 libxml2-2.9.10-9.eln105 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-11-12 11:54:15 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 |
Description
Tomáš Hrnčiar
2020-10-23 07:49:36 UTC
https://docs.python.org/3.10/whatsnew/3.10.html#id2 The PY_SSIZE_T_CLEAN macro must now be defined to use PyArg_ParseTuple() and Py_BuildValue() formats which use #: es#, et#, s#, u#, y#, z#, U# and Z#. See Parsing arguments and building values and the PEP 353. https://docs.python.org/3.10/c-api/arg.html#arg-parsing https://www.python.org/dev/peps/pep-0353 https://bugs.python.org/issue40943 I reported the issue to upstream: https://gitlab.gnome.org/GNOME/libxml2/-/issues/203 And I proposed a fix: https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/87 I proposed to https://src.fedoraproject.org/rpms/libxml2/pull-request/10 to backport my fix and fix the package (always regenerate the 3 Python generated files). FEDORA-2020-576ed43594 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2020-160ee73cea has been pushed to the Fedora ELN stable repository. If problem still persists, please make note of it in this bug report. > I proposed to https://src.fedoraproject.org/rpms/libxml2/pull-request/10 to backport my fix and fix the package (always regenerate the 3 Python generated files). FYI my PR has been merged upstream: * https://gitlab.gnome.org/GNOME/libxml2/-/commit/f42a0524c693a6d52e95a37c9cf04df1be48262c * https://gitlab.gnome.org/GNOME/libxml2/-/commit/ac5e99911a45ad6f57a6aa7b33fd2de9da72aa72 |