The spatch executable, version 1.1.1, fails to run on Fedora 37 $ spatch --recursive-includes -sp_file /tmp/tmpw4wrzv0v.cocci drivers/clk/clk-apple-nco.c init_defs_builtins: /usr/local/bin/../lib/coccinelle/standard.h Py.find_library: unable to find the Python library [/lib64/libpython3.11.so.1.0 returned Cannot resolve _Py_fopen. ] It seems to be related to https://bugzilla.redhat.com/show_bug.cgi?id=1912931 but affects Python 3.11
I don't think I'm able to reproduce this in a simple test: $ spatch --recursive-includes -sp_file /dev/null /var/tmp/test.c init_defs_builtins: /usr/lib64/coccinelle/standard.h unexpected code before the first rule: [0; (69, ("", [0], [0]))] What version of python3 & python3-libs is installed?
I changed the RPM to use the forge macros so there's a new build for Rawhide and F37. Please try those out: https://koji.fedoraproject.org/koji/taskinfo?taskID=93739751 https://koji.fedoraproject.org/koji/taskinfo?taskID=93739766
I didn't notice but I had an earlier build installed in /usr/local/ which was the buggy one. Removing it and actually using the one from the package works just fine. Sorry for the noise.