From 0ff443886de325a9ac19810a8d2afa6238086d76 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Tue, 2 Jun 2026 21:48:31 -0400 Subject: [PATCH] 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 --- .../pyqt6/files/pyqt6-6.11.0-qt6.12.patch | 21 +++++++++++++++++++ dev-python/pyqt6/pyqt6-6.11.0.ebuild | 6 +++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 dev-python/pyqt6/files/pyqt6-6.11.0-qt6.12.patch diff --git a/dev-python/pyqt6/files/pyqt6-6.11.0-qt6.12.patch b/dev-python/pyqt6/files/pyqt6-6.11.0-qt6.12.patch new file mode 100644 index 0000000000000..1147e23e2a414 --- /dev/null +++ b/dev-python/pyqt6/files/pyqt6-6.11.0-qt6.12.patch @@ -0,0 +1,21 @@ +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, diff --git a/dev-python/pyqt6/pyqt6-6.11.0.ebuild b/dev-python/pyqt6/pyqt6-6.11.0.ebuild index 45fd28c07b3c4..8bd32130547c9 100644 --- a/dev-python/pyqt6/pyqt6-6.11.0.ebuild +++ b/dev-python/pyqt6/pyqt6-6.11.0.ebuild @@ -5,7 +5,7 @@ EAPI=8 DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=sip -PYTHON_COMPAT=( python3_{11..14} ) +PYTHON_COMPAT=( python3_{12..14} ) inherit distutils-r1 flag-o-matic multiprocessing pypi qmake-utils # can work with older Qt depending on the features the ebuild enables, @@ -98,6 +98,10 @@ BDEPEND=" dbus? ( virtual/pkgconfig ) " +PATCHES=( + "${FILESDIR}"/${PN}-6.11.0-qt6.12.patch +) + src_prepare() { default