mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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>
This commit is contained in:
21
dev-python/pyqt6/files/pyqt6-6.11.0-qt6.12.patch
Normal file
21
dev-python/pyqt6/files/pyqt6-6.11.0-qt6.12.patch
Normal file
@@ -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,
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user