Bug 2252055

Summary: python-wxpython4 fails to build with Python 3.13: error: implicit declaration of function ‘_PyGC_FINALIZED’, ‘_PyDict_SetItem_KnownHash’, ‘_PyGen_SetStopIterationValue’
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-wxpython4Assignee: Scott Talbert <swt>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ksurma, mhroncok, swt
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: 2023-12-01 03:13:22 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: 2244836    

Description Karolina Surma 2023-11-29 09:08:18 UTC
python-wxpython4 fails to build with Python 3.13.0a2.

wx/svg/_nanosvg.c: In function ‘__pyx_tp_dealloc_2wx_3svg_8_nanosvg_SVGimageBase’:
wx/svg/_nanosvg.c:12663:134: error: implicit declaration of function ‘_PyGC_FINALIZED’ [-Werror=implicit-function-declaration]
12663 |   if (unlikely(PyType_HasFeature(Py_TYPE(o), Py_TPFLAGS_HAVE_FINALIZE) && Py_TYPE(o)->tp_finalize) && (!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))) {
      |                                                                                                                                      ^~~~~~~~~~~~~~~
wx/svg/_nanosvg.c: In function ‘__pyx_pymod_exec__nanosvg’:
wx/svg/_nanosvg.c:1784:38: error: implicit declaration of function ‘_PyDict_SetItem_KnownHash’; did you mean ‘_PyDict_GetItem_KnownHash’? [-Werror=implicit-function-declaration]
 1784 |     (likely(PyDict_CheckExact(ns)) ? _PyDict_SetItem_KnownHash(ns, name, value, ((PyASCIIObject *) name)->hash) : PyObject_SetItem(ns, name, value))
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
wx/svg/_nanosvg.c: In function ‘__Pyx_PyGen_Send’:
wx/svg/_nanosvg.c:21285:13: error: implicit declaration of function ‘_PyGen_SetStopIterationValue’; did you mean ‘__Pyx_PyGen__FetchStopIterationValue’? [-Werror=implicit-function-declaration]
21285 |             _PyGen_SetStopIterationValue(result);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |             __Pyx_PyGen__FetchStopIterationValue
https://docs.python.org/3.13/whatsnew/3.13.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.13/fedora-rawhide-x86_64/06692267-python-wxpython4/

For all our attempts to build python-wxpython4 with Python 3.13, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/python-wxpython4/

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.13:
https://copr.fedorainfracloud.org/coprs/g/python/python3.13/

Let us know here if you have any questions.

Python 3.13 is planned to be included in Fedora 41.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.13.
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.