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

254.13. qt6-qtwayland-6.12.0

Qt 6 Wayland compositor library and the client decoration and shell plugins

Version 6.12.0, release 1
Shelf qt6 — The Qt 6 modules, and everything in `group = qt6`
Phase 43_toolkits (Toolkits), 27 of 344 in build order
Licence (LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) AND GPL-3.0-only
Homepage https://www.qt.io/
Build time 7.6 SBU
Installed size 7.2 MiB in 578 files
Recipe ports/core/qt6/qt6-qtwayland/kpkgbuild

About

Qt Wayland for Qt 6 is the Wayland compositor library, QtWaylandCompositor, with its Qt Quick types, and three client plugins a Qt 6 Wayland window can load: the Adwaita-style window decoration and the qt-shell and ivi-shell integrations. The Wayland platform plugin itself, and the xdg-shell integration it uses on this desktop, are in qt6-qtbase.

Why it is in KDOS

The comment above the 27 ports from qt6-qtbase to qt6-qtmqtt in script/phases/43_toolkits/packages.d/qt6.txt:

Built with the Wayland and xcb platforms. QT_QPA_PLATFORM is wayland;xcb, so a Qt application falls back to Xwayland only when the Wayland plugin cannot start, and QT_QPA_PLATFORMTHEME=kde makes it read its palette, fonts and icons from the kdeglobals kdos theme writes.

Sources

Dependencies

Depends on: cmake, ninja, pkgconf, wayland, mesa, libdrm, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg.

Required by (94): android-file-transfer, audacious, audacity, avidemux, calibre, celestia, elisa, falkon, fcitx5-qt, flameshot, freecad, gcompris, gimagereader, goldendict-ng, gqrx, gst-plugins-good, gwenview, haruna, hydrogen, inspectrum, js8call, k3b, kamoso, katomic, kblocks, kbounce, kclock, kdeconnect, kdenlive, kguiaddons, kidletime, kiwix-desktop, klog, kmahjongg, kmines, kolourpaint, konversation, kpat, krdc, krdp, kreversi, krfb, krita, kscreen, ksudoku, kwave, kwayland, kwin, kwindowsystem, layer-shell-qt, libkscreen, libplasma, librepcb, lyx, mkvtoolnix, musescore, nheko, obs-studio, openscad, pdf4qt, picard, plasma-desktop, plasma-integration, plasma-keyboard, plasma-workspace, powerdevil, qalculate-qt, qbittorrent, qcad, qdirstat, qownnotes, qt-creator, qucs-s, qutebrowser, sdrangel, selenium-webdriver-at-spi, shotcut, skanlite, solvespace, spectacle, spyder, stellarium, strawberry, syncthingtray, testdisk, texstudio, translatelocally, transmission, uranium, urh, veusz, xdg-desktop-portal-kde, yakuake, zint.

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 qt6-qtwayland'

What kpkg does

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

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/qt6/qt6-qtwayland
echo 'ae14d9bcf1bb3c300a3ab2e6a53f50284e5c6c966a4ac4cc5aedcb1bc74e4d02  qt6-qtwayland-6.12.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/qt6-qtwayland
SRC=$SRC_ROOT/qt6-qtwayland-6.12.0
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf qt6-qtwayland-6.12.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 recipe’s helpers _module, group and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

mkdir -p build && cd build
cmake .. -G Ninja -Wno-dev \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DQT_BUILD_EXAMPLES=OFF \
	-DQT_BUILD_TESTS=OFF \
	-DFEATURE_wayland_server=ON \
	-DFEATURE_wayland_compositor_quick=ON \
	-DTEST_dmabuf_client_buffer=ON \
	-DFEATURE_wayland_dmabuf_client_buffer=ON \
	-DFEATURE_wayland_decoration_adwaita=ON \
	-DFEATURE_wayland_client_qt_shell=ON \
	-DFEATURE_wayland_client_ivi_shell=ON
ninja
DESTDIR=$PKG ninja install

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/qt6-qtwayland, 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 qt6-qtwayland-6.12.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/qt6-qtwayland, and runs the triggers its paths call for.

Contents

Installed libraries: libQt6WaylandCompositor.so, libQt6WaylandCompositorIviapplication.so, libQt6WaylandCompositorPresentationTime.so, libQt6WaylandCompositorWLShell.so, libQt6WaylandCompositorXdgShell.so, libQt6WaylandEglCompositorHwIntegration.so.

Installed directories: /usr/include/qt6/QtWaylandCompositor, /usr/include/qt6/QtWaylandCompositorIviapplication, /usr/include/qt6/QtWaylandCompositorPresentationTime, /usr/include/qt6/QtWaylandCompositorWLShell, /usr/include/qt6/QtWaylandCompositorXdgShell, /usr/include/qt6/QtWaylandEglCompositorHwIntegration, /usr/lib/cmake/Qt6WaylandClientFeaturesPrivate, /usr/lib/cmake/Qt6WaylandCompositor, /usr/lib/cmake/Qt6WaylandCompositorIviapplication, /usr/lib/cmake/Qt6WaylandCompositorIviapplicationPrivate, /usr/lib/cmake/Qt6WaylandCompositorPresentationTime, /usr/lib/cmake/Qt6WaylandCompositorPresentationTimePrivate, /usr/lib/cmake/Qt6WaylandCompositorPrivate, /usr/lib/cmake/Qt6WaylandCompositorWLShell, /usr/lib/cmake/Qt6WaylandCompositorWLShellPrivate, /usr/lib/cmake/Qt6WaylandCompositorXdgShell, /usr/lib/cmake/Qt6WaylandCompositorXdgShellPrivate, /usr/lib/cmake/Qt6WaylandEglCompositorHwIntegrationPrivate, /usr/lib/qt6/plugins/wayland-graphics-integration-server, /usr/lib/qt6/qml/QtWayland, /usr/share/licenses/qt6-qtwayland.

Short descriptions

Qt6WaylandCompositor.pc Qt WaylandCompositor module
Qt6WaylandCompositorIviapplication.pc Qt WaylandCompositorIviapplication module
Qt6WaylandCompositorPresentationTime.pc Qt WaylandCompositorPresentationTime module
Qt6WaylandCompositorWLShell.pc Qt WaylandCompositorWLShell module
Qt6WaylandCompositorXdgShell.pc Qt WaylandCompositorXdgShell module

Notes

Like every Qt 6 module but qt6-qtbase, it passes no install paths of its own (see How Qt 6 is built).