summaryrefslogtreecommitdiff
path: root/gui-apps
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2025-09-07 20:55:27 -0400
committerIonen Wolkens <ionen@gentoo.org>2025-09-08 01:56:53 -0400
commit41a45186c01657c5ed704b3ea3c507e2f8e69cd4 (patch)
tree4b03578a856817e069303df24d55598ee35283a2 /gui-apps
parent6ff847ca41d830b3c1d9eff71685aa391bf0ab6b (diff)
downloadgentoo-41a45186c01657c5ed704b3ea3c507e2f8e69cd4.tar.gz
gentoo-41a45186c01657c5ed704b3ea3c507e2f8e69cd4.tar.bz2
gentoo-41a45186c01657c5ed704b3ea3c507e2f8e69cd4.zip
gui-apps/qt6ct: fix build with Qt 6.10
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'gui-apps')
-rw-r--r--gui-apps/qt6ct/files/qt6ct-0.10-qt610.patch20
-rw-r--r--gui-apps/qt6ct/qt6ct-0.10.ebuild4
2 files changed, 24 insertions, 0 deletions
diff --git a/gui-apps/qt6ct/files/qt6ct-0.10-qt610.patch b/gui-apps/qt6ct/files/qt6ct-0.10-qt610.patch
new file mode 100644
index 000000000000..2dbebded79ca
--- /dev/null
+++ b/gui-apps/qt6ct/files/qt6ct-0.10-qt610.patch
@@ -0,0 +1,20 @@
+Backport of [1] plus a quick cmake build fix.
+[1] https://www.opencode.net/trialuser/qt6ct/-/commit/2d99bd0881aeac0a0eab9595159009ff750a1889
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -34,2 +34,5 @@
+ find_package(Qt6 6.2 CONFIG REQUIRED COMPONENTS BuildInternals Core Widgets OPTIONAL_COMPONENTS LinguistTools)
++if (Qt6_VERSION VERSION_GREATER_EQUAL 6.10)
++ find_package(Qt6 6.2 CONFIG REQUIRED COMPONENTS GuiPrivate WidgetsPrivate)
++endif()
+
+--- a/src/qt6ct-qtplugin/qt6ctplatformtheme.h
++++ b/src/qt6ct-qtplugin/qt6ctplatformtheme.h
+@@ -32,3 +32,7 @@
+ #include <qpa/qplatformtheme.h>
++#if (QT_VERSION >= QT_VERSION_CHECK(6, 10, 0))
++#include <private/qgenericunixtheme_p.h>
++#else
+ #include <private/qgenericunixthemes_p.h>
++#endif
+ #include <QObject>
diff --git a/gui-apps/qt6ct/qt6ct-0.10.ebuild b/gui-apps/qt6ct/qt6ct-0.10.ebuild
index 6de7bc3e4671..ee2530788e2a 100644
--- a/gui-apps/qt6ct/qt6ct-0.10.ebuild
+++ b/gui-apps/qt6ct/qt6ct-0.10.ebuild
@@ -13,6 +13,10 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64"
+PATCHES=(
+ "${FILESDIR}"/${P}-qt610.patch
+)
+
# uses Qt private APIs wrt :=
# dlopen: qtsvg
DEPEND="