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

255.1. qt5-qtbase-5.15.19

Qt 5 core, GUI, widgets, network, SQL, D-Bus and printing, with the X11 platform plugin, for programs that build against Qt 5 only

Version 5.15.19, release 1
Shelf qt5 — The Qt 5 modules, `group = qt5`
Phase 43_toolkits (Toolkits), 80 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 WITH Qt-GPL-exception-1.0
Homepage https://www.qt.io/
Build time 11.8 SBU
Installed size 64.9 MiB in 3460 files
Recipe ports/core/qt5/qt5-qtbase/kpkgbuild

About

Qt 5 is the previous major release of the Qt toolkit, kept for the ports that build against Qt 5 only. qt5-qtbase is its first module: QtCore, QtGui, QtWidgets, QtNetwork, QtSql, QtDBus, QtOpenGL and QtPrintSupport, the build tools, and the X11 platform plugin. The Wayland plugin is qt5-qtwayland. Qt 5 installs everything under qt5 names, /usr/lib/qt5, /usr/include/qt5 and /usr/share/qt5, so it sits beside qt6-qtbase without sharing a path.

Qt 5’s QtNetwork does not compile against OpenSSL 4, the tree’s openssl, so this port builds and links against the OpenSSL 3 runtime that openssl3 installs (see A second version beside the first).

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: perl, pkgconf, zlib, zstd, pcre2, icu, glib, double-conversion, harfbuzz, freetype2, fontconfig, libpng, libjpeg-turbo, sqlite, dbus, openssl3, at-spi2-core, cups, eudev, libinput, mtdev, mesa, libglvnd, vulkan-headers, vulkan-loader, libxkbcommon, libxcb, libX11, xcb-util, xcb-util-image, xcb-util-keysyms, xcb-util-renderutil, xcb-util-wm, shared-mime-info, xdg-utils, hicolor-icon-theme.

Required by (28): candle2, gnuradio, keepassxc, libdbusmenu-qt5, librecad, lmms, mumble, python3-pyqt5, qca-qt5, qsstv, qt5-qtdeclarative, qt5-qtgraphicaleffects, qt5-qtmultimedia, qt5-qtquickcontrols2, qt5-qtserialport, qt5-qtsvg, qt5-qttools, qt5-qtwayland, qt5-qtwebsockets, qt5-qtx11extras, qt5ct, quassel, qwt-qt5, smplayer, sonnet-qt5, 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-qtbase'

What kpkg does

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

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-qtbase
echo '51e91c73abacab81e64efd01bf95794e79c0e605ad80947a024769f0dd620a32  qt5-qtbase-5.15.19.tar.xz' | sha256sum -c -
echo '603f5602e2eef00d77fbd429d34dcd5822bb301757a1bc9cdb24c670f1eb859a  openssl3-3.5.9.tar.gz' | 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-qtbase
SRC=$SRC_ROOT/qt5-qtbase-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-qtbase-5.15.19.tar.xz -C "$SRC" --strip-components=1
tar --no-same-permissions --warning=no-unknown-keyword -xf openssl3-3.5.9.tar.gz -C "$SRC_ROOT"

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, _openssl, group, series and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

patch -p1 --no-backup-if-mismatch -i "$PORT_SRC/lfs64.patch"
patch -p1 --no-backup-if-mismatch -i "$PORT_SRC/qt-musl-iconv-no-bom.patch"
patch -p1 --no-backup-if-mismatch -i "$PORT_SRC/qt5-base-cflags.patch"
patch -p1 --no-backup-if-mismatch -i "$PORT_SRC/egl-x11.patch"

_ossl="$SRC_ROOT/openssl-$_openssl"
(
	cd "$_ossl"
	./config \
		--prefix=/usr \
		--libdir=lib \
		--openssldir=/etc/ssl \
		enable-ec_nistp_64_gcc_128 \
		enable-camellia \
		enable-seed \
		enable-rfc3779 \
		enable-ktls \
		enable-argon2 \
		no-mdc2 \
		no-ec2m \
		no-sm2 \
		no-sm4 \
		no-module \
		no-tests \
		shared \
		threads \
		zlib
	make build_generated
)
export CPATH="$_ossl/include"
export OPENSSL_LIBS="/usr/lib/libssl.so.3 /usr/lib/libcrypto.so.3"

