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 1912931
Summary: | coccinelle fails to build with Python 3.10: Cannot resolve _Py_fopen | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | coccinelle | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | mhroncok, rjones, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-06-07 07:33:10 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
2021-01-05 16:02:21 UTC
coccinelle-d0fd4c7dfa70763870914eedee7022fa35f700e2/bundles/pyml/pyml-current/pyml_stubs.c if (version_major >= 3) { Python__Py_fopen = resolve("_Py_fopen"); } Hmm, I thought I fixed the Python 3.10 things (bug 1896393). Or is Python 3.10 still in development? Anyway this fix is a bit beyond me. Replacing the call with _Py_wfopen appears like it will work, but what I'm not sure is why on earth the code is calling these internal python functions in the first place instead of using regular fopen. Indeed for Python 2 it *was* using regular fopen. I will ask upstream. Not in the archive yet but should appear here: https://systeme.lip6.fr/pipermail/cocci/2021-January/thread.html > Or is Python 3.10 still in development? Yes, it is. See https://fedoraproject.org/wiki/Changes/Python3.10#Important_dates_and_plan This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle. Changing version to 34. This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla. The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide. You can either build the package in the side tag, with: $ fedpkg build --target=f35-python Or you can the build and we will eventually build it for you. Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away. Thanks. See also https://fedoraproject.org/wiki/Changes/Python3.10 If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/ This is fixed upstream, but we might have to update coccinelle or backport the upstream patch. Mailing list thread: https://lore.kernel.org/cocci/ow4mtxjyqhx.fsf@inria.fr/ I've now actually checked and it seems cocci was rebuilt successfully: https://koji.fedoraproject.org/koji/buildinfo?buildID=1759679 against: DEBUG util.py:446: python3-devel x86_64 3.10.0~b2-3.fc35 build 205 k so there should be nothing to do here. |