commit:     7cef9a585f25e26e1135b6df699e90dd2c04ca22
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 24 18:39:40 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Nov 24 20:37:37 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cef9a58

x11-themes/qtcurve: Fix build w/ Qt 6.10, raise min Qt6 to >=6.9.0

See also:
https://invent.kde.org/system/qtcurve/-/merge_requests/3#note_1353344

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

 .../files/qtcurve-1.9.0_p20250314-qt-6.10.patch    | 39 ++++++++++++++++++++++
 ...r1.ebuild => qtcurve-1.9.0_p20250314-r2.ebuild} | 11 +++---
 2 files changed, 46 insertions(+), 4 deletions(-)

diff --git a/x11-themes/qtcurve/files/qtcurve-1.9.0_p20250314-qt-6.10.patch 
b/x11-themes/qtcurve/files/qtcurve-1.9.0_p20250314-qt-6.10.patch
new file mode 100644
index 000000000000..d714fcf912d0
--- /dev/null
+++ b/x11-themes/qtcurve/files/qtcurve-1.9.0_p20250314-qt-6.10.patch
@@ -0,0 +1,39 @@
+From 5a5566ffdb7c672f73788426aab8a8604ff7dc87 Mon Sep 17 00:00:00 2001
+From: Lars Wendler <[email protected]>
+Date: Fri, 21 Nov 2025 01:29:26 +0100
+Subject: [PATCH] Fix build with qt-6.10
+
+Successfully tested with qt-6.9.3 as well
+---
+ qt6/CMakeLists.txt | 7 ++-----
+ 1 file changed, 2 insertions(+), 5 deletions(-)
+
+diff --git a/qt6/CMakeLists.txt b/qt6/CMakeLists.txt
+index 27b6bf7e..31f31ba6 100644
+--- a/qt6/CMakeLists.txt
++++ b/qt6/CMakeLists.txt
+@@ -4,9 +4,9 @@ set(CMAKE_AUTOUIC True)
+ include(CMakePrintHelpers)
+ 
+ if(QTC_QT6_ENABLE_QTQUICK2)
+-  set(QTC_QT6_MODULES Core Gui Widgets Svg Quick DBus)
++  set(QTC_QT6_MODULES Core Gui GuiPrivate Widgets WidgetsPrivate Svg Quick 
DBus)
+ else()
+-  set(QTC_QT6_MODULES Core Gui Widgets Svg DBus)
++  set(QTC_QT6_MODULES Core Gui GuiPrivate Widgets WidgetsPrivate Svg DBus)
+ endif()
+ if(QTC_QT6_ENABLE_KDE)
+   list(APPEND QTC_QT6_MODULES PrintSupport)
+@@ -18,9 +18,6 @@ set(QTC_QT6_ENABLE_KWIN Off)
+ 
+ find_package(Qt6 REQUIRED COMPONENTS ${QTC_QT6_MODULES})
+ list(TRANSFORM QTC_QT6_MODULES PREPEND "Qt6::" OUTPUT_VARIABLE 
QTC_QT6_LINK_LIBS)
+-if(QTC_ENABLE_X11)
+-  list(APPEND QTC_QT6_LINK_LIBS Qt6::CorePrivate)
+-endif()
+ foreach(QtModule ${QTC_QT6_OPT_MODULES})
+   find_package(Qt6${QtModule})
+   if(Qt6${QtModule}_FOUND)
+-- 
+GitLab
+

diff --git a/x11-themes/qtcurve/qtcurve-1.9.0_p20250314-r1.ebuild 
b/x11-themes/qtcurve/qtcurve-1.9.0_p20250314-r2.ebuild
similarity index 89%
rename from x11-themes/qtcurve/qtcurve-1.9.0_p20250314-r1.ebuild
rename to x11-themes/qtcurve/qtcurve-1.9.0_p20250314-r2.ebuild
index 308ed65e03f1..4d863ca2ed28 100644
--- a/x11-themes/qtcurve/qtcurve-1.9.0_p20250314-r1.ebuild
+++ b/x11-themes/qtcurve/qtcurve-1.9.0_p20250314-r2.ebuild
@@ -52,9 +52,9 @@ DEPEND="
                X? ( dev-qt/qtx11extras:5 )
        )
        qt6? (
-               dev-qt/qtbase:6[dbus,gui,widgets]
-               dev-qt/qtsvg:6
-               X? ( dev-qt/qtbase:6=[X] )
+               >=dev-qt/qtbase-6.9.0:6[dbus,gui,widgets]
+               >=dev-qt/qtsvg-6.9.0:6
+               X? ( >=dev-qt/qtbase-6.9.0:6=[X] )
        )
        X? (
                x11-libs/libX11
@@ -72,7 +72,10 @@ BDEPEND="
 
 DOCS=( AUTHORS ChangeLog.md README.md TODO.md )
 
-PATCHES=( "${FILESDIR}/${P}-manhandle-cmake.patch" ) # bug 959633
+PATCHES=(
+       "${FILESDIR}/${P}-manhandle-cmake.patch"  # bug 959633
+       "${FILESDIR}/${P}-qt-6.10.patch" # bug 966408
+)
 
 src_configure() {
        local mycmakeargs=(

Reply via email to