./configure \
	-confirm-license -opensource -release -optimized-qmake -shared \
	-prefix /usr \
	-libdir /usr/lib \
	-archdatadir /usr/lib/qt5 \
	-bindir /usr/lib/qt5/bin \
	-libexecdir /usr/lib/qt5/libexec \
	-plugindir /usr/lib/qt5/plugins \
	-importdir /usr/lib/qt5/imports \
	-qmldir /usr/lib/qt5/qml \
	-headerdir /usr/include/qt5 \
	-datadir /usr/share/qt5 \
	-translationdir /usr/share/qt5/translations \
	-docdir /usr/share/doc/qt5 \
	-examplesdir /usr/share/doc/qt5/examples \
	-sysconfdir /etc/xdg \
	-nomake examples -nomake tests \
	-no-rpath -no-pch -no-reduce-relocations -no-separate-debug-info \
	-pkg-config \
	-dbus-linked \
	-glib \
	-icu \
	-no-mimetype-database \
	-system-doubleconversion \
	-system-pcre \
	-system-zlib \
	-zstd \
	-no-journald -no-syslog \
	-openssl-linked -dtls -ocsp \
	-no-feature-gssapi \
	-no-libproxy -system-proxies \
	-no-sctp \
	-fontconfig \
	-system-freetype \
	-system-harfbuzz \
	-system-libpng \
	-system-libjpeg \
	-gif -ico \
	-qt-libmd4c \
	-opengl desktop -egl -vulkan \
	-xcb -xcb-xlib -no-bundled-xcb-xinput -xkbcommon \
	-feature-xkbcommon-x11 \
	-feature-xcb-glx-plugin \
	-feature-xcb-egl-plugin \
	-no-feature-xcb-sm \
	-no-eglfs -no-gbm -no-kms -no-linuxfb -no-directfb -no-feature-vnc \
	-libudev -evdev -libinput -mtdev -no-tslib \
	-accessibility -feature-accessibility-atspi-bridge \
	-cups \
	-no-gtk \
	-sql-sqlite -system-sqlite \
	-no-sql-psql -no-sql-mysql -no-sql-odbc -no-sql-tds \
	-no-sql-db2 -no-sql-ibase -no-sql-oci -no-sql-sqlite2
make EXTRA_LFLAGS="$LDFLAGS"
make INSTALL_ROOT="$PKG" install

install -d "$PKG/usr/bin"
for _tool in "$PKG"/usr/lib/qt5/bin/*; do
	_tool="${_tool##*/}"
	case "$_tool" in
	*.*) ln -s "../lib/qt5/bin/$_tool" "$PKG/usr/bin/${_tool%.*}-qt5.${_tool##*.}" ;;
	*) ln -s "../lib/qt5/bin/$_tool" "$PKG/usr/bin/$_tool-qt5" ;;
	esac
done
ln -s ../lib/qt5/bin/qmake "$PKG/usr/bin/qmake"
strip --strip-debug "$PKG/usr/lib/qt5/bin/qmake"
if readelf -SW "$PKG/usr/lib/qt5/bin/qmake" | grep -q '\.debug_info'; then
	echo "qt5-qtbase: qmake carries debug information" >&2
	exit 1
fi

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

Contents

Installed programs: fixqt4headers-qt5.pl, moc-qt5, qdbuscpp2xml-qt5, qdbusxml2cpp-qt5, qlalr-qt5, qmake, qmake-qt5, qvkgen-qt5, rcc-qt5, syncqt-qt5.pl, tracegen-qt5, uic-qt5.

Installed libraries: libQt5AccessibilitySupport.a, libQt5Bootstrap.a, libQt5Concurrent.so, libQt5Core.so, libQt5DBus.so, libQt5DeviceDiscoverySupport.a, libQt5EdidSupport.a, libQt5EglSupport.a, libQt5EventDispatcherSupport.a, libQt5FbSupport.a, libQt5FontDatabaseSupport.a, libQt5GlxSupport.a, libQt5Gui.so, libQt5InputSupport.a, libQt5LinuxAccessibilitySupport.a, libQt5Network.so, libQt5OpenGL.so, libQt5OpenGLExtensions.a, libQt5PlatformCompositorSupport.a, libQt5PrintSupport.so, libQt5ServiceSupport.a, libQt5Sql.so, libQt5Test.so, libQt5ThemeSupport.a, libQt5VulkanSupport.a, libQt5Widgets.so, libQt5XcbQpa.so, libQt5XkbCommonSupport.a, libQt5Xml.so.

