kde-plasma/kinfocenter: Add missing Qt::Qml link

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2026-09-10 22:05:53 +02:00
parent acd95ee8db
commit 23812cc4e2
3 changed files with 85 additions and 13 deletions
@@ -0,0 +1,70 @@
From 3bcda3e3419abd4abf82c4174013878d6f142f75 Mon Sep 17 00:00:00 2001
From: Jakob Petsovits <jpetso@petsovits.com>
Date: Mon, 7 Sep 2026 12:40:07 -0400
Subject: [PATCH] Add missing Qt::Qml link
(cherry picked from commit 24f116ab2ed57391265269cc554b318d26d934c0)
---
CMakeLists.txt | 7 ++++++-
kcms/about-distro/src/CMakeLists.txt | 1 +
kcms/energy/CMakeLists.txt | 1 +
kcms/samba/CMakeLists.txt | 1 +
4 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8ca9279b..442da993 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,7 +26,12 @@ include(ECMQmlModule)
option(BUILD_DOC "Whether to build the documentation" ON)
-find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Core Gui Widgets)
+find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
+ Core
+ Gui
+ Qml
+ Widgets
+)
find_package(KF6 ${KF6_MIN_VERSION} REQUIRED COMPONENTS
Config
diff --git a/kcms/about-distro/src/CMakeLists.txt b/kcms/about-distro/src/CMakeLists.txt
index 20fe24f5..acee8ed5 100644
--- a/kcms/about-distro/src/CMakeLists.txt
+++ b/kcms/about-distro/src/CMakeLists.txt
@@ -33,6 +33,7 @@ set(kcm_SRCS
kcmutils_add_qml_kcm(kcm_about-distro SOURCES ${kcm_SRCS} INSTALL_NAMESPACE "plasma/kcms")
target_link_libraries(kcm_about-distro PRIVATE
+ Qt6::Qml
KF6::CoreAddons
KF6::I18n
KF6::ConfigCore
diff --git a/kcms/energy/CMakeLists.txt b/kcms/energy/CMakeLists.txt
index 4c677ff6..d715e7f0 100644
--- a/kcms/energy/CMakeLists.txt
+++ b/kcms/energy/CMakeLists.txt
@@ -14,6 +14,7 @@ kinfocenter_add_kcm(kcm_energyinfo MODULE ${kcm_energyinfo_SRCS})
target_link_libraries(kcm_energyinfo PRIVATE
Qt::DBus
Qt::Gui
+ Qt::Qml
KF6::CoreAddons
KF6::I18n
KF6::KCMUtilsQuick
diff --git a/kcms/samba/CMakeLists.txt b/kcms/samba/CMakeLists.txt
index 562a4477..9bb0dfa8 100644
--- a/kcms/samba/CMakeLists.txt
+++ b/kcms/samba/CMakeLists.txt
@@ -25,6 +25,7 @@ set(kcm_samba_SRCS main.cpp)
qt_add_dbus_interface(kcm_samba_SRCS org.freedesktop.DBus.Properties.xml org.freedesktop.DBus.Properties)
kinfocenter_add_kcm(kcm_samba SOURCES ${kcm_samba_SRCS} INSTALL_NAMESPACE "plasma/kcms/kinfocenter")
target_link_libraries(kcm_samba PRIVATE
+ Qt6::Qml
KF6::KCMUtilsQuick
kcm_samba_static
)
--
GitLab
@@ -1,31 +1,30 @@
Source: https://invent.kde.org/plasma/kinfocenter/-/merge_requests/308
From: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
Date: Fri, 4 Sep 2026 15:29:47 +0300
From 28c7cb32161a0afee1217a5cabc5ec520332efc7 Mon Sep 17 00:00:00 2001
From: Kostadin Shishmanov <kocelfc@tutanota.com>
Date: Wed, 9 Sep 2026 13:52:01 +0000
Subject: [PATCH] Add missing <vector> include
GPUEntryFactory.h uses std::vector but doesn't include <vector>
`GPUEntryFactory.h` uses `std::vector` but doesn't include `<vector>`
which causes a build failure with libc++ 23 since it's dropping such
transitive includes.
Signed-off-by: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
Signed-off-by: Kostadin Shishmanov kostadinshishmanov@protonmail.com
---
kcms/about-distro/src/GPUEntryFactory.h | 2 ++
1 file changed, 2 insertions(+)
kcms/about-distro/src/GPUEntryFactory.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kcms/about-distro/src/GPUEntryFactory.h b/kcms/about-distro/src/GPUEntryFactory.h
index c16cdbf0..299e001e 100644
index c16cdbf0..9a370859 100644
--- a/kcms/about-distro/src/GPUEntryFactory.h
+++ b/kcms/about-distro/src/GPUEntryFactory.h
@@ -3,6 +3,8 @@
@@ -3,7 +3,7 @@
#pragma once
-#include <QList>
+#include <vector>
+
#include <QList>
class Entry;
--
GitLab
@@ -43,7 +43,10 @@ BDEPEND="
virtual/pkgconfig
"
PATCHES=( "${FILESDIR}/${P}-libcxx23-missing-header.patch" ) # in 6.8 (pending)
PATCHES=(
"${FILESDIR}/${P}-libcxx23-missing-header.patch" # in 6.8
"${FILESDIR}/${P}-kcmutils-6.31-qml-link.patch" # in 6.8 (6.7 pending)
)
CMAKE_SKIP_TESTS=(
# bug 816591