freecad FTBFS with Python 3.11 as default version

Source: freecad
Version: 0.20.1+dfsg1-2
Severity: serious
Tags: ftbfs

buildd.debian.org/status/fetch.php?pkg=freecad&arch=amd64&ver=0.20.1%2Bdfsg1-2%2Bb2&stamp=1673131196&raw=0


/<<PKGBUILDDIR>>/src/Base/ConsoleObserver.cpp: In member function ‘std::stringstream& Base::LogLevel::prefix(std::stringstream&, const char*, int)’:
/<<PKGBUILDDIR>>/src/Base/ConsoleObserver.cpp:269:41: error: invalid use of incomplete type ‘PyFrameObject’ {aka ‘struct _frame’}
269 | src = PyUnicode_AsUTF8(frame->f_code->co_filename);
| ^~
In file included from /usr/include/python3.11/Python.h:42,
from /<<PKGBUILDDIR>>/src/Base/ConsoleObserver.cpp:31:
/usr/include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject’ {aka ‘struct _frame’}
22 | typedef struct _frame PyFrameObject;
| ^~~~~~
make[4]: *** [src/Base/CMakeFiles/FreeCADBase.dir/build.make:388: src/Base/CMakeFiles/FreeCADBase.dir/ConsoleObserver.cpp.o] Error 1

Read more here: Source link