coccinelle fails to build with Python 3.13.0a1. This report is automated and not very verbose, but we'll try to get back here with details. + /builddir/build/BUILDROOT/coccinelle-1.1.1-23.20230624git0afff7f.fc40.x86_64/usr/lib64/coccinelle/spatch --sp-file /builddir/build/SOURCES/testpy.cocci /builddir/build/SOURCES/test.c init_defs_builtins: /builddir/build/BUILDROOT/coccinelle-1.1.1-23.20230624git0afff7f.fc40.x86_64/usr/lib64/coccinelle/standard.h Py.find_library: unable to find the Python library [/lib64/libpython3.13.so.1.0 returned Cannot resolve _PyObject_NextNotImplemented. ] 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/06546747-coccinelle/ For all our attempts to build coccinelle with Python 3.13, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/package/coccinelle/ 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.
I reported this on the upstream mailing list.
The use of _PyObject_NextNotImplemented actually comes from ocaml-pyml. There is a new version of ocaml-pyml out that drops all support for python 2.7, including this symbol. I will build it and rebuild coccinelle. That should fix this bug. I will do mock builds first to ensure that is the case.
The ocaml-pyml update and coccinelle rebuild are now done in Rawhide. I was not able to build ocaml-pyml for python 3.13 because it BuildRequires python3-ipython, which does not seem to be available yet. However, I did grep over the new ocaml-pyml and coccinelle binary RPM contents for _PyObject_NextNotImplemented, and did not find it, so I think this bug is probably fixed now.
The latest automatic coccinelle rebuild in Copr happened with ocaml-pyml-devel 20220905-5.fc40, which isn't the latest I can see. I will trigger a new build.
Built fine.