From 2cdf0d9b43e7ad55d38f4c080a384b13d30193fa Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Wed, 10 Dec 2025 22:46:05 +0100 Subject: [PATCH] games-emulation/dolphin: Fix build w/ Qt 6.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/965410 Signed-off-by: Andreas Sturmlechner Part-of: https://github.com/gentoo/gentoo/pull/44984 Signed-off-by: Michał Górny --- games-emulation/dolphin/dolphin-2509.ebuild | 2 + .../dolphin/files/dolphin-2509-qt-6.10.patch | 42 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 games-emulation/dolphin/files/dolphin-2509-qt-6.10.patch diff --git a/games-emulation/dolphin/dolphin-2509.ebuild b/games-emulation/dolphin/dolphin-2509.ebuild index 8f686cb028ce1..7fa7d8afeef51 100644 --- a/games-emulation/dolphin/dolphin-2509.ebuild +++ b/games-emulation/dolphin/dolphin-2509.ebuild @@ -150,6 +150,8 @@ declare -A KEEP_BUNDLED=( PATCHES=( "${FILESDIR}"/dolphin-2509-retroachievents-test.patch + # https://github.com/dolphin-emu/dolphin/pull/14008 + "${FILESDIR}/${P}-qt-6.10.patch" # bug #965410 ) add_bundled_licenses() { diff --git a/games-emulation/dolphin/files/dolphin-2509-qt-6.10.patch b/games-emulation/dolphin/files/dolphin-2509-qt-6.10.patch new file mode 100644 index 0000000000000..096ac0ad1c013 --- /dev/null +++ b/games-emulation/dolphin/files/dolphin-2509-qt-6.10.patch @@ -0,0 +1,42 @@ +From b3bdad416ca0a6a604dca12bed7bd00542092d25 Mon Sep 17 00:00:00 2001 +From: Jordan Woyak +Date: Sun, 12 Oct 2025 22:55:52 -0500 +Subject: [PATCH] CMakeLists: Fix build with Qt6.10. GuiPrivate component is + needed to #include qplatformnativeinterface.h in MainWindow.cpp. + +--- + Source/Core/DolphinQt/CMakeLists.txt | 14 ++++++++++++++ + 1 file changed, 14 insertions(+) + +diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt +index 47df65334bd4..656537f71971 100644 +--- a/Source/Core/DolphinQt/CMakeLists.txt ++++ b/Source/Core/DolphinQt/CMakeLists.txt +@@ -15,6 +15,13 @@ set(CMAKE_AUTOMOC ON) + set(CMAKE_AUTORCC ON) + + find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets Svg) ++ ++if (LINUX AND Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0) ++ # GuiPrivate is needed to #include qplatformnativeinterface.h in MainWindow.cpp with Qt 6.10+. ++ set(NEED_QT_GUI_PRIVATE_COMPONENT ON) ++ find_package(Qt6 REQUIRED COMPONENTS GuiPrivate) ++endif() ++ + message(STATUS "Found Qt version ${Qt6_VERSION}") + + set_property(TARGET Qt6::Core PROPERTY INTERFACE_COMPILE_FEATURES "") +@@ -440,6 +447,13 @@ PRIVATE + implot + ) + ++if (NEED_QT_GUI_PRIVATE_COMPONENT) ++ target_link_libraries(dolphin-emu ++ PRIVATE ++ Qt6::GuiPrivate ++ ) ++endif() ++ + if (WIN32) + target_link_libraries(dolphin-emu + PRIVATE