commit:     2cdf0d9b43e7ad55d38f4c080a384b13d30193fa
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 10 21:46:05 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Dec 11 04:40:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cdf0d9b

games-emulation/dolphin: Fix build w/ Qt 6.10

Closes: https://bugs.gentoo.org/965410
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/44984
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 games-emulation/dolphin/dolphin-2509.ebuild        |  2 ++
 .../dolphin/files/dolphin-2509-qt-6.10.patch       | 42 ++++++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/games-emulation/dolphin/dolphin-2509.ebuild 
b/games-emulation/dolphin/dolphin-2509.ebuild
index 8f686cb028ce..7fa7d8afeef5 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 000000000000..096ac0ad1c01
--- /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 <[email protected]>
+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

Reply via email to