254.1. qt6-qtbase-6.12.0
Qt 6 core, GUI, widgets, network, SQL, D-Bus and printing, with the Wayland and X11 platform plugins
The build-state snapshot was taken from 6.12.0-1; this recipe is 6.12.0-2, so the size, time and contents below describe the earlier build.
| Version | 6.12.0, release 2 |
| Shelf | qt6 — The Qt 6 modules, and everything in `group = qt6` |
| Phase | 43_toolkits (Toolkits), 1 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 | 9.4 SBU |
| Installed size | 83.8 MiB in 4578 files |
| Recipe | ports/core/qt6/qt6-qtbase/kpkgbuild |
About
Qt 6 is the C++ application toolkit that KDE’s applications, and many others in the tree, are written in. qt6-qtbase is its first module: QtCore, QtGui, QtWidgets, QtNetwork, QtSql, QtDBus, QtOpenGL, QtPrintSupport and QtConcurrent, the build tools (moc, rcc, uic, qmake6), and the platform plugins that put a window on a screen. Every other qt6-* port builds on it and inherits its install layout. It is the desktop’s toolkit as well: Plasma, KDE Frameworks and KDOS’s own desktop code are Qt 6, while KDOS’s system programs, its root daemons and the libk* libraries link no toolkit (see The desktop is KDE Plasma).
What this recipe decides for the whole Qt 6 set, and why, is in How Qt 6 is built; the bullets below are the switch-by-switch reading of it.
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 kdeglobalskdos themewrites.
Sources
qt6-qtbase-6.12.0.tar.xz(48.8 MiB)
sha256a951bd163c7b80fc6b8c88d7668fb56abf91c152373e13c10666763238131307
upstream: https://download.qt.io/official_releases/qt/6.12/6.12.0/submodules/qtbase-everywhere-src-6.12.0.tar.xz
archive copy: sources-4/qt6--qt6-qtbase-6.12.0.tar.xz
Dependencies
Depends on: cmake, ninja, pkgconf, zlib, zstd, brotli, openssl, krb5, pcre2, icu, glib, double-conversion, harfbuzz, freetype2, fontconfig, libpng, libjpeg-turbo, sqlite, postgresql, dbus, at-spi2-core, cups, liburing, eudev, libinput, mtdev, libdrm, mesa, libglvnd, vulkan-headers, wayland, libxkbcommon, libxcb, libX11, xcb-util, xcb-util-image, xcb-util-keysyms, xcb-util-renderutil, xcb-util-wm, xcb-util-cursor, tzdata, shared-mime-info, hicolor-icon-theme.
Required by (542): accessibility-inspector, akonadi, akonadi-calendar, akonadi-calendar-tools, akonadi-contacts, akonadi-import-wizard, akonadi-mime, akonadi-search, akonadiconsole, akregator, alligator, analitza, android-file-transfer, angelfish, appstream, arianna, ark, artikulate, attica, audacious, audacious-plugins, audacity, audex, audiocd-kio, audiotube, aurorae, avidemux, avogadrolibs, baloo, baloo-widgets, blinken, bluedevil, bluez-qt, bomber, bovo, breeze, breeze-icons, calendarsupport, calibre, calindori, calligra, cantor, celestia, converseen, digikam, discover, dolphin, dolphin-plugins, dragon, elisa, eventviews, falkon, fcitx5-configtool, fcitx5-qt, ffmpegthumbs, filelight, flameshot, frameworkintegration, francis, freecad, futuresql, gcompris, ghostwriter, gimagereader, glaxnimate, gnuplot, goldendict-ng, gpxsee, gqrx, granatier, grantlee-editor, grantleetheme, gst-plugins-good, gwenview, haruna, hydrogen, incidenceeditor, inspectrum, isoimagewriter, itinerary, js8call, juk, k3b, kaccounts-integration, kaccounts-providers, kactivitymanagerd, kaddressbook, kajongg, kalarm, kalgebra, kalk, kalm, kalzium, kamera, kamoso, kanagram, kapman, kapptemplate, karchive, kasts, kate, katomic, kauth, kbackup, kblackbox, kblocks, kbookmarks, kbounce, kbreakout, kbruch, kcachegrind, kcalc, kcalendarcore, kcalutils, kcharselect, kclock, kcm-kdos-boxes, kcm-kdos-firewall, kcm-kdos-health, kcm-kdos-look, kcm-kdos-system, kcmutils, kcodecs, kcolorchooser, kcolorpicker, kcolorscheme, kcompletion, kconfig, kconfigwidgets, kcontacts, kcoreaddons, kcrash, kcron, kdav, kdbusaddons, kddockwidgets, kde-cli-tools, kde-dev-utils, kde-gtk-config, kde-inotify-survey, kdebugsettings, kdeclarative, kdeconnect, kdecoration, kded, kded-kdos, kdeedu-data, kdegraphics-mobipocket, kdegraphics-thumbnailers, kdenetwork-filesharing, kdenlive, kdepim-addons, kdepim-runtime, kdeplasma-addons, kdesdk-kio, kdesdk-thumbnailers, kdesu, kdev-php, kdev-python, kdevelop, kdevelop-pg-qt, kdf, kdiagram, kdialog, kdiamond, kdiff3, kdnssd, kdoctools, kdominate, kdos-discover, kdos-installer-gui, kdos-transcribe, kdsingleapplication, kdsoap, kdsoap-ws-discovery-client, keditbookmarks, keepsecret, keysmith, kfilemetadata, kfind, kfourinline, kgeography, kget, kglobalaccel, kglobalacceld, kgoldrunner, kgpg, kgraphviewer, kguiaddons, khangman, khealthcertificate, khelpcenter, kholidays, ki18n, kiconthemes, kidentitymanagement, kidletime, kig, kigo, killbots, kimageannotator, kimageformats, kimagemapeditor, kimap, kinfocenter, kio, kio-admin, kio-extras, kio-fuse, kio-gdrive, kio-library, kio-zeroconf, kirigami, kirigami-addons, kirigami-app-components, kirigami-gallery, kiriki, kitemmodels, kitemviews, kiten, kitinerary, kiwix-desktop, kjobwidgets, kjumpingcube, kldap, kleopatra, klettres, klickety, klines, klog, kmahjongg, kmail, kmail-account-wizard, kmailtransport, kmbox, kmenuedit, kmime, kmines, kmix, kmouth, kmplot, knavalbattle, knetwalk, knewstuff, knights, knighttime, knotifications, knotifyconfig, koko, kolf, kollision, kolourpaint, kompare, kongress, konqueror, konquest, konsole, kontact, kontactinterface, kontrast, konversation, kopeninghours, korganizer, kosmindoormap, kpackage, kparts, kpat, kpeople, kpimtextedit, kpipewire, kpkpass, kplotting, kpmcore, kpty, kpublictransport, kqtquickcharts, kquickcharts, kquickimageeditor, krdc, krdp, krecorder, kreversi, krfb, krita, kruler, krunner, ksanecore, kscreen, kscreenlocker, kseexpr, kservice, kshisen, ksirk, ksmtp, ksnakeduel, kspaceduel, ksquares, ksshaskpass, kstatusnotifieritem, ksudoku, ksvg, ksystemlog, ksystemstats, ksystemstats-kdos, kteatime, ktextaddons, ktexteditor, ktexttemplate, ktextwidgets, ktimer, ktnef, ktorrent, ktouch, ktrip, ktuberling, kturtle, kubrick, kunifiedpush, kunitconversion, kup, kwallet, kwalletmanager, kwave, kwayland, kweather, kweathercore, kwidgetsaddons, kwin, kwindowsystem, kwordquiz, kwrited, kxmlgui, labplot, layer-shell-qt, libaccounts-qt, libdbusmenu-lxqt, libgravatar, libkcddb, libkdcraw, libkdegames, libkdepim, libkeduvocdocument, libkexiv2, libkgapi, libkleo, libkmahjongg, libkomparediff2, libksane, libkscreen, libksieve, libksysguard, libktorrent, libplasma, libqaccessibilityclient, libquotient, libreoffice, librepcb, lokalize, lskat, lyx, mailcommon, mailimporter, marble, markdownpart, massif-visualizer, mbox-importer, merkuro, messagelib, milou, mimetreeparser, minuet, mkvtoolnix, mlt, modemmanager-qt, mpvqt, musescore, neochat, networkmanager-qt, nextpnr, nheko, obs-studio, ocean-sound-theme, octave, okular, opencv, openscad, organicmaps, oxygen, oxygen-sounds, palapeli, parley, partitionmanager, pdf4qt, pencil2d, phonon, phonon-backend-vlc, picard, picmi, pim-data-exporter, pim-sieve-editor, pimcommon, pinentry, pivy, plasma-activities, plasma-activities-stats, plasma-browser-integration, plasma-camera, plasma-desktop, plasma-disks, plasma-integration, plasma-keyboard, plasma-nm, plasma-pa, plasma-phonebook, plasma-sdk, plasma-setup, plasma-systemmonitor, plasma-thunderbolt, plasma-vault, plasma-wayland-protocols, plasma-welcome, plasma-workspace, plasma-workspace-wallpapers, plasma5support, plasmatube, plasmoid-kdos-checklist, plasmoid-kdos-privacy, polkit-kde-agent-1, polkit-qt6, poppler, powerdevil, poxml, print-manager, prison, pulseaudio-qt, purpose, python3-pyqt6, python3-pyqt6-webengine, python3-pyside6, python3-qscintilla, qalculate-qt, qbittorrent, qca, qcad, qcoro, qdirstat, qgis, qgpgme, qmapshack, qmlkonsole, qownnotes, qqc2-breeze-style, qqc2-desktop-style, qrca, qscintilla, qt-creator, qt6-qt3d, qt6-qt5compat, qt6-qtcharts, qt6-qtconnectivity, qt6-qtdeclarative, qt6-qtgraphs, qt6-qthttpserver, qt6-qtimageformats, qt6-qtlanguageserver, qt6-qtlocation, qt6-qtmqtt, qt6-qtmultimedia, qt6-qtnetworkauth, qt6-qtpositioning, qt6-qtquick3d, qt6-qtremoteobjects, qt6-qtscxml, qt6-qtsensors, qt6-qtserialport, qt6-qtshadertools, qt6-qtspeech, qt6-qtsvg, qt6-qttools, qt6-qttranslations, qt6-qtvirtualkeyboard, qt6-qtwayland, qt6-qtwebchannel, qt6-qtwebengine, qt6-qtwebsockets, qt6-qtwebview, qtforkawesome, qtkeychain, qtspell, qtutilities, quazip, qucs-s, qutebrowser, qv4l2, qwt, recoll, rkward, rocs, sddm, sddm-kcm, sdrangel, selenium-webdriver-at-spi, shotcut, signon-kwallet-extension, signon-plugin-oauth2, signon-ui, signond, skanlite, skanpage, skladnik, solid, solvespace, sonnet, soqt, spectacle, stellarium, step, strawberry, suil, svgpart, sweeper, syncthingtray, syndication, syntax-highlighting, systemsettings, telly-skout, testdisk, texstudio, threadweaver, tokodon, translatelocally, transmission, umbrello, union, uranium, veusz, wireshark, xdg-desktop-portal-kde, yakuake, zanshin, zeal, zint.
Patches
build.sh applies these; kpkg applies nothing by itself.
musl-dns-resolver.patch— makes QtNetwork’s DNS lookups callres_mkquery()andres_send(), which musl has, in place of theres_nmkquery()andres_nsend()that take a resolver state, which it does not, and changes the configure test that decides whetherlibresolvis usable to match. It adds a small header,resolv_compat.h, givingres_ninit()andres_nclose()over musl’s global resolver state.musl-lfs64.patch— makes Qt’s POSIX platform header map its file calls to the plain names,stat,open,lseek,mmapand the rest, rather than their*64forms. musl’soff_tis 64 bits already, and musl declares the*64names only under_LARGEFILE64_SOURCE, so code that includes the header would otherwise fail to compile.no-source-tree.patch— writes an emptyQT_SOURCE_TREEinto the installedQtBuildInternalsExtra.cmake. Upstream records the path of the source tree there, which in a package is the build directory under/var/cache/kpkg.openurl-local-file.patch— Open a local file URL without the OpenURI portalQDesktopServices::openUrl() sends a local file that has a fragment or a query, such as file:///usr/share/doc/HTML/en/kdos/04-programs/kdos-settings.html#kdos-look, to the platform's openUrl() rather than openDocument(), so that the fragment is kept, and openUrl() hands every URL to the desktop portal's OpenURI while a portal is running. OpenURI refuses a file: URI, and its answer comes on the request object after the call has returned success, so Qt never falls back and nothing opens: not a Help button that names a section of a local HTML handbook, and not Qt.openUrlExternally() on a local page at an anchor.
With this change a local file outside a sandbox goes to the launcher, xdg-open, with its fragment; in a Plasma session that runs kde-open, which opens the page in the default browser at the section. Inside a Flatpak or Snap sandbox, where no launcher reaches the host, it goes to the portal's OpenFile, which takes the file without its fragment.
To be offered upstream against qt/qtbase.
print-default-filename.patch— Give Print to File a default file name on every platformThe Unix print dialog fills its output field with the home or current directory and adds print.pdf, or the document's name with .pdf, only when the platform plugin is xcb. On Wayland the field holds a bare directory, and pressing Print answers that the path is a directory, so every print to file needs a name typed first. With this change every platform gets the file name xcb gets.
To be offered upstream against qt/qtbase.
wayland-cancel-read.patch— in the Wayland plugin’s event reader thread, when the display is shutting down after the thread has prepared a read, callswl_display_cancel_read()before returning. A prepared read must be followed by a read or a cancel; without one, another thread reading the same display waits for this one forever and the program hangs on exit.
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-qtbase'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/qt6/qt6-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/qt6/qt6-qtbase
echo 'a951bd163c7b80fc6b8c88d7668fb56abf91c152373e13c10666763238131307 qt6-qtbase-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-qtbase
SRC=$SRC_ROOT/qt6-qtbase-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-qtbase-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:
patch -p1 -i "$PORT_SRC/musl-lfs64.patch"
patch -p1 -i "$PORT_SRC/musl-dns-resolver.patch"
patch -p1 -i "$PORT_SRC/wayland-cancel-read.patch"
patch -p1 -i "$PORT_SRC/no-source-tree.patch"
patch -p1 -i "$PORT_SRC/openurl-local-file.patch"
patch -p1 -i "$PORT_SRC/print-default-filename.patch"
mkdir -p build && cd build
cmake .. -G Ninja -Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DINSTALL_BINDIR=lib/qt6/bin \
-DINSTALL_PUBLICBINDIR=bin \
-DINSTALL_LIBEXECDIR=lib/qt6/libexec \
-DINSTALL_ARCHDATADIR=lib/qt6 \
-DINSTALL_DATADIR=share/qt6 \
-DINSTALL_INCLUDEDIR=include/qt6 \
-DINSTALL_MKSPECSDIR=lib/qt6/mkspecs \
-DINSTALL_DOCDIR=share/doc/qt6 \
-DINSTALL_EXAMPLESDIR=share/doc/qt6/examples \
-DINSTALL_SYSCONFDIR=/etc/xdg \
-DQT_BUILD_EXAMPLES=OFF \
-DQT_BUILD_TESTS=OFF \
-DQT_DISABLE_RPATH=ON \
-DQT_QPA_PLATFORMS="wayland;xcb" \
-DINPUT_opengl=desktop \
-DINPUT_publicsuffix=qt \
-DFEATURE_relocatable=OFF \
-DFEATURE_reduce_relocations=OFF \
-DFEATURE_rpath=OFF \
-DFEATURE_wayland=ON \
-DFEATURE_xcb=ON \
-DFEATURE_xlib=ON \
-DFEATURE_xcb_xlib=ON \
-DFEATURE_xkbcommon=ON \
-DFEATURE_xkbcommon_x11=ON \
-DFEATURE_system_xcb_xinput=ON \
-DFEATURE_xcb_glx_plugin=ON \
-DFEATURE_xcb_egl_plugin=ON \
-DFEATURE_xcb_sm=OFF \
-DFEATURE_opengl=ON \
-DFEATURE_opengl_desktop=ON \
-DFEATURE_egl=ON \
-DFEATURE_egl_x11=ON \
-DFEATURE_gbm=ON \
-DFEATURE_kms=ON \
-DFEATURE_vulkan=ON \
-DFEATURE_vkkhrdisplay=OFF \
-DFEATURE_eglfs=OFF \
-DFEATURE_linuxfb=OFF \
-DFEATURE_vnc=OFF \
-DFEATURE_directfb=OFF \
-DFEATURE_tslib=OFF \
-DFEATURE_libinput=ON \
-DFEATURE_mtdev=ON \
-DFEATURE_evdev=ON \
-DFEATURE_libudev=ON \
-DFEATURE_accessibility=ON \
-DFEATURE_accessibility_atspi_bridge=ON \
-DFEATURE_dbus=ON \
-DFEATURE_dbus_linked=ON \
-DFEATURE_glib=ON \
-DFEATURE_icu=ON \
-DFEATURE_fontconfig=ON \
-DFEATURE_system_freetype=ON \
-DFEATURE_system_harfbuzz=ON \
-DFEATURE_system_png=ON \
-DFEATURE_system_jpeg=ON \
-DFEATURE_system_zlib=ON \
-DFEATURE_system_pcre2=ON \
-DFEATURE_system_doubleconversion=ON \
-DFEATURE_system_sqlite=ON \
-DFEATURE_system_libb2=OFF \
-DFEATURE_system_textmarkdownreader=OFF \
-DFEATURE_zstd=ON \
-DFEATURE_brotli=ON \
-DFEATURE_liburing=ON \
-DFEATURE_openssl=ON \
-DFEATURE_openssl_linked=ON \
-DFEATURE_gssapi=ON \
-DFEATURE_libproxy=OFF \
-DFEATURE_sctp=OFF \
-DFEATURE_journald=OFF \
-DFEATURE_jemalloc=OFF \
-DFEATURE_lttng=OFF \
-DFEATURE_gtk3=OFF \
-DFEATURE_cups=ON \
-DFEATURE_sql_sqlite=ON \
-DFEATURE_sql_psql=ON \
-DFEATURE_sql_mysql=OFF \
-DFEATURE_sql_odbc=OFF \
-DFEATURE_sql_ibase=OFF \
-DFEATURE_sql_oci=OFF \
-DFEATURE_sql_db2=OFF \
-DFEATURE_sql_mimer=OFF
ninja
DESTDIR=$PKG ninja install
test "$(grep -rl /var/cache/kpkg "$PKG/usr/lib/cmake" | wc -l)" = 0
The switches, and why each is set:
-DINSTALL_BINDIR=lib/qt6/bin— with the otherINSTALL_paths: Qt 6’s tools in/usr/lib/qt6/bin, its plugins, QML and mkspecs under/usr/lib/qt6, its headers in/usr/include/qt6and its data in/usr/share/qt6, so Qt 5’s files sit beside them underqt5names. Every other Qt 6 module reads these paths from this one.-DINSTALL_PUBLICBINDIR=bin— link each user-facing tool into/usr/binwith a6suffix, such asqmake6, so it does not take a Qt 5 tool’s name.-DINSTALL_SYSCONFDIR=/etc/xdg— whereQSettingslooks for system-wide settings files.-DQT_DISABLE_RPATH=ON— with-DFEATURE_rpath=OFF: noRPATHin Qt’s own libraries and tools, and none added byqmake6to what it links. Every Qt library is in/usr/lib, so an entry would only add a lookup, and the package lint warns on each.-DQT_QPA_PLATFORMS="wayland;xcb"— the build’s default platform plugins; the first, Wayland, is compiled in as the default platform. With noQT_QPA_PLATFORMset, Qt tries Wayland whenWAYLAND_DISPLAYis set orXDG_SESSION_TYPEiswayland, and the X11 plugin, which runs under Xwayland, whenDISPLAYis set, Wayland first. The session setsQT_QPA_PLATFORMto the same list, so X11 is used only by a program that asks for it or when Wayland cannot start.-DINPUT_opengl=desktop— with-DFEATURE_opengl_desktop=ON: desktop OpenGL through libglvnd, rather than OpenGL ES 2.-DINPUT_publicsuffix=qt— use the copy of the Public Suffix List compiled into QtNetwork, whichQNetworkCookieJarchecks a cookie’s domain against. Upstream’s Linux default also looks for a system copy at run time,publicsuffix/public_suffix_list.dafsaunder the XDG data directories, and no port installs one.-DFEATURE_relocatable=OFF— Qt finds its plugins and data at the fixed paths it was configured with, not relative to whereverlibQt6Coreis loaded from.-DFEATURE_reduce_relocations=OFF— no-Bsymbolic-functionslink of the Qt libraries. With it on, Qt’s headers stop the compile of every program that is not built with-fPIC, so a PIE executable built as-fPIEwould fail.-DFEATURE_wayland=ON— withxcb,xlib,xcb_xlib,xkbcommon,xkbcommon_x11,system_xcb_xinput,xcb_glx_plugin,xcb_egl_plugin,opengl,egl,egl_x11,gbm,kmsandvulkan: the Wayland and X11 platform plugins and their OpenGL, EGL and Vulkan integration, each named so that a missing library stops the configure instead of dropping the backend.-DFEATURE_xcb_sm=OFF— no X session management through libSM in the X11 plugin. Upstream builds it whenever libSM is found, and libSM is not independs.-DFEATURE_eglfs=OFF— with-DFEATURE_linuxfb=OFF,-DFEATURE_vnc=OFF,-DFEATURE_vkkhrdisplay=OFFand-DFEATURE_directfb=OFF: none of the platform plugins that draw without a window system, straight to the card or the framebuffer, or serve the screen over VNC. Every Qt program on this desktop runs under the compositor, through the Wayland plugin or through the X11 one under Xwayland.-DFEATURE_tslib=OFF— no touchscreen input through tslib, which is not a port.-DFEATURE_libinput=ON— withmtdev,evdevandlibudev: Qt’s input device support through libinput, mtdev and eudev; named, so the configure stops on a missing library.-DFEATURE_accessibility_atspi_bridge=ON— the AT-SPI bridge through at-spi2-core, without which no Qt program is visible to a screen reader.-DFEATURE_dbus_linked=ON— link QtDBus to libdbus at build time, rather than loading it withdlopenat run time.-DFEATURE_openssl_linked=ON— link QtNetwork to openssl at build time, rather than loadinglibsslby name at run time.-DFEATURE_gssapi=ON— SPNEGO and Kerberos authentication in QtNetwork, through krb5.-DFEATURE_liburing=ON— io_uring through liburing for QtCore’s asynchronous file I/O. Upstream’s Linux default, named.-DFEATURE_system_freetype=ON— and the othersystem_switches set on: link the tree’s FreeType, HarfBuzz, libpng, libjpeg-turbo, zlib, PCRE2, double-conversion and SQLite rather than the copies in Qt’s source.-DFEATURE_system_libb2=OFF— with-DFEATURE_system_textmarkdownreader=OFF: the copies of BLAKE2 and md4c in Qt’s source, since neither library is a port.-DFEATURE_libproxy=OFF— no proxy lookup through libproxy, which is not a port.-DFEATURE_journald=OFF— no logging to the systemd journal; KDOS has no systemd (see No systemd).-DFEATURE_gtk3=OFF— no GTK 3 platform theme. The session themes Qt throughQT_QPA_PLATFORMTHEME=kdeinstead.-DFEATURE_sctp=OFF— with-DFEATURE_jemalloc=OFFand-DFEATURE_lttng=OFF: no SCTP sockets, no jemalloc allocator and no LTTng tracepoints, each off by upstream’s default.-DFEATURE_sql_sqlite=ON— with-DFEATURE_sql_psql=ON: the SQLite and PostgreSQL drivers of QtSql, through sqlite and postgresql’slibpq. The MySQL, ODBC, InterBase, Oracle, DB2 and Mimer drivers are switched off.
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-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 qt6-qtbase-6.12.0-2.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-qtbase, and runs the triggers its paths call for.
Contents
Installed programs: androiddeployqt6, harmonydeployqt6, qmake6, wasmdeployqt6.
Installed libraries: libQt6Concurrent.so, libQt6Core.so, libQt6DBus.so, libQt6DeviceDiscoverySupport.a, libQt6FbSupport.a, libQt6Gui.so, libQt6InputSupport.a, libQt6KmsSupport.a, libQt6Network.so, libQt6OpenGL.so, libQt6OpenGLWidgets.so, libQt6PrintSupport.so, libQt6Sql.so, libQt6Test.so, libQt6WaylandClient.so, libQt6Widgets.so, libQt6WlShellIntegration.so, libQt6XcbQpa.so, libQt6Xml.so.
Installed directories: /usr/include/qt6/QtConcurrent, /usr/include/qt6/QtCore, /usr/include/qt6/QtDBus, /usr/include/qt6/QtDeviceDiscoverySupport, /usr/include/qt6/QtFbSupport, /usr/include/qt6/QtGui, /usr/include/qt6/QtInputSupport, /usr/include/qt6/QtKmsSupport, /usr/include/qt6/QtNetwork, /usr/include/qt6/QtOpenGL, /usr/include/qt6/QtOpenGLWidgets, /usr/include/qt6/QtPrintSupport, /usr/include/qt6/QtSql, /usr/include/qt6/QtTest, /usr/include/qt6/QtWaylandClient, /usr/include/qt6/QtWaylandGlobal, /usr/include/qt6/QtWidgets, /usr/include/qt6/QtWlShellIntegration, /usr/include/qt6/QtXml, /usr/lib/cmake/Qt6/3rdparty, /usr/lib/cmake/Qt6/android, /usr/lib/cmake/Qt6/config.tests, /usr/lib/cmake/Qt6/libexec, /usr/lib/cmake/Qt6/platforms, /usr/lib/cmake/Qt6/windows, /usr/lib/cmake/Qt6BuildInternals/QtStandaloneTestTemplateProject, /usr/lib/cmake/Qt6Concurrent, /usr/lib/cmake/Qt6Core, /usr/lib/cmake/Qt6CorePrivate, /usr/lib/cmake/Qt6CoreTools, /usr/lib/cmake/Qt6DBus, /usr/lib/cmake/Qt6DBusPrivate, /usr/lib/cmake/Qt6DBusTools, /usr/lib/cmake/Qt6DeviceDiscoverySupportPrivate, /usr/lib/cmake/Qt6FbSupportPrivate, /usr/lib/cmake/Qt6GuiPrivate, /usr/lib/cmake/Qt6GuiTools, /usr/lib/cmake/Qt6HostInfo, /usr/lib/cmake/Qt6InputSupportPrivate, /usr/lib/cmake/Qt6KmsSupportPrivate, /usr/lib/cmake/Qt6Network, /usr/lib/cmake/Qt6NetworkPrivate, /usr/lib/cmake/Qt6OpenGL, /usr/lib/cmake/Qt6OpenGLPrivate, /usr/lib/cmake/Qt6OpenGLWidgets, /usr/lib/cmake/Qt6PrintSupport, /usr/lib/cmake/Qt6PrintSupportPrivate, /usr/lib/cmake/Qt6Sql, /usr/lib/cmake/Qt6SqlPrivate, /usr/lib/cmake/Qt6Test, /usr/lib/cmake/Qt6TestInternalsPrivate, /usr/lib/cmake/Qt6TestPrivate, /usr/lib/cmake/Qt6WaylandClient, /usr/lib/cmake/Qt6WaylandClientPrivate, /usr/lib/cmake/Qt6WaylandGlobalPrivate, /usr/lib/cmake/Qt6WaylandScannerTools, /usr/lib/cmake/Qt6Widgets, /usr/lib/cmake/Qt6WidgetsPrivate, /usr/lib/cmake/Qt6WidgetsTools, /usr/lib/cmake/Qt6WlShellIntegrationPrivate, /usr/lib/cmake/Qt6XcbQpaPrivate, /usr/lib/cmake/Qt6Xml, /usr/lib/cmake/Qt6XmlPrivate, /usr/lib/qt6/libexec/__pycache__, /usr/lib/qt6/mkspecs/aix-g++, /usr/lib/qt6/mkspecs/aix-g++-64, /usr/lib/qt6/mkspecs/android-clang, /usr/lib/qt6/mkspecs/common, /usr/lib/qt6/mkspecs/cygwin-g++, /usr/lib/qt6/mkspecs/darwin-g++, /usr/lib/qt6/mkspecs/devices, /usr/lib/qt6/mkspecs/dummy, /usr/lib/qt6/mkspecs/features/android, /usr/lib/qt6/mkspecs/features/data, /usr/lib/qt6/mkspecs/features/mac, /usr/lib/qt6/mkspecs/features/ohos, /usr/lib/qt6/mkspecs/features/uikit, /usr/lib/qt6/mkspecs/features/unix, /usr/lib/qt6/mkspecs/features/unsupported, /usr/lib/qt6/mkspecs/features/wasm, /usr/lib/qt6/mkspecs/features/win32, /usr/lib/qt6/mkspecs/freebsd-clang, /usr/lib/qt6/mkspecs/freebsd-g++, /usr/lib/qt6/mkspecs/haiku-g++, /usr/lib/qt6/mkspecs/hpuxi-g++-64, /usr/lib/qt6/mkspecs/hurd-g++, /usr/lib/qt6/mkspecs/integrity-armv7, /usr/lib/qt6/mkspecs/integrity-armv7-imx6, /usr/lib/qt6/mkspecs/integrity-armv8-rcar, /usr/lib/qt6/mkspecs/integrity-x86, /usr/lib/qt6/mkspecs/linux-aarch64-gnu-g++, /usr/lib/qt6/mkspecs/linux-arm-gnueabi-g++, /usr/lib/qt6/mkspecs/linux-clang, /usr/lib/qt6/mkspecs/linux-clang-32, /usr/lib/qt6/mkspecs/linux-clang-libc++, /usr/lib/qt6/mkspecs/linux-clang-libc++-32, /usr/lib/qt6/mkspecs/linux-g++, /usr/lib/qt6/mkspecs/linux-g++-32, /usr/lib/qt6/mkspecs/linux-g++-64, /usr/lib/qt6/mkspecs/linux-icc, /usr/lib/qt6/mkspecs/linux-icc-32, /usr/lib/qt6/mkspecs/linux-icc-64, /usr/lib/qt6/mkspecs/linux-icc-k1om, /usr/lib/qt6/mkspecs/linux-llvm, /usr/lib/qt6/mkspecs/linux-lsb-g++, /usr/lib/qt6/mkspecs/lynxos-g++, /usr/lib/qt6/mkspecs/macx-clang, /usr/lib/qt6/mkspecs/macx-g++, /usr/lib/qt6/mkspecs/macx-icc, /usr/lib/qt6/mkspecs/macx-ios-clang, /usr/lib/qt6/mkspecs/macx-visionos-clang, /usr/lib/qt6/mkspecs/macx-xcode, /usr/lib/qt6/mkspecs/netbsd-g++, /usr/lib/qt6/mkspecs/ohos-clang, /usr/lib/qt6/mkspecs/openbsd-g++, /usr/lib/qt6/mkspecs/qnx-aarch64le-qcc, /usr/lib/qt6/mkspecs/qnx-armle-v7-qcc, /usr/lib/qt6/mkspecs/qnx-x86-64-qcc, /usr/lib/qt6/mkspecs/qnx-x86-qcc, /usr/lib/qt6/mkspecs/solaris-cc, /usr/lib/qt6/mkspecs/solaris-cc-64, /usr/lib/qt6/mkspecs/solaris-cc-64-stlport, /usr/lib/qt6/mkspecs/solaris-cc-stlport, /usr/lib/qt6/mkspecs/solaris-g++, /usr/lib/qt6/mkspecs/solaris-g++-64, /usr/lib/qt6/mkspecs/unsupported, /usr/lib/qt6/mkspecs/vxworks-clang, /usr/lib/qt6/mkspecs/wasm-emscripten, /usr/lib/qt6/mkspecs/wasm-emscripten-64, /usr/lib/qt6/mkspecs/win32-arm64-msvc, /usr/lib/qt6/mkspecs/win32-arm64ec-msvc, /usr/lib/qt6/mkspecs/win32-clang-g++, /usr/lib/qt6/mkspecs/win32-clang-msvc, /usr/lib/qt6/mkspecs/win32-g++, /usr/lib/qt6/mkspecs/win32-icc, /usr/lib/qt6/mkspecs/win32-icc-k1om, /usr/lib/qt6/mkspecs/win32-msvc, /usr/lib/qt6/plugins/generic, /usr/lib/qt6/plugins/networkinformation, /usr/lib/qt6/plugins/platforms, /usr/lib/qt6/plugins/printsupport, /usr/lib/qt6/plugins/tls, /usr/lib/qt6/plugins/wayland-graphics-integration-client, /usr/lib/qt6/plugins/xcbglintegrations, /usr/share/doc/qt6, /usr/share/licenses/qt6-qtbase, /usr/share/qt6/json_schema, /usr/share/qt6/wayland.
Short descriptions
Qt6Concurrent.pc |
Qt Concurrent module |
Qt6Core.pc |
Qt Core module |
Qt6DBus.pc |
Qt DBus module |
Qt6Gui.pc |
Qt Gui module |
Qt6Network.pc |
Qt Network module |
Qt6OpenGL.pc |
Qt OpenGL module |
Qt6OpenGLWidgets.pc |
Qt OpenGLWidgets module |
Qt6Platform.pc |
Qt Platform module |
Qt6PrintSupport.pc |
Qt PrintSupport module |
Qt6Sql.pc |
Qt Sql module |
Qt6Test.pc |
Qt Test module |
Qt6WaylandClient.pc |
Qt WaylandClient module |
Qt6Widgets.pc |
Qt Widgets module |
Qt6Xml.pc |
Qt Xml module |
Notes
openurl-local-file.patch is what opens a local HTML page at a section from a Qt program: the Help button of a KDOS settings page, through kguiaddons’ help: handler, and any Qt.openUrlExternally() of a file: URL with a fragment. Without it the desktop portal is asked, refuses a file: URI, and nothing opens. Every port that links Qt rebuilds on a change to it.
print-default-filename.patch gives the print dialog’s Print to File field a file name on Wayland, as upstream does only under the X11 plugin; without it the field holds a bare directory and pressing Print answers that the path is a directory.
build.sh ends by checking that no file under /usr/lib/cmake in the package names /var/cache/kpkg. A build path that reached the installed CMake files would be read by every Qt module built afterwards, and would point at a directory that does not exist on the target.
Every other qt6-* module but qt6-qtwebengine is at this port’s version and builds against its private headers, which change from one Qt release to the next, so the set is moved and rebuilt together.