Files
guru/games-util/chiaki-ng/files/chiaki-ng-1.9.9-fix-qt6-guiprivate.patch
T
Huang Rui bdb8dbca21 games-util/chiaki-ng: add 1.9.9, drop 1.9.5
- bump to 1.9.9, drop old 1.9.5
- fix build problem about qt6-guiprivate
- patched to use the dynamic nanopb

Closes: https://bugs.gentoo.org/965824
Signed-off-by: Huang Rui <vowstar@gmail.com>
2025-12-13 14:08:00 +08:00

35 lines
1.3 KiB
Diff

From fe5bfd87998c7ca67ade76436e31ab9924000c8b Mon Sep 17 00:00:00 2001
From: Morgan Helton <mhelton@gmail.com>
Date: Fri, 24 Oct 2025 20:03:09 -0500
Subject: [PATCH] Add Qt6::GuiPrivate link conditional on Qt version
Fix build failure with Qt 6.10+
Upstream fix: https://github.com/streetpea/chiaki-ng/pull/670
Related issue: https://github.com/streetpea/chiaki-ng/issues/669
---
gui/CMakeLists.txt | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 201dfaf4..7e777e1f 100755
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -8,6 +8,10 @@ if(APPLE)
endif()
find_package(Qt6 REQUIRED COMPONENTS Core Gui Concurrent Svg Qml Quick Widgets)
+if(Qt6_VERSION VERSION_GREATER_EQUAL "6.10.0")
+ find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
+endif()
+
find_package(Qt6 COMPONENTS WebEngineQuick)
find_package(Qt6 COMPONENTS DBus)
@@ -154,4 +158,4 @@ install(TARGETS chiaki
BUNDLE DESTINATION bin)
install(FILES chiaking.desktop DESTINATION share/applications)
install(FILES chiaking.png DESTINATION share/icons/hicolor/512x512/apps)
-install(FILES io.github.streetpea.Chiaki4deck.appdata.xml DESTINATION share/metainfo)
\ No newline at end of file
+install(FILES io.github.streetpea.Chiaki4deck.appdata.xml DESTINATION share/metainfo)