Source: babeltrace2
Version: 2.1.2-1
Severity: serious
Tags: ftbfs sid forky
Justification: Policy 4.9
User: [email protected]
Usertags: swig-4.5.0
Dear Maintainer,
The babeltrace2 package FTBFS with swig 4.5.0, which is currently in unstable.
An excerpt of the build log is shown below.
This is due to the removal of the Python 2 compatibility macros in version
4.5.0. According to the SWIG authors, these macros were retained in the
generated code (pyhead.swg) solely for user typemaps. Any typemap using these
macros must be updated to call the Python 3 C API directly.
Best,
Rafael Laboissière
##### Build log excerpt
x86_64-linux-gnu-g++ -std=c++11 -fPIC -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread
-fvisibility=hidden -fvisibility-inlines-hidden -pthread -I/usr/includ
e/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/sysprof-6 -pthread -Wall -Wextra -Wmissing-declarations
-Wnull-dereference -Wundef -Wredundant-decls -Wshadow
-Wsuggest-attribute=format -Ww
rite-strings -Wformat=2 -Wstrict-aliasing -Wmissing-noreturn -Winit-self
-Wduplicated-cond -Wduplicated-branches -Wlogical-op -Wsuggest-override
-Wno-sign-compare -Wno-cast-function-type -Wno-maybe-uninitialized
-g -O2 -ffile-prefix-map=<<BUILD-DIR>>/babeltrace2-2.1.2=.
-fstack-protector-strong -fstack-clash-protection -Wformat
-Werror=format-security -fcf-protection -Wno-shadow -Wno-null-derefer
ence -Wno-deprecated-declarations -Wno-redundant-decls
-Wno-missing-field-initializers -Wno-unused-parameter -I../../../../include
-I../../../../src -I../../../../src -include common/config.h -Wdate-time -D_FORT
IFY_SOURCE=2 -I./bt2 -I/usr/include/python3.14 -c bt2/native_bt.cpp -o
build/temp.linux-x86_64-cpython-314/bt2/native_bt.o
In file included from bt2/native_bt.cpp:4039:
bt2/native_bt_error.i.hpp: In function ‘PyObject*
bt_bt2_format_bt_error_cause(const bt_error_cause*)’:
bt2/native_bt_error.i.hpp:22:26: error: ‘PyString_FromString’ was not declared
in this scope; did you mean ‘PyLong_FromString’?
22 | py_error_cause_str = PyString_FromString(error_cause_str);
| ^~~~~~~~~~~~~~~~~~~
| PyLong_FromString
bt2/native_bt_error.i.hpp: In function ‘PyObject* bt_bt2_format_bt_error(const
bt_error*)’:
bt2/native_bt_error.i.hpp:38:20: error: ‘PyString_FromString’ was not declared
in this scope; did you mean ‘PyLong_FromString’?
38 | py_error_str = PyString_FromString(error_str);
| ^~~~~~~~~~~~~~~~~~~
| PyLong_FromString
bt2/native_bt.cpp: In function ‘PyObject* _wrap_plugin_get_version(PyObject*,
PyObject*)’:
bt2/native_bt.cpp:20695:55: error: ‘SWIG_Python_str_FromChar’ was not declared
in this scope
20695 | resultobj = SWIG_Python_AppendOutput(resultobj,
SWIG_Python_str_FromChar(*arg5), 0);
|
^~~~~~~~~~~~~~~~~~~~~~~~
bt2/native_bt.cpp: In function ‘PyObject*
_wrap_bt2_plugin_get_version(PyObject*, PyObject*)’:
bt2/native_bt.cpp:21175:55: error: ‘SWIG_Python_str_FromChar’ was not declared
in this scope
21175 | resultobj = SWIG_Python_AppendOutput(resultobj,
SWIG_Python_str_FromChar(*arg5), 0);
|
^~~~~~~~~~~~~~~~~~~~~~~~
bt2/native_bt.cpp: In function ‘PyObject*
_wrap_trace_borrow_environment_entry_by_index_const(PyObject*, PyObject*)’:
bt2/native_bt.cpp:24548:55: error: ‘SWIG_Python_str_FromChar’ was not declared
in this scope
24548 | resultobj = SWIG_Python_AppendOutput(resultobj,
SWIG_Python_str_FromChar(*arg3), 1);
|
^~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-g++' failed with exit code 1
make[5]: *** [Makefile:741: build-python-bindings.stamp] Error 1