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

255.9. qt5-qtwayland-5.15.19

Qt 5 Wayland platform plugin, so Qt 5 programs run as native Wayland clients, and the QtWaylandCompositor module

Version 5.15.19, release 1
Shelf qt5 — The Qt 5 modules, `group = qt5`
Phase 43_toolkits (Toolkits), 282 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 2.6 SBU
Installed size 6.2 MiB in 355 files
Recipe ports/core/qt5/qt5-qtwayland/kpkgbuild

About

Qt Wayland for Qt 5: the wayland platform plugin that runs a Qt 5 program as a native Wayland client, with its EGL integration and its shell integrations, xdg-shell among them, and the QtWaylandCompositor module for writing a compositor in Qt. The one display-server plugin qt5-qtbase builds is xcb, so without this port every Qt 5 program runs under Xwayland. The session’s QT_QPA_PLATFORM="wayland;xcb" makes the Wayland plugin the first choice (see Starting a session).

Why it is in KDOS

The comment above the 11 ports from qt5-qtbase to qt5-qttools in script/phases/43_toolkits/packages.d/qt5.txt:

For the applications with no Qt 6 release: VLC 3, KeePassXC, QSSTV, WSJT-X, Mumble, Quassel, LMMS, LibreCAD, DB Browser for SQLite and GNU Radio.

Sources

Dependencies

Depends on: qt5-qtbase, qt5-qtdeclarative, wayland, libxkbcommon, mesa, libglvnd, libdrm, vulkan-headers.

Required by (12): candle2, gnuradio, keepassxc, librecad, lmms, mumble, qsstv, qt5ct, quassel, sqlitebrowser, vlc, wsjtx.

Patches

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

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

What kpkg does

kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/qt5/qt5-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/qt5/qt5-qtwayland
echo '9efee6413514986353faace0415ad238b5ab00f8ecb0693381f563076e95ec93  qt5-qtwayland-5.15.19.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/qt5-qtwayland
SRC=$SRC_ROOT/qt5-qtwayland-5.15.19
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf qt5-qtwayland-5.15.19.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, series and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

patch -p1 -i "$PORT_SRC/0001-Update-wayland.xml-to-version-1.23.0.patch"

/usr/lib/qt5/bin/qmake -- \
	-feature-wayland-client \
	-feature-wayland-client-xdg-shell \
	-feature-wayland-egl \
	-feature-wayland-server \
	-no-feature-xcomposite-egl \
	-no-feature-xcomposite-glx
make
make INSTALL_ROOT="$PKG" 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/qt5-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 qt5-qtwayland-5.15.19-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/qt5-qtwayland, and runs the triggers its paths call for.

Contents

Installed libraries: libQt5WaylandClient.so, libQt5WaylandCompositor.so.

Installed directories: /usr/include/qt5/QtWaylandClient, /usr/include/qt5/QtWaylandCompositor, /usr/lib/cmake/Qt5WaylandClient, /usr/lib/cmake/Qt5WaylandCompositor, /usr/lib/qt5/plugins/wayland-decoration-client, /usr/lib/qt5/plugins/wayland-graphics-integration-client, /usr/lib/qt5/plugins/wayland-graphics-integration-server, /usr/lib/qt5/plugins/wayland-shell-integration, /usr/lib/qt5/qml/QtWayland, /usr/share/licenses/qt5-qtwayland.

Short descriptions

Qt5WaylandClient.pc Qt WaylandClient module
Qt5WaylandCompositor.pc Qt WaylandCompositor module