Subject: bug#77970: Pkg profanity no longer builds

From: Frank Pursel <[email-masked]>
Date: Mon, 21 Apr 2025 11:19:53 -0700

Following the update to v0.15.0 profanity no longer builds on x86_64.

Here is some hopefully relevant error messaging:

src/plugins/python_plugins.c: In function ‘python_env_init’:
src/plugins/python_plugins.c:92:91: error: ‘_Py_XDECREF’ undeclared (first use in this function); did you mean ‘Py_XDECREF’?
   92 |     loaded_modules = g_hash_table_new_full(g_str_hash, g_str_equal, free, (GDestroyNotify)_Py_XDECREF);
      |                                                                                           ^~~~~~~~~~~
      |                                                                                           Py_XDECREF
src/plugins/python_plugins.c:92:91: note: each undeclared identifier is reported only once for each function it appears in
src/plugins/python_plugins.c: In function ‘python_init_hook’:
src/plugins/python_plugins.c:185:13: warning: implicit declaration of function ‘_Py_XDECREF’; did you mean ‘Py_XDECREF’? [-Wimplicit-function-declaration]
  185 |             _Py_XDECREF(p_function);
      |             ^~~~~~~~~~~
      |             Py_XDECREF
make[1]: *** [Makefile:2085: src/plugins/python_plugins.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/tmp/guix-build-profanity-0.15.0.drv-0/profanity-0.15.0'
make: *** [Makefile:1314: all] Error 2
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "make" arguments: ("-j" "8" "gtk_update_icon_cache=true") exit-status: 2 term-signal: #f stop-signal: #f> 
phase `build' failed after 24.4 seconds
command "make" "-j" "8" "gtk_update_icon_cache=true" failed with status 2
build process 10 exited with status 256