Files
gentoo/dev-python/pyqt6/files/pyqt6-6.11.0-qt6.12.patch
Ionen Wolkens 0ff443886d dev-python/pyqt6: fix build with Qt 6.12
Early fix, could potentially break again. Not particularly tested
but seems to work at least to run qutebrowser with it.

Not overly worried given Qt 6.12.0 will be masked like usual and
odds are there will be a pyqt6-6.12.0 relesed before we add 6.12.1
unmasked.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2026-06-02 22:16:32 -04:00

22 lines
882 B
Diff

Quick fix to build with (still unrleeased) Qt 6.12.0.
--- a/sip/QtCore/QtCoremod.sip
+++ b/sip/QtCore/QtCoremod.sip
@@ -23,5 +23,5 @@
%Module(name=PyQt6.QtCore, call_super_init=True, default_VirtualErrorHandler=PyQt6, keyword_arguments="Optional", use_limited_api=True, py_ssize_t_clean=True)
-%Timeline {Qt_6_0_0 Qt_6_1_0 Qt_6_2_0 Qt_6_3_0 Qt_6_4_0 Qt_6_5_0 Qt_6_6_0 Qt_6_7_0 Qt_6_8_0 Qt_6_9_0 Qt_6_10_0 Qt_6_11_0}
+%Timeline {Qt_6_0_0 Qt_6_1_0 Qt_6_2_0 Qt_6_3_0 Qt_6_4_0 Qt_6_5_0 Qt_6_6_0 Qt_6_7_0 Qt_6_8_0 Qt_6_9_0 Qt_6_10_0 Qt_6_11_0 Qt_6_12_0}
%Platforms {Android iOS Linux macOS WebAssembly Windows}
--- a/sip/QtCore/qcoreevent.sip
+++ b/sip/QtCore/qcoreevent.sip
@@ -201,6 +201,8 @@
TabletTrackingChange,
GraphicsSceneLeave,
+%If (- Qt_6_12_0)
EnterEditFocus,
LeaveEditFocus,
+%End
%If (Qt_6_6_0 -)
DevicePixelRatioChange,