git: df01844aa6b0 - main - emulators/yuzu: Prepare for Qt 6.10
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Dec 2025 01:04:27 UTC
The branch main has been updated by jhale:
URL: https://cgit.FreeBSD.org/ports/commit/?id=df01844aa6b0c07400236213f8afe71beef47145
commit df01844aa6b0c07400236213f8afe71beef47145
Author: Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-12-04 23:53:32 +0000
Commit: Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-12-05 01:03:39 +0000
emulators/yuzu: Prepare for Qt 6.10
Add patch to fix build with Qt 6.10.
With hat: kde@
---
emulators/yuzu/files/patch-qt6-6.10 | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/emulators/yuzu/files/patch-qt6-6.10 b/emulators/yuzu/files/patch-qt6-6.10
new file mode 100644
index 000000000000..f000ef4963b4
--- /dev/null
+++ b/emulators/yuzu/files/patch-qt6-6.10
@@ -0,0 +1,28 @@
+Qt 6.10+ does not automatically provide Qt6::GuiPrivate target for the
+QPA API which is not guaranteed to be compatible between releases.
+
+--- CMakeLists.txt.orig 2025-11-17 11:12:45 UTC
++++ CMakeLists.txt
+@@ -396,6 +396,9 @@ if(ENABLE_QT)
+ set_yuzu_qt_components()
+ if (ENABLE_QT6)
+ find_package(Qt6 ${QT6_VERSION} COMPONENTS ${YUZU_QT_COMPONENTS})
++ if (Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
++ find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
++ endif()
+ endif()
+ if (Qt6_FOUND)
+ message(STATUS "yuzu/CMakeLists.txt: Qt6Widgets_VERSION ${Qt6Widgets_VERSION}, setting QT_VERSION")
+--- src/yuzu/CMakeLists.txt.orig 2024-03-01 07:57:00 UTC
++++ src/yuzu/CMakeLists.txt
+@@ -453,6 +453,10 @@ endif()
+ copy_yuzu_Qt5_deps(yuzu)
+ endif()
+
++if (Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
++ target_link_libraries(yuzu PRIVATE Qt6::GuiPrivate)
++endif()
++
+ if (ENABLE_SDL2)
+ target_link_libraries(yuzu PRIVATE SDL2::SDL2)
+ target_compile_definitions(yuzu PRIVATE HAVE_SDL2)