Bugzilla – Bug 1222514
python-PyQt6 FTBFS with Qt6 6.7.0
Last modified: 2024-04-13 15:03:56 UTC
Hi, python-PyQt6 fails to build following an update in Factory to Qt6 6.7.0: [ 683s] g++ -c -pipe -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -DQT_NO_INT128 -fno-exceptions -Wall -Wextra -D_REENTRANT -fPIC -DPy_LIMITED_API=0x03080000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_KEYPAD_NAVIGATION -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_CORE_LIB -I. -I. -I.. -I../../qpy/QtCore -I/usr/include/python3.10 -I/usr/include/qt6 -I/usr/include/qt6/QtCore -I. -I/usr/lib64/qt6/mkspecs/linux-g++ -o sipQtCoreQThreadPool.o sipQtCoreQThreadPool.cpp [ 683s] /home/abuild/rpmbuild/BUILD/PyQt6-6.6.1/build/QtCore/sipQtCoreQTimeZone.cpp: In function ‘PyObject* meth_QTimeZone_country(PyObject*, PyObject*)’: [ 683s] /home/abuild/rpmbuild/BUILD/PyQt6-6.6.1/build/QtCore/sipQtCoreQTimeZone.cpp:152:37: warning: ‘QLocale::Country QTimeZone::country() const’ is deprecated: Use territory() instead [-Wdeprecated-declarations] [ 683s] 152 | sipRes = sipCpp->country(); [ 683s] | ~~~~~~~~~~~~~~~^~ [ 683s] In file included from /home/abuild/rpmbuild/BUILD/PyQt6-6.6.1/sip/QtCore/qtimezone.sip:26: [ 683s] /usr/include/qt6/QtCore/qtimezone.h:173:22: note: declared here [ 683s] 173 | QLocale::Country country() const; [ 683s] | ^~~~~~~ [ 683s] /home/abuild/rpmbuild/BUILD/PyQt6-6.6.1/build/QtCore/sipQtCoreQTimeZone.cpp: In function ‘PyObject* slot_QTimeZone___ne__(PyObject*, PyObject*)’: [ 683s] /home/abuild/rpmbuild/BUILD/PyQt6-6.6.1/build/QtCore/sipQtCoreQTimeZone.cpp:1025:51: error: ‘class QTimeZone’ has no member named ‘operator!=’; did you mean ‘operator=’? [ 683s] 1025 | sipRes = sipCpp->::QTimeZone::operator!=(*a0); [ 683s] | ^~ [ 683s] | operator= [ 683s] /home/abuild/rpmbuild/BUILD/PyQt6-6.6.1/build/QtCore/sipQtCoreQTimeZone.cpp: In function ‘PyObject* slot_QTimeZone___eq__(PyObject*, PyObject*)’: [ 683s] /home/abuild/rpmbuild/BUILD/PyQt6-6.6.1/build/QtCore/sipQtCoreQTimeZone.cpp:1054:51: error: ‘class QTimeZone’ has no member named ‘operator==’; did you mean ‘operator=’? [ 683s] 1054 | sipRes = sipCpp->::QTimeZone::operator==(*a0); [ 683s] | ^~ [ 683s] | operator= [ 683s] make[1]: *** [Makefile:2169: sipQtCoreQTimeZone.o] Error 1 [ 683s] make[1]: *** Waiting for unfinished jobs.... [ 684s] make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/PyQt6-6.6.1/build/QtCore' [ 684s] make: *** [Makefile:211: sub-QtCore-make_first-ordered] Error 2 [ 684s] error: Bad exit status from /var/tmp/rpm-tmp.cGTtji (%build) [ 684s]
Reported upstream: https://www.riverbankcomputing.com/pipermail/pyqt/2024-April/045778.html
Related to https://code.qt.io/cgit/qt/qtbase.git/commit/?id=7a3fed3f
Upstream is apparently working on it, there is just no release yet. I am hesitant to package the preview version or even only partially patch. https://www.riverbankcomputing.com/static/Downloads/PyQt6/ChangeLog-6.7.0.dev2404081550
Note that I reverted a binary incompatible change in qtmultimedia 6.7.0, it may need another change in pyqt
(In reply to Benjamin Greiner from comment #3) > Upstream is apparently working on it, there is just no release yet. I am > hesitant to package the preview version or even only partially patch. > > https://www.riverbankcomputing.com/static/Downloads/PyQt6/ChangeLog-6.7.0. > dev2404081550 Currently it's not installable at all, so even the preview version would be a net positive IMO
*** Bug 1222638 has been marked as a duplicate of this bug. ***
*** Bug 1222658 has been marked as a duplicate of this bug. ***
*** Bug 1222652 has been marked as a duplicate of this bug. ***
Hi, this is breaking existing/preventing new installation of Vorta 0.9.1 on opensuse (TW)
(In reply to Fabian Vogt from comment #5) > (In reply to Benjamin Greiner from comment #3) > > Upstream is apparently working on it, there is just no release yet. I am > > hesitant to package the preview version or even only partially patch. > > > > https://www.riverbankcomputing.com/static/Downloads/PyQt6/ChangeLog-6.7.0. > > dev2404081550 > > Currently it's not installable at all, so even the preview version would be > a net positive IMO Agreed, please Ben take a look at https://build.opensuse.org/request/show/1166908
*** Bug 1222689 has been marked as a duplicate of this bug. ***
*** Bug 1222697 has been marked as a duplicate of this bug. ***
(In reply to Christophe Marin from comment #4) > Note that I reverted a binary incompatible change in qtmultimedia 6.7.0, it > may need another change in pyqt The SIP files of the current development snapshot in sip/QtMultimedia don't seem to be affected by your changes
*** Bug 1222712 has been marked as a duplicate of this bug. ***
https://build.opensuse.org/request/show/1167027 If it is so important that PyQt6 immediately builds with a Qt6 update, then it should be included into lettered Ring1 staging.
*** Bug 1222743 has been marked as a duplicate of this bug. ***
*** Bug 1222745 has been marked as a duplicate of this bug. ***
*** Bug 1222747 has been marked as a duplicate of this bug. ***
Fixed in snapshot 20240412