#1081473 FTBFS with Python 3.13

Package:
src:libprelude
Source:
src:libprelude
Submitter:
Stefano Rivera
Date:
2025-03-18 21:39:03 UTC
Severity:
normal
Tags:
#1081473#5
Date:
2024-09-11 20:51:24 UTC
From:
To:
This package failed build from source when test-built against a version of
python3-defaults that incudes 3.13 as a supported version.

To reproduce this issue, build against python3-defaults (python3-all-dev etc.)
from Debian experimental.

What's new in Python 3.13:
https://docs.python.org/3.13/whatsnew/3.13.html

Log snippet:
cd bindings/python && python3.13 setup.py build
/<<PKGBUILDDIR>>/bindings/python/setup.py:34: SyntaxWarning: invalid escape sequence '\s'
  return re.split("\s+", s.strip())
In file included from /usr/include/python3.13/weakrefobject.h:39,
                 from /usr/include/python3.13/Python.h:109,
                 from _prelude.cxx:188:
_prelude.cxx: In function ‘SwigPyObject* SWIG_Python_GetSwigThis(PyObject*)’:
/usr/include/python3.13/cpython/weakrefobject.h:63:55: warning: ‘PyObject* PyWeakref_GET_OBJECT(PyObject*)’ is deprecated [-Wdeprecated-declarations]
   63 | #define PyWeakref_GET_OBJECT(ref) PyWeakref_GET_OBJECT(_PyObject_CAST(ref))
      |                                   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
_prelude.cxx:2011:13: note: in expansion of macro ‘PyWeakref_GET_OBJECT’
 2011 |     pyobj = PyWeakref_GET_OBJECT(pyobj);
      |             ^~~~~~~~~~~~~~~~~~~~
/usr/include/python3.13/cpython/weakrefobject.h:45:45: note: declared here
   45 | Py_DEPRECATED(3.13) static inline PyObject* PyWeakref_GET_OBJECT(PyObject *ref_obj)
      |                                             ^~~~~~~~~~~~~~~~~~~~
_prelude.cxx: In function ‘void _cb_python_log(int, const char*)’:
_prelude.cxx:4115:18: error: ‘PyEval_CallObject’ was not declared in this scope; did you mean ‘PyObject_CallObject’?
 4115 |         result = PyEval_CallObject(__prelude_log_func, arglist);
      |                  ^~~~~~~~~~~~~~~~~
      |                  PyObject_CallObject
_prelude.cxx: In function ‘PyObject* PyInit__prelude()’:
_prelude.cxx:22379:26: warning: ‘Py_FileSystemDefaultEncoding’ is deprecated [-Wdeprecated-declarations]
22379 |     PyArg_Parse(o, "et", Py_FileSystemDefaultEncoding, &argv[idx]);
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:95:
/usr/include/python3.13/fileobject.h:22:46: note: declared here
   22 | Py_DEPRECATED(3.12) PyAPI_DATA(const char *) Py_FileSystemDefaultEncoding;
      |                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
_prelude.cxx:986:64: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
  986 | #     define SWIG_PYTHON_INITIALIZE_THREADS  PyEval_InitThreads()
      |                                              ~~~~~~~~~~~~~~~~~~^~
_prelude.cxx:22811:3: note: in expansion of macro ‘SWIG_PYTHON_INITIALIZE_THREADS’
22811 |   SWIG_PYTHON_INITIALIZE_THREADS;
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.13/Python.h:120:
/usr/include/python3.13/ceval.h:114:37: note: declared here
  114 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
      |                                     ^~~~~~~~~~~~~~~~~~
error: command '/usr/bin/aarch64-linux-gnu-g++' failed with exit code 1
make[1]: *** [debian/rules:50: build-python3.13] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:67: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-09-11T14:44:51Z


If required, the full build log is available here (for the next 30 days):
https://debusine.debian.net/artifact/700453/

This bug has been filed at "normal" severity, as we haven't started the
transition to add 3.13 as a supported version, yet. This will be raised to RC
as soon as that happens, hopefully well before trixie.

Thanks,

Stefano

#1081473#10
Date:
2024-09-26 17:11:56 UTC
From:
To:
Dead upstream, NMU-maintained after 2021, low popcon.
Same for its revdeps some of which aren't even in testing.

dak rm -Rn libprelude libpreludedb prelude-correlator prelude-lml prelude-manager prewikka sagan samhain

(unless fixed before this bug becomes RC)

#1081473#19
Date:
2024-12-24 11:59:46 UTC
From:
To:
Hi,

I think I might remember that another RM bug
involving samhain/sagan was dismissed because DSA
uses it on Debian infrastructure itself...

https://dsa.debian.org/ports/hardware-requirements/

#1081473#24
Date:
2024-12-24 13:23:21 UTC
From:
To:
Yes. That was #1082808 and as a result samhain no longer depends on
libprelude. So it's now just

dak rm -Rn libprelude libpreludedb prelude-correlator prelude-lml prelude-manager prewikka

#1081473#29
Date:
2024-12-25 00:30:58 UTC
From:
To:
It would be, if the newer samhain would migrate to testing, but
right now it ftbfs on s390x.

Chris

#1081473#34
Date:
2025-03-18 21:37:30 UTC
From:
To:
I am including a patch for this.