commit:     4848fe62f40e97be0e0e86a5ac1ec46ffb21e3c9
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 23 18:35:19 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Nov 23 18:38:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4848fe62

games-kids/gcompris: Fix build with Qt 6.10

Closes: https://bugs.gentoo.org/966392
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../gcompris/files/gcompris-25.1.1-qt-6.10.patch   | 49 ++++++++++++++++++++++
 games-kids/gcompris/gcompris-25.1.1.ebuild         |  2 +
 2 files changed, 51 insertions(+)

diff --git a/games-kids/gcompris/files/gcompris-25.1.1-qt-6.10.patch 
b/games-kids/gcompris/files/gcompris-25.1.1-qt-6.10.patch
new file mode 100644
index 000000000000..63290e9e8da7
--- /dev/null
+++ b/games-kids/gcompris/files/gcompris-25.1.1-qt-6.10.patch
@@ -0,0 +1,49 @@
+From d4bd9ad1d588158963610f3dacef86e8d3b2641c Mon Sep 17 00:00:00 2001
+From: Johnny Jazeix <[email protected]>
+Date: Sun, 14 Sep 2025 13:59:59 +0200
+Subject: [PATCH] cmake, ignore private modules if they don't exist
+
+---
+ src/core/CMakeLists.txt | 17 ++++++++++++++---
+ 1 file changed, 14 insertions(+), 3 deletions(-)
+
+diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
+index f4eb66b6dd..dde4a7aec8 100644
+--- a/src/core/CMakeLists.txt
++++ b/src/core/CMakeLists.txt
+@@ -73,10 +73,18 @@ elseif(CMAKE_HOST_APPLE)
+   set_source_files_properties(${gcompris_RES} PROPERTIES 
MACOSX_PACKAGE_LOCATION "Resources")
+ endif()
+ 
+-set(used_qt_modules ${QT_MAJOR}::Qml ${QT_MAJOR}::Quick ${QT_MAJOR}::Widgets 
${QT_MAJOR}::Gui ${QT_MAJOR}::Multimedia ${QT_MAJOR}::Core ${QT_MAJOR}::Svg 
${QT_MAJOR}::Sensors ${QT_MAJOR}::QuickControls2 ${QT_MAJOR}::QuickTemplates2 
${QT_MAJOR}::Charts ${QT_MAJOR}::QmlWorkerScript ${QT_MAJOR}::CorePrivate)
++set(used_qt_modules ${QT_MAJOR}::Qml ${QT_MAJOR}::Quick ${QT_MAJOR}::Widgets 
${QT_MAJOR}::Gui ${QT_MAJOR}::Multimedia ${QT_MAJOR}::Core ${QT_MAJOR}::Svg 
${QT_MAJOR}::Sensors ${QT_MAJOR}::QuickControls2 ${QT_MAJOR}::QuickTemplates2 
${QT_MAJOR}::Charts ${QT_MAJOR}::QmlWorkerScript)
++
++if(TARGET ${QT_MAJOR}::CorePrivate)
++  set(used_qt_modules ${used_qt_modules} ${QT_MAJOR}::CorePrivate)
++endif()
+ 
+ if(TARGET ${QT_MAJOR}::QuickControls2Basic)
+-  set(used_qt_modules ${used_qt_modules} ${QT_MAJOR}::QuickControls2Basic 
${QT_MAJOR}::QuickControls2BasicPrivate)
++  set(used_qt_modules ${used_qt_modules} ${QT_MAJOR}::QuickControls2Basic)
++  if(TARGET ${QT_MAJOR}::QuickControls2BasicPrivate)
++    set(used_qt_modules ${used_qt_modules} 
${QT_MAJOR}::QuickControls2BasicPrivate)
++  endif()
++
+   # This should not be needed! But for some reason, on windows it does not 
find
+   # automatically the library so we need to install it manually
+   if(WIN32)
+@@ -86,7 +94,10 @@ if(TARGET ${QT_MAJOR}::QuickControls2Basic)
+ endif()
+ 
+ if(TARGET ${QT_MAJOR}::WaylandClient)
+-    set(used_qt_modules ${used_qt_modules} ${QT_MAJOR}::WaylandClient 
${QT_MAJOR}::WaylandClientPrivate)
++  set(used_qt_modules ${used_qt_modules} ${QT_MAJOR}::WaylandClient)
++  if(TARGET ${QT_MAJOR}::WaylandClientPrivate)
++    set(used_qt_modules ${used_qt_modules} ${QT_MAJOR}::WaylandClientPrivate)
++  endif()
+ endif()
+ 
+ if(ANDROID)
+-- 
+GitLab
+

diff --git a/games-kids/gcompris/gcompris-25.1.1.ebuild 
b/games-kids/gcompris/gcompris-25.1.1.ebuild
index e4d3ba0d13b5..81edc3be35f0 100644
--- a/games-kids/gcompris/gcompris-25.1.1.ebuild
+++ b/games-kids/gcompris/gcompris-25.1.1.ebuild
@@ -43,6 +43,8 @@ BDEPEND="
        )
 "
 
+PATCHES=( "${FILESDIR}/${P}-qt-6.10.patch" ) # bug #966392
+
 src_configure() {
        local mycmakeargs=(
                -DCOMPILE_DOC=ON

Reply via email to