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

254.3. qt6-qtsvg-6.12.0

Qt 6 SVG rendering — QSvgRenderer, QSvgWidget and the SVG image and icon engine plugins

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

About

Qt SVG renders SVG Tiny 1.2 drawings for Qt 6: the QSvgRenderer and QSvgWidget classes of the QtSvg and QtSvgWidgets libraries, and the two plugins through which every Qt 6 program reads SVG without asking for it, the image format plugin behind QImage and the icon engine behind QIcon. Without it a Qt 6 program draws no SVG icon from a theme, and Qt Quick’s VectorImage item is not built.

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, qt6-qtbase, zlib.

Required by (153): analitza, angelfish, arianna, audacious, audacity, audiotube, avogadrolibs, blinken, bovo, breeze, calibre, calindori, calligra, cantor, digikam, elisa, fcitx5-configtool, filelight, flameshot, francis, freecad, gcompris, ghostwriter, glaxnimate, gnuplot, goldendict-ng, gpxsee, gqrx, granatier, gwenview, hydrogen, itinerary, juk, kajongg, kalgebra, kalzium, kapman, kasts, kblackbox, kblocks, kbounce, kclock, kde-cli-tools, kde-gtk-config, kdenlive, kdiagram, kdominate, keepsecret, keysmith, kfourinline, kgraphviewer, khangman, kiconthemes, kig, kigo, kimageannotator, kio-extras, kirigami, kirigami-gallery, kiwix-desktop, kjumpingcube, klettres, kmahjongg, kmplot, knights, koko, kolourpaint, kongress, konquest, kontrast, kpat, krecorder, kreversi, krita, ksirk, ksnakeduel, kspaceduel, ksudoku, ksvg, ktuberling, kturtle, kubrick, kweather, kwin, kwordquiz, labplot, libkdegames, libkmahjongg, libplasma, librepcb, lskat, lyx, marble, massif-visualizer, merkuro, minuet, mkvtoolnix, mlt, musescore, neochat, nheko, obs-studio, okular, openscad, organicmaps, palapeli, parley, pdf4qt, pencil2d, picard, picmi, plasma-camera, plasma-desktop, plasma-phonebook, plasma-sdk, plasma-setup, plasma-welcome, plasma-workspace, plasmatube, python3-pyqt6, python3-pyside6, qbittorrent, qcad, qdirstat, qgis, qmapshack, qmlkonsole, qownnotes, qrca, qt-creator, qt6-qtdeclarative, qt6-qtmultimedia, qt6-qtvirtualkeyboard, qt6-qtwayland, qucs-s, qwt, rocs, sdrangel, stellarium, step, svgpart, syncthingtray, texstudio, tokodon, translatelocally, transmission, umbrello, uranium, veusz, wireshark, yakuake, zeal, 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-qtsvg'

What kpkg does

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

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-qtsvg
echo 'e4ab39534ec97987b1b9b60ef7f4d3253d5912a69f8c713a01753174a4029331  qt6-qtsvg-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-qtsvg
SRC=$SRC_ROOT/qt6-qtsvg-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-qtsvg-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
ninja
DESTDIR=$PKG ninja install

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

Contents

Installed libraries: libQt6Svg.so, libQt6SvgWidgets.so.

Installed directories: /usr/include/qt6/QtSvg, /usr/include/qt6/QtSvgWidgets, /usr/lib/cmake/Qt6Svg, /usr/lib/cmake/Qt6SvgPrivate, /usr/lib/cmake/Qt6SvgWidgets, /usr/share/licenses/qt6-qtsvg.

Short descriptions

Qt6Svg.pc Qt Svg module
Qt6SvgWidgets.pc Qt SvgWidgets module

Notes

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