app-office/texmaker: Fix build with Qt 6.10

Closes: https://bugs.gentoo.org/966707
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner 2025-11-27 19:14:46 +01:00
parent 2a8f028be9
commit 86da922622
No known key found for this signature in database
GPG Key ID: AE591BBC73E4DD5E
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -387,7 +387,9 @@
set(CMAKE_AUTORCC ON)
find_package(Qt6 REQUIRED COMPONENTS Gui Concurrent Core Core5Compat Network PrintSupport Qml Widgets Xml LinguistTools)
-
+if(Qt6Core_VERSION VERSION_GREATER_EQUAL "6.9.0")
+ find_package(Qt6 ${REQUIRED_QT_VERSION} CONFIG REQUIRED CorePrivate)
+endif()
qt_standard_project_setup()
if (UNIX AND NOT APPLE)

View File

@ -34,6 +34,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-6.0.0-unbundle_hunspell_synctex.patch
"${FILESDIR}"/${PN}-6.0.0-unforce_webengine.patch
"${FILESDIR}"/${PN}-6.0.0-fix_lto_mismatch.patch
"${FILESDIR}"/${P}-qt-6.10.patch # downstream, bug #966707
)
src_prepare() {