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

258.9. kdecoration-6.8.2

KDecoration3 — the plugin library KWin's window decorations are written against

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), 178 of 344 in build order
Licence LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
Homepage https://invent.kde.org/plasma/kdecoration
Build time 1.9 SBU
Installed size 508.7 KiB in 40 files
Recipe ports/core/kde/kdecoration/kpkgbuild

About

KDecoration3 is the plugin interface a window decoration is written against: the title bar, its buttons and the frame KWin draws around every window that does not draw its own. KWin loads the decoration plugins through it, and breeze, oxygen and aurorae are such plugins. It is a library with no window of its own and links nothing but Qt and ki18n.

Sources

Dependencies

Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, ki18n.

Required by (5): aurorae, breeze, kde-gtk-config, kwin, oxygen.

Patches

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

sandbox-badge.patch adds DecoratedWindowPrivateV5, whose three accessors give a decoration the sandbox engine, app id and instance id of its window’s client, and exposes them with isSandboxed() as constant properties of DecoratedWindow. kwin implements it with its own sandbox-badge.patch, and breeze draws a box glyph from it; both are built against this patched port and do not compile against an unpatched one. The change is additive, so a decoration built before it still loads, and a compositor that implements only the earlier interface answers empty strings. It is to be proposed upstream with the KWin and Breeze halves.

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 kdecoration'

What kpkg does

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

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/kdecoration
echo '9f88bed244082444787fda9c08b4c733796da3d75861abde0c25fe69b5216b35  kdecoration-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/kdecoration
SRC=$SRC_ROOT/kdecoration-6.8.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kdecoration-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:

patch -p1 -i "$PORT_SRC/sandbox-badge.patch"

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 \
	-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/kdecoration, 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 kdecoration-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/kdecoration, and runs the triggers its paths call for.

Contents

Installed libraries: libkdecorations3.so, libkdecorations3private.so.

Installed directories: /usr/include/KDecoration3, /usr/lib/cmake/KDecoration3, /usr/share/licenses/kdecoration.

Notes

The port installs two libraries: libkdecorations3, which a decoration plugin links, and libkdecorations3private, the compositor’s side of the interface, which KWin links. The private one makes no compatibility promise from one Plasma release to the next, so KWin and the decoration plugins are built against the same version of this port.