254.11. qt6-qttools-6.12.0
Qt 6 tools — Designer, Linguist, Assistant, Qt Help, UiTools, lrelease, qdbus and qtdiag
| Version | 6.12.0, release 1 |
| Shelf | qt6 — The Qt 6 modules, and everything in `group = qt6` |
| Phase | 43_toolkits (Toolkits), 23 of 344 in build order |
| Licence | GPL-3.0-only WITH Qt-GPL-exception-1.0 AND GPL-3.0-only AND (LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) |
| Homepage | https://www.qt.io/ |
| Build time | 7.7 SBU |
| Installed size | 29.7 MiB in 543 files |
| Recipe | ports/core/qt6/qt6-qttools/kpkgbuild |
About
Qt Tools for Qt 6: Designer, Linguist with lrelease and lupdate, Assistant, qdbus, qtdiag, qtplugininfo, pixeltool and the distance field generator, and the QtHelp, QtUiTools and QtDesigner libraries. A Qt 6 port that ships translations runs this port’s lrelease at build time, and a program that loads .ui files at run time links QtUiTools.
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-qttools-6.12.0.tar.xz(10.3 MiB)
sha2568dab8f3611496486a470ad5f115ceea584f36bc22a2b8b6f6ebdbafbb8160693
upstream: https://download.qt.io/official_releases/qt/6.12/6.12.0/submodules/qttools-everywhere-src-6.12.0.tar.xz
archive copy: sources-4/qt6--qt6-qttools-6.12.0.tar.xz
Dependencies
Depends on: cmake, ninja, pkgconf, qt6-qtbase, qt6-qtdeclarative, sqlite.
Required by (55): android-file-transfer, audacity, aurorae, avidemux, cantor, converseen, falkon, flameshot, freecad, gcompris, gimagereader, glaxnimate, gnuplot, goldendict-ng, hydrogen, kde-dev-utils, kdevelop, kglobalacceld, kimageannotator, kinfocenter, konversation, korganizer, kwin, librepcb, musescore, nheko, octave, pdf4qt, pencil2d, python3-pyqt6, python3-pyside6, qalculate-qt, qbittorrent, qcad, qgis, qmapshack, qownnotes, qt-creator, qt6-qttranslations, qt6-qtwebengine, qtspell, qtutilities, qucs-s, qwt, recoll, sddm, shotcut, stellarium, syncthingtray, testdisk, texstudio, translatelocally, transmission, wireshark, 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-qttools'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/qt6/qt6-qttools.
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-qttools
echo '8dab8f3611496486a470ad5f115ceea584f36bc22a2b8b6f6ebdbafbb8160693 qt6-qttools-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-qttools
SRC=$SRC_ROOT/qt6-qttools-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-qttools-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_clang=OFF \
-DFEATURE_qdoc=OFF \
-DFEATURE_assistant=ON \
-DFEATURE_designer=ON \
-DFEATURE_linguist=ON \
-DFEATURE_qdbus=ON \
-DFEATURE_qtdiag=ON \
-DFEATURE_pixeltool=ON \
-DFEATURE_qtplugininfo=ON \
-DFEATURE_distancefieldgenerator=ON
ninja
DESTDIR=$PKG ninja install
The switches, and why each is set:
-DFEATURE_clang=OFF— with-DFEATURE_qdoc=OFF: build nothing against libclang, and leave out QDoc, Qt’s documentation generator, the one part of the module that uses it. The configure still looks for libclang; clang is installed in an earlier phase and is not independs, so left to the configure, QDoc would be built whenever libclang is found.-DFEATURE_assistant=ON— withdesigner,linguist,qdbus,qtdiag,pixeltool,qtplugininfoanddistancefieldgenerator: each tool named, so one that cannot be built stops the configure.
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-qttools, 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-qttools-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-qttools, and runs the triggers its paths call for.
Contents
Installed programs: assistant6, designer6, kmap2qmap6, lcheck6, lconvert6, linguist6, lrelease-pro6, lrelease6, ltext2id6, lupdate-pro6, lupdate6, pixeltool6, qdbus6, qdbusviewer6, qdistancefieldgenerator6, qtdiag6, qtplugininfo6.
Installed libraries: libQt6Designer.so, libQt6DesignerComponents.so, libQt6Help.so, libQt6UiTools.so.
Installed directories: /usr/include/qt6/QtDesigner, /usr/include/qt6/QtDesignerComponents, /usr/include/qt6/QtHelp, /usr/include/qt6/QtQDocCatch, /usr/include/qt6/QtQDocCatchConversions, /usr/include/qt6/QtQDocCatchGenerators, /usr/include/qt6/QtTools, /usr/include/qt6/QtUiPlugin, /usr/include/qt6/QtUiTools, /usr/lib/cmake/Qt6DesignerComponentsPrivate, /usr/lib/cmake/Qt6DesignerPrivate, /usr/lib/cmake/Qt6Help, /usr/lib/cmake/Qt6HelpPrivate, /usr/lib/cmake/Qt6Linguist, /usr/lib/cmake/Qt6LinguistTools, /usr/lib/cmake/Qt6QDocCatchConversionsPrivate, /usr/lib/cmake/Qt6QDocCatchGeneratorsPrivate, /usr/lib/cmake/Qt6QDocCatchPrivate, /usr/lib/cmake/Qt6Tools, /usr/lib/cmake/Qt6ToolsTools, /usr/lib/cmake/Qt6UiPlugin, /usr/lib/cmake/Qt6UiTools, /usr/lib/cmake/Qt6UiToolsPrivate, /usr/lib/objects-Release/QMakeParserCumulative_resources_1, /usr/lib/qt6/plugins/help, /usr/share/licenses/qt6-qttools, /usr/share/qt6/phrasebooks.
Short descriptions
Qt6Designer.pc |
Qt Designer module |
Qt6Help.pc |
Qt Help module |
Qt6Linguist.pc |
Qt Linguist module |
Qt6UiPlugin.pc |
Qt UiPlugin module |
Qt6UiTools.pc |
Qt UiTools module |
Notes
Like every Qt 6 module but qt6-qtbase, it passes no install paths of its own (see How Qt 6 is built). The user-facing tools are linked into /usr/bin with a 6 suffix by the layout qt6-qtbase sets, beside Qt 5’s -qt5 names.