257.15. kconfigwidgets-6.31.0
KDE Frameworks: widgets for configuration dialogs
| Version | 6.31.0, release 1 |
| Shelf | kf6 — KDE Frameworks 6: every port whose homepage is under invent.kde.org/frameworks, whatever it does |
| Phase | 43_toolkits (Toolkits), 50 of 344 in build order |
| Licence | LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND LGPL-2.0-only AND (LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) |
| Homepage | https://invent.kde.org/frameworks/kconfigwidgets |
| Build time | 1.3 SBU |
| Installed size | 1.0 MiB in 152 files |
| Recipe | ports/core/kf6/kconfigwidgets/kpkgbuild |
About
KConfigWidgets supplies the widgets KDE configuration dialogs are built from: KConfigDialog, which binds a dialog’s widgets to a KConfigSkeleton settings class, the standard actions (KStandardAction), the colour scheme menu (KColorSchemeMenu), the hamburger menu and the command bar. kxmlgui and many KDE applications link 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
kconfigwidgets-6.31.0.tar.xz(2.4 MiB)
sha256a9aa37565702ac1353c36cf16cc968c8aa336d33bcab9d0ff5419dd0b1dc92df
upstream: https://download.kde.org/stable/frameworks/6.31/kconfigwidgets-6.31.0.tar.xz
archive copy: sources-3/kf6--kconfigwidgets-6.31.0.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcodecs, kcolorscheme, kconfig, kcoreaddons, kguiaddons, ki18n, kwidgetsaddons, gettext.
Required by (89): accessibility-inspector, akonadi, breeze, calligra, ghostwriter, granatier, kalarm, kalgebra, kalzium, kamera, kanagram, kapman, kapptemplate, kblocks, kbounce, kbreakout, kcalc, kcharselect, kcmutils, kcron, kdebugsettings, kdenlive, kdepim-addons, kdepim-runtime, kdeplasma-addons, kdf, kdiamond, kdominate, keditbookmarks, kfourinline, kgeography, kget, kgoldrunner, khelpcenter, kig, kigo, killbots, kimagemapeditor, kiriki, kiten, kjumpingcube, klettres, klickety, klines, kmailtransport, kmines, kmix, kmouth, knetwalk, knights, koko, kolf, konqueror, konsole, konversation, kpat, kreversi, kshisen, ksirk, ksnakeduel, kspaceduel, ksquares, ksudoku, ksystemlog, ktimer, ktorrent, ktouch, ktuberling, kubrick, kup, kwalletmanager, kwave, kxmlgui, labplot, libgravatar, libkdegames, libkmahjongg, lokalize, merkuro, okular, oxygen, palapeli, partitionmanager, plasma-welcome, plasma-workspace, print-manager, skladnik, svgpart, sweeper.
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 kconfigwidgets'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kf6/kconfigwidgets.
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/kconfigwidgets
echo 'a9aa37565702ac1353c36cf16cc968c8aa336d33bcab9d0ff5419dd0b1dc92df kconfigwidgets-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/kconfigwidgets
SRC=$SRC_ROOT/kconfigwidgets-6.31.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kconfigwidgets-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:
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 KF_SKIP_PO_PROCESSING=ON \
-D BUILD_TESTING=OFF \
-D BUILD_DESIGNERPLUGIN=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D BUILD_DESIGNERPLUGIN=OFF— Build no Qt Designer plugin for the widgets. Upstream builds one by default, and the configure then requires Qt’sUiPluginmodule from qt6-qttools, which this port’sdependsdoes not name.-D KF_SKIP_PO_PROCESSING=ON— Build none of the gettext catalogues underpo/, whichki18n_install()would compile into.mofiles. The strings in the source are English, and the package-wide English-only rule (see Size and language policy) would remove every catalogue in another language.
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/kconfigwidgets, 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 kconfigwidgets-6.31.0-1.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/kconfigwidgets, and runs the triggers its paths call for.
Contents
Installed libraries: libKF6ConfigWidgets.so.
Installed directories: /usr/include/KF6/KConfigWidgets, /usr/lib/cmake/KF6ConfigWidgets, /usr/share/licenses/kconfigwidgets, /usr/share/locale/af, /usr/share/locale/am, /usr/share/locale/ar, /usr/share/locale/as, /usr/share/locale/ast, /usr/share/locale/az, /usr/share/locale/be, /usr/share/locale/be@latin, /usr/share/locale/bg, /usr/share/locale/bn, /usr/share/locale/bn_IN, /usr/share/locale/br, /usr/share/locale/bs, /usr/share/locale/ca@valencia, /usr/share/locale/crh, /usr/share/locale/csb, /usr/share/locale/cy, /usr/share/locale/eo, /usr/share/locale/et, /usr/share/locale/eu, /usr/share/locale/fa, /usr/share/locale/fy, /usr/share/locale/ga, /usr/share/locale/gd, /usr/share/locale/gu, /usr/share/locale/ha, /usr/share/locale/he, /usr/share/locale/hi, /usr/share/locale/hne, /usr/share/locale/hsb, /usr/share/locale/hy, /usr/share/locale/ia, /usr/share/locale/id, /usr/share/locale/ie, /usr/share/locale/kk, /usr/share/locale/km, /usr/share/locale/kn, /usr/share/locale/ko, /usr/share/locale/ku, /usr/share/locale/lb, /usr/share/locale/lt, /usr/share/locale/lv, /usr/share/locale/mai, /usr/share/locale/mk, /usr/share/locale/ml, /usr/share/locale/mr, /usr/share/locale/ms, /usr/share/locale/my, /usr/share/locale/nds, /usr/share/locale/ne, /usr/share/locale/nn, /usr/share/locale/oc, /usr/share/locale/or, /usr/share/locale/pa, /usr/share/locale/ps, /usr/share/locale/se, /usr/share/locale/si, /usr/share/locale/sq, /usr/share/locale/sr, /usr/share/locale/sr@ijekavian, /usr/share/locale/sr@ijekavianlatin, /usr/share/locale/sr@latin, /usr/share/locale/ta, /usr/share/locale/te, /usr/share/locale/tg, /usr/share/locale/th, /usr/share/locale/tok, /usr/share/locale/tt, /usr/share/locale/ug, /usr/share/locale/uz, /usr/share/locale/uz@cyrillic, /usr/share/locale/wa, /usr/share/locale/xh, /usr/share/locale/zh_HK.