Dear Debian Qt/KDE team,

I was about to update freecad for which there is a new upstream version but ran 
into issues with the build deps

$ LANG=C sudo debfoster -u libpyside2-dev libqt5svg5-dev libqt5xmlpatterns5-dev 
libqt5x11extras5-dev libshiboken2-dev libspnav-dev libzipios++-dev occt-draw 
pybind11-dev pyside2-tools python3-pyside2.qtcore python3-pyside2.qtgui 
python3-pyside2.qtsvg python3-pyside2.qtuitools python3-pyside2.qtwidgets 
python3-pyside2.qtxml

...

The following packages have unmet dependencies:
 libshiboken2-py3-5.15 : Depends: python3 (< 3.11) but 3.11.1-1 is to be 
installed
 python3-pyside2.qtcore : Depends: python3 (< 3.11) but 3.11.1-1 is to be 
installed
 python3-pyside2.qtgui : Depends: python3 (< 3.11) but 3.11.1-1 is to be 
installed
 python3-pyside2.qtsvg : Depends: python3 (< 3.11) but 3.11.1-1 is to be 
installed
 python3-pyside2.qtuitools : Depends: python3 (< 3.11) but 3.11.1-1 is to be 
installed
 python3-pyside2.qtwidgets : Depends: python3 (< 3.11) but 3.11.1-1 is to be 
installed
 python3-pyside2.qtxml : Depends: python3 (< 3.11) but 3.11.1-1 is to be 
installed

There is a new upstream version that is still not completely prepared for 
Python 3.11 as it seems. In part you have addressed these issues as with the 
missing mangle, but there are also new ones:

/home/moeller/Science/pyside2/sources/shiboken2/libshiboken/basewrapper.cpp: In 
function ‘SbkObjectType* SbkObject_TypeF()’:
/usr/include/python3.11/object.h:136:30: error: lvalue required as left operand 
of assignment
  136 | #  define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
      |                       ~~~~~~~^~~~~~~~~~~~~~~~~~~~
/home/moeller/Science/pyside2/sources/shiboken2/libshiboken/basewrapper.cpp:380:9:
 note: in expansion of macro ‘Py_TYPE’
  380 |         Py_TYPE(type) = SbkObjectType_TypeF();
      |         ^~~~~~~
In file included from /usr/include/python3.11/object.h:757:
/home/moeller/Science/pyside2/sources/shiboken2/libshiboken/basewrapper.cpp: In 
function ‘void SbkObjectTypeDealloc(PyObject*)’:
/usr/include/python3.11/cpython/object.h:507:38: warning: 
‘UsingDeprecatedTrashcanMacro’ is deprecated [-Wdeprecated-declarations]
  507 |         UsingDeprecatedTrashcanMacro cond=1; \
      |                                      ^~~~
/home/moeller/Science/pyside2/sources/shiboken2/libshiboken/basewrapper.cpp:524:5:
 note: in expansion of macro ‘Py_TRASHCAN_SAFE_BEGIN’
  524 |     Py_TRASHCAN_SAFE_BEGIN(pyObj);
      |     ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/python3.11/cpython/object.h:504:33: note: declared here
  504 | Py_DEPRECATED(3.11) typedef int UsingDeprecatedTrashcanMacro;
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/moeller/Science/pyside2/sources/shiboken2/libshiboken/basewrapper.cpp: In 
function ‘SbkObjectType* Shiboken::ObjectType::introduceWrapperType(PyObject*, 
const char*, const char*, PyType_Spec*, ObjectDestructor, SbkObjectType*, 
PyObject*, unsigned int)’:
/usr/include/python3.11/object.h:136:30: error: lvalue required as left operand 
of assignment
  136 | #  define Py_TYPE(ob) Py_TYPE(_PyObject_CAST(ob))
      |                       ~~~~~~~^~~~~~~~~~~~~~~~~~~~
/home/moeller/Science/pyside2/sources/shiboken2/libshiboken/basewrapper.cpp:1163:5:
 note: in expansion of macro ‘Py_TYPE’
 1163 |     Py_TYPE(heaptype) = SbkObjectType_TypeF();
      |     ^~~~~~~

The other files compile nicely.

I first thought to address this locally and then ask if you want my local 
solution for the world, but now .. well, you may have this more under your 
fingertips than I do. 

Many thanks and regards,
Steffen (not yet subscribed to the list)

Reply via email to