Description: Build with swig 4.5.0 Without this patch, the package FTBFS with swig 4.5.0. This is due to the removal of the Python 2 compatibility macros in version 4.5.0. [1] According to the SWIG authors, these macros were retained in the generated code (pyhead.swg) solely for user typemaps. All typemap using these macros are updated to call the Python 3 C API directly. . [1] https://github.com/swig/swig/commit/79f7a2b7cb7ddc256eba09c8770133148025171d Author: Rafael Laboissière Bug-Debian: https://bugs.debian.org/1144962 Forwarded: not-needed Last-Update: 2026-08-30 --- qpid-proton-0.37.0.orig/python/cproton.i +++ qpid-proton-0.37.0/python/cproton.i @@ -474,7 +474,7 @@ int pn_ssl_get_cert_fingerprint(pn_ssl_t PyObject *pytracer = (PyObject *) pn_record_get(pn_transport_attachments(transport), PNI_PYTRACER); SWIG_PYTHON_THREAD_BEGIN_BLOCK; PyObject *pytrans = SWIG_NewPointerObj(transport, SWIGTYPE_p_pn_transport_t, 0); - PyObject *pymsg = PyString_FromString(message); + PyObject *pymsg = PyUnicode_FromString(message); PyObject *result = PyObject_CallFunctionObjArgs(pytracer, pytrans, pymsg, NULL); if (!result) { PyErr_PrintEx(true);