354.21. kdeplasma-addons-6.8.2
Extra Plasma widgets, runners, wallpapers, window switchers, the desktop cube and accent-coloured keyboard lights
| Version | 6.8.2, release 1 |
| Shelf | kde — KDE Plasma and Gear platform pieces outside Frameworks that have no other domain: KIO workers, thumbnailers, Plasma integration, KDE Wayland glue |
| Phase | 50_desktop (Desktop), 44 of 92 in build order |
| Licence | GPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND LGPL-2.1-or-later AND LGPL-2.0-or-later AND LGPL-2.0-only AND BSD-3-Clause AND GPL-3.0-or-later AND LicenseRef-KDE-Accepted-GPL AND LGPL-3.0-or-later |
| Homepage | https://invent.kde.org/plasma/kdeplasma-addons |
| Build time | 13.0 SBU |
| Installed size | 16.8 MiB in 170 files |
| Recipe | ports/core/kde/kdeplasma-addons/kpkgbuild |
About
kdeplasma-addons is the second half of Plasma’s widget set: the weather, timer, notes, colour picker, quick launch, Konsole and Kate profile, user switcher and fifteen-puzzle widgets among others, the unit converter, character, colour, date, dictionary and spell-check runners for KRunner, the picture-of-the-day and other wallpapers, the cover, flip and big-icons window switchers, the desktop cube effect, and the alternate and astronomical calendar plugins. It also carries kameleon, the kded module that colours a keyboard’s LEDs with the accent colour.
Why it is in KDOS
The comment above it in script/phases/50_desktop/packages.txt:
Extra widgets, runners, wallpapers and window switchers.
Sources
kdeplasma-addons-6.8.2.tar.xz(1.1 MiB)
sha25689458bb18c2d055f582467d920c413712aa5b639404a36d37643475b22bbf364
upstream: https://download.kde.org/stable/plasma/6.8.2/kdeplasma-addons-6.8.2.tar.xz
archive copy: sources-3/kde--kdeplasma-addons-6.8.2.tar.xzkdeplasma-addons-vendor-6.8.2.tar.xz(6.6 MiB)
sha256b87e525953b3b25e2892b819b7ac0ca425a459dcd3b63b126bfe19165929dd1f
a vendor bundle: the dependencies upstream’s own tool would download, packed once
archive copy: sources-3/kde--kdeplasma-addons-vendor-6.8.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, pkgconf, qt6-qtbase, qt6-qtdeclarative, qt6-qtquick3d, qt6-qt5compat, kconfig, kcoreaddons, kdbusaddons, kconfigwidgets, kdeclarative, kglobalaccel, kguiaddons, kholidays, ki18n, kauth, kio, kcmutils, knotifications, krunner, kservice, sonnet, kunitconversion, kxmlgui, knewstuff, kjobwidgets, kpackage, ksvg, kwidgetsaddons, kiconthemes, kwindowsystem, kirigami, kirigami-addons, kitemmodels, libplasma, plasma-workspace, kwin, icu, eudev, rust, corrosion.
Required by (1): kde-plasma.
Patches
build.sh applies these; kpkg applies nothing by itself.
potd-default-provider.patch makes the Picture of the Day wallpaper start on Bing’s picture instead of NASA’s Astronomy Picture of the Day. The APOD provider reads https://apod.nasa.gov/apod/, which redirects to a page with none of the image/ links it parses, so it can only report an error, and build.sh deletes it (below); a wallpaper left at the apod default would then name a provider that does not exist and show nothing. The default is a value in the package’s main.xml, which no build switch or configuration file of the system’s sets. KDOS’s own; to be offered upstream with the provider’s removal or repair.
potd-default-provider.patch— potd: default the Picture of the Day wallpaper to the Bing providerThe Astronomy Picture of the Day provider reads https://apod.nasa.gov/apod/, which redirects to a page with none of the image links the provider looks for, so a wallpaper left at an apod default shows no picture. Bing's provider loads.
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/50_desktop/phase.env && kpkg install kdeplasma-addons'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kde/kdeplasma-addons.
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/kde/kdeplasma-addons
echo '89458bb18c2d055f582467d920c413712aa5b639404a36d37643475b22bbf364 kdeplasma-addons-6.8.2.tar.xz' | sha256sum -c -
echo 'b87e525953b3b25e2892b819b7ac0ca425a459dcd3b63b126bfe19165929dd1f kdeplasma-addons-vendor-6.8.2.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/kdeplasma-addons
SRC=$SRC_ROOT/kdeplasma-addons-6.8.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kdeplasma-addons-6.8.2.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 recipe’s helpers vendordir, group and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
patch -p1 -i "$PORT_SRC/potd-default-provider.patch"
tar xf "$PORT_SRC/$name-vendor-$version.tar.xz" -C kdeds/kameleon/qmk/kameleon-qmk-helper
export CARGO_HOME="$SRC_ROOT/.cargo"
export RUSTFLAGS="-C target-feature=-crt-static"
export CARGO_NET_OFFLINE=true
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 \
-D CMAKE_REQUIRE_FIND_PACKAGE_ICU=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineQuick=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Quick3D=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6KirigamiAddons=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6ItemModels=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm "$PKG/usr/lib/qt6/plugins/plasma/applets/org.kde.plasma.comic.so" \
"$PKG/usr/lib/qt6/plugins/kf6/packagestructure/plasma_comic.so" \
"$PKG/usr/share/knsrcfiles/comic.knsrc" \
"$PKG/usr/lib/qt6/plugins/potd/plasma_potd_apodprovider.so"
The switches, and why each is set:
-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).-D CMAKE_REQUIRE_FIND_PACKAGE_ICU=ON— Make icu a requirement. Upstream builds the alternate calendar plugin’s Chinese, Indian, Hebrew, Islamic and Persian calendars from ICU only when it is found, and leaves only the systemsQCalendarknows otherwise.-D CMAKE_DISABLE_FIND_PACKAGE_Qt6WebEngineQuick=ON— Leave out the dictionary and web browser widgets, the two Qt WebEngine pages, which upstream builds whenever Qt WebEngine’s Quick module is found. The installation medium carries this package with the session, and linking either widget would put qt6-qtwebengine, a quarter of a gigabyte, on it (see The base image). The dictionary runner in KRunner is not a WebEngine page and is built.-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Quick3D=ON— Make qt6-qtquick3d a requirement. The desktop cube effect is QML that imports Qt Quick 3D at run time; upstream looks for it only to report it.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6KirigamiAddons=ON— Make kirigami-addons a requirement; the user switcher imports it at run time.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6ItemModels=ON— Make kitemmodels a requirement; the dictionary, Kate sessions and Konsole profiles widgets import it at run time.CARGO_HOME="$SRC_ROOT/.cargo"— Keep cargo’s own registry and cache in the work directory, so the build writes nothing to the builder’s home and starts from the same empty state on every machine.RUSTFLAGS="-C target-feature=-crt-static"— Link the Rust helper against musl dynamically. The musl target links statically unless told otherwise; see rust.CARGO_NET_OFFLINE=true— Keep cargo off the network, so a crate missing from the bundle fails the build by name instead of being fetched.
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/kdeplasma-addons, 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 kdeplasma-addons-6.8.2-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/kdeplasma-addons, and runs the triggers its paths call for.
Contents
Installed libraries: libplasmapotdprovidercore.so, libplasmaweatherdata.so, libplasmaweatherion.so.
Installed directories: /usr/include/plasma/potdprovider, /usr/include/plasma/weather, /usr/lib/cmake/PlasmaPotdProvider, /usr/lib/cmake/PlasmaWeather, /usr/lib/qt6/plugins/plasma/weather_ions, /usr/lib/qt6/plugins/plasmacalendarplugins/alternatecalendar, /usr/lib/qt6/plugins/plasmacalendarplugins/astronomicalevents, /usr/lib/qt6/plugins/potd, /usr/lib/qt6/qml/org/kde/plasma/private/alternatecalendarconfig, /usr/lib/qt6/qml/org/kde/plasma/private/fifteenpuzzle, /usr/lib/qt6/qml/org/kde/plasma/private/profiles, /usr/lib/qt6/qml/org/kde/plasma/wallpapers/potd, /usr/lib/qt6/qml/org/kde/plasmacalendar, /usr/share/kwin/effects/cube, /usr/share/kwin/scripts/virtualdesktopsonlyonprimary, /usr/share/kwin/tabbox/big_icons, /usr/share/kwin/tabbox/compact, /usr/share/kwin/tabbox/coverswitch, /usr/share/kwin/tabbox/flipswitch, /usr/share/kwin/tabbox/sidebar, /usr/share/licenses/kdeplasma-addons, /usr/share/plasma/desktoptheme/default/weather, /usr/share/plasma/plasmoids/org.kde.plasma.kickerdash, /usr/share/plasma/wallpapers/org.kde.haenau, /usr/share/plasma/wallpapers/org.kde.hunyango, /usr/share/plasma/wallpapers/org.kde.potd, /usr/share/plasma/wallpapers/org.kde.tiled, /usr/share/plasma/weather.
Notes
build.sh deletes two things the build has no switch for. The Comic Strip widget (org.kde.plasma.comic.so, its plasma_comic package structure and comic.knsrc) installs no comic source of its own and gets every one through KNewStuff, which the system-wide ghns=false restriction turns off (see Offline by construction), so on KDOS it could only ever say that no comics are installed. The APOD provider, plasma_potd_apodprovider.so, can only fail, as the patch above says; the wallpaper lists the providers it finds, so Astronomy Picture of the Day is not among them.
kameleon drives two kinds of keyboard. Keyboards whose LEDs the kernel exposes under /sys/class/leds are written through a KAuth helper, kameleonhelper. QMK keyboards that speak the VIA protocol are written by kameleon-qmk-helper, a Rust program built through corrosion from kdeds/kameleon/qmk/kameleon-qmk-helper, which runs as root on the system bus (org.kde.kameleon.qmk.helper, started by D-Bus activation) and talks to the keyboard’s HID device. Corrosion’s find_package(Corrosion REQUIRED) has no switch, so the Rust toolchain is a build requirement of the whole port.
The helper’s 100 crates come from a vendor bundle, kdeplasma-addons-vendor-<version>.tar.xz. vendordir = kdeds/kameleon/qmk/kameleon-qmk-helper makes ports/fetch run cargo vendor beside the helper’s own Cargo.toml and Cargo.lock, and build.sh unpacks the bundle into the same directory: Corrosion runs cargo with the manifest’s directory as its working directory, and cargo finds the bundle’s .cargo/config.toml by walking up from there (see Where the bundle goes). The bundle’s sha256 = line is its identity, so a version bump means a new bundle and ports/publish kdeplasma-addons.
The hidapi crate the helper reaches through qmk-via-api is built with its default linux-static-hidraw feature, so it compiles its own copy of hidapi’s hidraw backend (hidapi 0.15.0, in crate 2.6.7) into the helper and links eudev’s libudev; it does not use the hidapi port, and its copy is updated only with the bundle. It is a bundled copy in the sense of Bundled copies.
The window switchers and the cube are KWin packages that import org.kde.kwin, and the clock and user-switcher widgets import modules of plasma-workspace; both are in depends for run time. The cover and flip switchers and the picture-of-the-day wallpaper’s chooser import Qt5Compat.GraphicalEffects from qt6-qt5compat, which the configure does not look for; without it those three fail to load.
The configure looks for Purpose quietly, but nothing this package builds links or imports it, so it is not in depends.
Two of the widgets reach the network, and only once somebody adds one: the weather widget asks its forecast providers, and the picture-of-the-day wallpaper downloads an image a day.