258.5. plasma-activities-6.8.2
Client library and QML bindings for Plasma activities, and the plasma-activities-cli6 tool
| 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 | 43_toolkits (Toolkits), 135 of 344 in build order |
| Licence | (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND GPL-2.0-or-later AND LGPL-2.0-or-later AND MIT |
| Homepage | https://invent.kde.org/plasma/plasma-activities |
| Build time | 1.1 SBU |
| Installed size | 842.8 KiB in 36 files |
| Recipe | ports/core/kde/plasma-activities/kpkgbuild |
About
Plasma Activities is the client side of activities: separate sets of windows, files and widgets a person switches between. The library and its QML module, org.kde.activities, ask the activity manager, kactivitymanagerd, over D-Bus which activities exist and which one is current, and tell it which files and applications are in use so it can keep its record. plasma-activities-cli6 lists, creates, switches and removes activities from a shell. The Plasma shell and KWin link it, and so do Gwenview, kio-extras and the PIM modules that tag what they open.
Sources
plasma-activities-6.8.2.tar.xz(62.1 KiB)
sha2565dfb5ac7658c0315f26fe8bd3cec4abd5c74ba1db34f6ec17c49cc24646938f4
upstream: https://download.kde.org/stable/plasma/6.8.2/plasma-activities-6.8.2.tar.xz
archive copy: sources-3/kde--plasma-activities-6.8.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kconfig, kcoreaddons.
Required by (21): akregator, gwenview, kaddressbook, kdepim-addons, kdepim-runtime, kio-extras, kmail, konqueror, korganizer, kwin, libplasma, mailcommon, pimcommon, plasma-activities-stats, plasma-browser-integration, plasma-desktop, plasma-vault, plasma-workspace, plasma5support, powerdevil, systemsettings.
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 plasma-activities'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kde/plasma-activities.
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/plasma-activities
echo '5dfb5ac7658c0315f26fe8bd3cec4abd5c74ba1db34f6ec17c49cc24646938f4 plasma-activities-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/plasma-activities
SRC=$SRC_ROOT/plasma-activities-6.8.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf plasma-activities-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 group 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 BUILD_TESTING=OFF \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-D PLASMA_ACTIVITIES_LIBRARY_ONLY=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D KF_SKIP_PO_PROCESSING=ON— Passed as by every KDE port, so a later release that adds translations stays English-only with no change to the recipe (see Size and language policy). This release carries none, and CMake reports the variable as unused.-D PLASMA_ACTIVITIES_LIBRARY_ONLY=OFF— Build the QML module beside the library. It is upstream’s default, and Plasma’s activity switcher is written in QML that imports the module.
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/plasma-activities, 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 plasma-activities-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/plasma-activities, and runs the triggers its paths call for.
Contents
Installed programs: plasma-activities-cli6.
Installed libraries: libPlasmaActivities.so.
Installed directories: /usr/include/PlasmaActivities, /usr/lib/cmake/PlasmaActivities, /usr/lib/qt6/qml/org/kde/activities, /usr/share/licenses/plasma-activities.
Short descriptions
PlasmaActivities.pc |
Plasma Activities is a C++ library for using Plasma's activities |
Notes
The library does nothing without kactivitymanagerd, the daemon that owns org.kde.ActivityManager on the session bus. It is a session port, in 50_desktop, so this library, which is built in 43_toolkits for the applications that link it, cannot name it in depends; the kde-plasma meta port installs it. Without the daemon every activity call returns an empty answer and an application that links the library runs as though activities were off.