Installed directories: /usr/include/qt5/QtAccessibilitySupport, /usr/include/qt5/QtConcurrent, /usr/include/qt5/QtCore, /usr/include/qt5/QtDBus, /usr/include/qt5/QtDeviceDiscoverySupport, /usr/include/qt5/QtEdidSupport, /usr/include/qt5/QtEglSupport, /usr/include/qt5/QtEventDispatcherSupport, /usr/include/qt5/QtFbSupport, /usr/include/qt5/QtFontDatabaseSupport, /usr/include/qt5/QtGlxSupport, /usr/include/qt5/QtGui, /usr/include/qt5/QtInputSupport, /usr/include/qt5/QtLinuxAccessibilitySupport, /usr/include/qt5/QtNetwork, /usr/include/qt5/QtOpenGL, /usr/include/qt5/QtOpenGLExtensions, /usr/include/qt5/QtPlatformCompositorSupport, /usr/include/qt5/QtPlatformHeaders, /usr/include/qt5/QtPrintSupport, /usr/include/qt5/QtServiceSupport, /usr/include/qt5/QtSql, /usr/include/qt5/QtTest, /usr/include/qt5/QtThemeSupport, /usr/include/qt5/QtVulkanSupport, /usr/include/qt5/QtWidgets, /usr/include/qt5/QtXkbCommonSupport, /usr/include/qt5/QtXml, /usr/lib/cmake/Qt5, /usr/lib/cmake/Qt5AccessibilitySupport, /usr/lib/cmake/Qt5Concurrent, /usr/lib/cmake/Qt5Core, /usr/lib/cmake/Qt5DBus, /usr/lib/cmake/Qt5DeviceDiscoverySupport, /usr/lib/cmake/Qt5EdidSupport, /usr/lib/cmake/Qt5EglSupport, /usr/lib/cmake/Qt5EventDispatcherSupport, /usr/lib/cmake/Qt5FbSupport, /usr/lib/cmake/Qt5FontDatabaseSupport, /usr/lib/cmake/Qt5GlxSupport, /usr/lib/cmake/Qt5InputSupport, /usr/lib/cmake/Qt5LinuxAccessibilitySupport, /usr/lib/cmake/Qt5Network, /usr/lib/cmake/Qt5OpenGL, /usr/lib/cmake/Qt5OpenGLExtensions, /usr/lib/cmake/Qt5PlatformCompositorSupport, /usr/lib/cmake/Qt5PrintSupport, /usr/lib/cmake/Qt5ServiceSupport, /usr/lib/cmake/Qt5Sql, /usr/lib/cmake/Qt5Test, /usr/lib/cmake/Qt5ThemeSupport, /usr/lib/cmake/Qt5VulkanSupport, /usr/lib/cmake/Qt5Widgets, /usr/lib/cmake/Qt5XcbQpa, /usr/lib/cmake/Qt5XkbCommonSupport, /usr/lib/cmake/Qt5Xml, /usr/lib/qt5/mkspecs/aix-g++, /usr/lib/qt5/mkspecs/aix-g++-64, /usr/lib/qt5/mkspecs/android-clang, /usr/lib/qt5/mkspecs/common, /usr/lib/qt5/mkspecs/cygwin-g++, /usr/lib/qt5/mkspecs/darwin-g++, /usr/lib/qt5/mkspecs/devices, /usr/lib/qt5/mkspecs/dummy, /usr/lib/qt5/mkspecs/features/android, /usr/lib/qt5/mkspecs/features/data, /usr/lib/qt5/mkspecs/features/mac, /usr/lib/qt5/mkspecs/features/uikit, /usr/lib/qt5/mkspecs/features/unix, /usr/lib/qt5/mkspecs/features/unsupported, /usr/lib/qt5/mkspecs/features/wasm, /usr/lib/qt5/mkspecs/features/win32, /usr/lib/qt5/mkspecs/features/winrt, /usr/lib/qt5/mkspecs/freebsd-clang, /usr/lib/qt5/mkspecs/freebsd-g++, /usr/lib/qt5/mkspecs/haiku-g++, /usr/lib/qt5/mkspecs/hpuxi-g++-64, /usr/lib/qt5/mkspecs/hurd-g++, /usr/lib/qt5/mkspecs/integrity-armv7, /usr/lib/qt5/mkspecs/integrity-armv7-imx6, /usr/lib/qt5/mkspecs/integrity-armv8-rcar, /usr/lib/qt5/mkspecs/integrity-x86, /usr/lib/qt5/mkspecs/linux-aarch64-gnu-g++, /usr/lib/qt5/mkspecs/linux-arm-gnueabi-g++, /usr/lib/qt5/mkspecs/linux-clang, /usr/lib/qt5/mkspecs/linux-clang-32, /usr/lib/qt5/mkspecs/linux-clang-libc++, /usr/lib/qt5/mkspecs/linux-clang-libc++-32, /usr/lib/qt5/mkspecs/linux-g++, /usr/lib/qt5/mkspecs/linux-g++-32, /usr/lib/qt5/mkspecs/linux-g++-64, /usr/lib/qt5/mkspecs/linux-icc, /usr/lib/qt5/mkspecs/linux-icc-32, /usr/lib/qt5/mkspecs/linux-icc-64, /usr/lib/qt5/mkspecs/linux-icc-k1om, /usr/lib/qt5/mkspecs/linux-llvm, /usr/lib/qt5/mkspecs/linux-lsb-g++, /usr/lib/qt5/mkspecs/lynxos-g++, /usr/lib/qt5/mkspecs/macx-clang, /usr/lib/qt5/mkspecs/macx-g++, /usr/lib/qt5/mkspecs/macx-icc, /usr/lib/qt5/mkspecs/macx-ios-clang, /usr/lib/qt5/mkspecs/macx-tvos-clang, /usr/lib/qt5/mkspecs/macx-watchos-clang, /usr/lib/qt5/mkspecs/macx-xcode, /usr/lib/qt5/mkspecs/netbsd-g++, /usr/lib/qt5/mkspecs/openbsd-g++, /usr/lib/qt5/mkspecs/qnx-aarch64le-qcc, /usr/lib/qt5/mkspecs/qnx-armle-v7-qcc, /usr/lib/qt5/mkspecs/qnx-x86-64-qcc, /usr/lib/qt5/mkspecs/qnx-x86-qcc, /usr/lib/qt5/mkspecs/solaris-cc, /usr/lib/qt5/mkspecs/solaris-cc-64, /usr/lib/qt5/mkspecs/solaris-cc-64-stlport, /usr/lib/qt5/mkspecs/solaris-cc-stlport, /usr/lib/qt5/mkspecs/solaris-g++, /usr/lib/qt5/mkspecs/solaris-g++-64, /usr/lib/qt5/mkspecs/unsupported, /usr/lib/qt5/mkspecs/wasm-emscripten, /usr/lib/qt5/mkspecs/win32-arm64-msvc2017, /usr/lib/qt5/mkspecs/win32-clang-g++, /usr/lib/qt5/mkspecs/win32-clang-msvc, /usr/lib/qt5/mkspecs/win32-g++, /usr/lib/qt5/mkspecs/win32-icc, /usr/lib/qt5/mkspecs/win32-icc-k1om, /usr/lib/qt5/mkspecs/win32-msvc, /usr/lib/qt5/mkspecs/winrt-arm-msvc2015, /usr/lib/qt5/mkspecs/winrt-arm-msvc2017, /usr/lib/qt5/mkspecs/winrt-arm-msvc2019, /usr/lib/qt5/mkspecs/winrt-arm64-msvc2017, /usr/lib/qt5/mkspecs/winrt-arm64-msvc2019, /usr/lib/qt5/mkspecs/winrt-x64-msvc2015, /usr/lib/qt5/mkspecs/winrt-x64-msvc2017, /usr/lib/qt5/mkspecs/winrt-x64-msvc2019, /usr/lib/qt5/mkspecs/winrt-x86-msvc2015, /usr/lib/qt5/mkspecs/winrt-x86-msvc2017, /usr/lib/qt5/mkspecs/winrt-x86-msvc2019, /usr/lib/qt5/plugins/bearer, /usr/lib/qt5/plugins/generic, /usr/lib/qt5/plugins/platforminputcontexts, /usr/lib/qt5/plugins/printsupport, /usr/lib/qt5/plugins/sqldrivers, /usr/lib/qt5/plugins/xcbglintegrations, /usr/share/doc/qt5, /usr/share/licenses/qt5-qtbase.

Short descriptions

Qt5Concurrent.pc Qt Concurrent module
Qt5Core.pc Qt Core module
Qt5DBus.pc Qt DBus module
Qt5Gui.pc Qt Gui module
Qt5Network.pc Qt Network module
Qt5OpenGL.pc Qt OpenGL module
Qt5OpenGLExtensions.pc Qt OpenGLExtensions module
Qt5PrintSupport.pc Qt PrintSupport module
Qt5Sql.pc Qt Sql module
Qt5Test.pc Qt Unit Testing Library
Qt5Widgets.pc Qt Widgets module
Qt5Xml.pc Qt Xml module

Notes

After the install, build.sh links every tool in /usr/lib/qt5/bin into /usr/bin with a -qt5 suffix, such as moc-qt5 and uic-qt5; a name with an extension takes the suffix before it, so syncqt.pl becomes syncqt-qt5.pl. It links qmake under its plain name as well, since Qt 6 puts only qmake6 in /usr/bin.

qmake’s bootstrap makefile puts -g on every compile line, and takes its other compile flags from the mkspec’s plain assignments rather than from the tree’s CFLAGS, so build.sh runs strip --strip-debug on the installed qmake and fails the build if it still carries .debug_info.