Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

257.29. kcmutils-6.31.0

KDE Frameworks: configuration modules for widget and QML settings pages

The build-state snapshot was taken from 6.31.0-1; this recipe is 6.31.0-2, so the size, time and contents below describe the earlier build.

Version 6.31.0, release 2
Shelf kf6 — KDE Frameworks 6: every port whose homepage is under invent.kde.org/frameworks, whatever it does
Phase 43_toolkits (Toolkits), 67 of 344 in build order
Licence LGPL-2.0-or-later AND LGPL-2.0-only AND GPL-2.0-or-later
Homepage https://invent.kde.org/frameworks/kcmutils
Build time 0.3 SBU
Installed size 1.8 MiB in 76 files
Recipe ports/core/kf6/kcmutils/kpkgbuild

About

KCMUtils is how a KDE settings page is written and loaded. A configuration module (KCM) is a plugin, a Qt Widgets one built on KCModule or a Qt Quick one built on KQuickConfigModule, and this framework finds it by its plugin metadata, loads it and shows it, in System Settings, in a program’s own settings dialog (KPluginWidget, KCMultiDialog), or alone with kcmshell6. kcmdesktopfilegenerator writes the desktop entry that lists a module in the application menu. Plasma’s System Settings, dolphin’s settings and the KCMs of every Plasma module are built on it.

Why it is in KDOS

The comment above the 61 ports from karchive to kfilemetadata in script/phases/43_toolkits/packages.d/kf6.txt:

The libraries KDE applications are built on, without Plasma.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kconfigwidgets, kcoreaddons, kguiaddons, ki18n, kio, kirigami, kitemviews, kwidgetsaddons, kxmlgui.

Required by (65): akonadi-search, akregator, audex, audiocd-kio, aurorae, bluedevil, breeze, calligra, discover, dolphin, fcitx5-configtool, k3b, kaccounts-integration, kaddressbook, kamera, kclock, kcm-kdos-boxes, kcm-kdos-firewall, kcm-kdos-health, kcm-kdos-look, kcm-kdos-system, kcron, kde-cli-tools, kdepim-addons, kdepim-runtime, kdeplasma-addons, kdev-php, kdevelop, kdf, kdos-welcome, kget, kinfocenter, kio-extras, kmail, konqueror, kontact, korganizer, krdc, krdp, kscreen, kscreenlocker, ktorrent, ktouch, kunifiedpush, kup, kwalletmanager, kwin, libkcddb, oxygen, pimcommon, plasma-desktop, plasma-disks, plasma-keyboard, plasma-nm, plasma-pa, plasma-sdk, plasma-thunderbolt, plasma-welcome, plasma-workspace, powerdevil, print-manager, purpose, sddm-kcm, systemsettings, xdg-desktop-portal-kde.

Patches

build.sh applies these; kpkg applies nothing by itself.

kcmoduleqml-backtab.patch makes Shift+Tab from a widget after a Qt Quick settings page, the Help or Apply button of System Settings, land on the page’s last control with its name spoken. Qt 6.12’s QQuickWidget moves a backtab to the scene’s last item inside its own focusInEvent, before the widget focus is announced, so the screen reader’s last focus event is the unnamed QQuickWidget (“layered pane” in Orca) and the control it reached is never read. Upstream KCMUtils has a step for a backtab entering the page, but it runs on a backtab focus arriving at the page’s root item, and Qt 6.12 sends none: the last control already holds the focus. The patch records a backtab that enters the QQuickWidget from the widgets and, once the widget holds the focus, moves the focus through the root to the item before the root in the focus chain, which Qt keeps to visible, enabled tab stops; it never stops on the root. A page with no control is passed through, and only a backtab arriving from a control of the page leaves it. It is to be offered upstream as a merge request against frameworks/kcmutils.

The patch covers the page; System Settings’ sidebar, another QQuickWidget, is announced by qt6-qtdeclarative’s quickwidget-focus-accessible.patch.

kcmshell-page-stack-accessible.patch reports KPageView’s page stack in kcmshell6, the KPageStackedWidget of the KCMultiDialog that holds the module, as a plain container instead of a layered pane, so a screen reader passes over it; Orca otherwise speaks it as “layered pane 0 items” after the window title when kcmshell6 opens and before the first control on every Tab or Shift+Tab into the page. An accessibility factory installed in kcmshell6‘s main() before the dialog is built matches KPageStackedWidget alone, so every other stacked widget keeps its role. It covers kcmshell6 alone: a program’s own KCMultiDialog keeps the stack’s default role, and System Settings carries the same factory in systemsettings’ page-stack-accessible.patch. It is to be offered upstream as a merge request against frameworks/kcmutils.

Installation

From the repository root, inside the build container, this is the line kdosbuild runs for the port:

script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install kcmutils'

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kf6/kcmutils.

1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.

cd /ports/core/kf6/kcmutils
echo 'e7c96296f2cc31b68c323559890df1e197dcb9c663822682dc97737c1b811610  kcmutils-6.31.0.tar.xz' | sha256sum -c -

2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.

SRC_ROOT=/var/cache/kpkg/work/kcmutils
SRC=$SRC_ROOT/kcmutils-6.31.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kcmutils-6.31.0.tar.xz -C "$SRC" --strip-components=1

Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.

3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

patch -p1 -i "$PORT_SRC/kcmoduleqml-backtab.patch"
patch -p1 -i "$PORT_SRC/kcmshell-page-stack-accessible.patch"
cmake -S . -B build -G Ninja \
	-D CMAKE_INSTALL_PREFIX=/usr \
	-D KDE_INSTALL_LIBDIR=lib \
	-D CMAKE_BUILD_TYPE=Release \
	-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
	-D BUILD_TESTING=OFF \
	-D KF_SKIP_PO_PROCESSING=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build

The switches, and why each is set:

The common switches of each build system are explained in the Flag glossary.

4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/kcmutils, prunes what the image does not ship, lints the tree and rolls it reproducibly:

tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
    --mtime=@$SOURCE_DATE_EPOCH \
    --use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
    -cf kcmutils-6.31.0-2.tar.xz -C "$PKG" .

5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/kcmutils, and runs the triggers its paths call for.

Contents

Installed programs: kcmshell6.

Installed libraries: libKF6KCMUtils.so, libKF6KCMUtilsCore.so, libKF6KCMUtilsQuick.so.

Installed directories: /usr/include/KF6/KCMUtils, /usr/include/KF6/KCMUtilsCore, /usr/include/KF6/KCMUtilsQuick, /usr/lib/cmake/KF6KCMUtils, /usr/lib/qt6/qml/org/kde/kcmutils, /usr/share/licenses/kcmutils.

Notes

The configure looks up the QML module org.kde.kirigami with ecm_find_qmlmodule(… REQUIRED), so kirigami must be installed before this port builds, not only at run time; the Qt Quick modules draw their pages with it.