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

337.5. qgis-3.44.15

Desktop geographic information system, with PyQGIS and Processing

Version 3.44.15, release 2
Shelf gis — GIS, maps, projections, GPS, navigation and location
Phase 44_apps (Applications), 215 of 422 in build order
Licence GPL-2.0-or-later
Homepage https://qgis.org/
Build time 59.5 SBU
Installed size 331.1 MiB in 9740 files
Recipe ports/core/gis/qgis/kpkgbuild

About

QGIS is a desktop geographic information system: it views, edits, analyses and prints vector, raster, mesh and point-cloud data from files, databases and web services. The port builds QGIS Desktop on Qt 6 with PyQGIS, the Python bindings behind the Python console, Processing, DB Manager, MetaSearch and the plugin manager, and the command-line qgis_process, which runs any Processing algorithm without the interface. GDAL, PROJ and GEOS do most of the format and geometry work underneath it.

Sources

Dependencies

Depends on: cmake, ninja, bison, flex, python3, python3-sip, python3-pyqt-builder, python3-pyqt6, python3-pyqt6-sip, python3-qscintilla, qscintilla, qwt, qca, qtkeychain, qt6-qtbase, qt6-qtsvg, qt6-qttools, qt6-qt5compat, qt6-qtpositioning, qt6-qtserialport, qt6-qtwebengine, qt6-qtdeclarative, qt6-qt3d, gdal, geos, proj, sqlite, libspatialite, libspatialindex, pdal, draco, libzip, expat, protobuf, zlib, zstd, exiv2, postgresql, gsl, hdf5, netcdf-c, libxml2, nlohmann-json, ocl-icd, opencl-headers, opencl-clhpp, meshoptimizer, python3-yaml, python3-jinja2, python3-pygments, python3-httplib2, python3-lxml, python3-dateutil, python3-requests, matplotlib, numpy, python3-psycopg2, python3-owslib.

Required by: no port names it.

Optional, off in KDOS

These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

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/44_apps/phase.env && kpkg install qgis'

What kpkg does

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

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/gis/qgis
echo '1b508175a27272c68ca0f71f27d2b14711ab47b8ee2c003b56e36138420a75bc  qgis-3.44.15.tar.bz2' | 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/qgis
SRC=$SRC_ROOT/qgis-3.44.15
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf qgis-3.44.15.tar.bz2 -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 five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:

patch -p1 -i "$PORT_SRC/10-libspatialindex_2_1.patch"
patch -p1 -i "$PORT_SRC/20-qgstyle-infinite-loop.patch"
patch -p1 -i "$PORT_SRC/40-qt6.10.patch"
patch -p1 -i "$PORT_SRC/50-qstring.patch"
patch -p1 -i "$PORT_SRC/offline-defaults.patch"
patch -p1 -i "$PORT_SRC/sip-movable.patch"
patch -p1 -i "$PORT_SRC/system-meshoptimizer.patch"

cmake -S . -B build -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DQGIS_MANUAL_SUBDIR=share/man \
	-DBUILD_WITH_QT6=TRUE \
	-DENABLE_TESTS=FALSE \
	-DUSE_CCACHE=OFF \
	-DWITH_CORE=TRUE \
	-DWITH_GUI=TRUE \
	-DWITH_DESKTOP=TRUE \
	-DWITH_ANALYSIS=TRUE \
	-DWITH_AUTH=TRUE \
	-DWITH_OAUTH2_PLUGIN=TRUE \
	-DWITH_PYTHON=TRUE \
	-DWITH_BINDINGS=TRUE \
	-DBINDINGS_GLOBAL_INSTALL=TRUE \
	-DWITH_QSCIAPI=TRUE \
	-DWITH_QGIS_PROCESS=TRUE \
	-DWITH_3D=TRUE \
	-DWITH_QUICK=FALSE \
	-DWITH_SERVER=FALSE \
	-DWITH_SERVER_LANDINGPAGE_WEBAPP=FALSE \
	-DWITH_CRASH_HANDLER=FALSE \
	-DWITH_CUSTOM_WIDGETS=FALSE \
	-DWITH_GRASS7=FALSE \
	-DWITH_GRASS8=FALSE \
	-DWITH_POSTGRESQL=TRUE \
	-DWITH_SPATIALITE=TRUE \
	-DWITH_QSPATIALITE=TRUE \
	-DWITH_ORACLE=FALSE \
	-DWITH_HANA=FALSE \
	-DWITH_PDAL=TRUE \
	-DWITH_EPT=TRUE \
	-DWITH_COPC=TRUE \
	-DWITH_DRACO=TRUE \
	-DWITH_INTERNAL_LAZPERF=TRUE \
	-DWITH_INTERNAL_MDAL=TRUE \
	-DWITH_INTERNAL_POLY2TRI=TRUE \
	-DWITH_INTERNAL_MESHOPTIMIZER=FALSE \
	-DWITH_INTERNAL_NLOHMANN_JSON=FALSE \
	-DWITH_INTERNAL_SPATIALINDEX=FALSE \
	-DWITH_QTWEBKIT=FALSE \
	-DWITH_QTWEBENGINE=TRUE \
	-DWITH_QTSERIALPORT=TRUE \
	-DWITH_QTGAMEPAD=FALSE \
	-DWITH_PDF4QT=FALSE \
	-DWITH_GSL=TRUE \
	-DUSE_OPENCL=ON \
	-DCMAKE_REQUIRE_FIND_PACKAGE_OpenCL=ON \
	-DCMAKE_REQUIRE_FIND_PACKAGE_Postgres=ON \
	-DCMAKE_REQUIRE_FIND_PACKAGE_HDF5=ON \
	-DCMAKE_REQUIRE_FIND_PACKAGE_NetCDF=ON \
	-DCMAKE_REQUIRE_FIND_PACKAGE_LibXml2=ON \
	-Wno-dev
grep -q '^OPENCL_HPP_INCLUDE_DIR:PATH=/usr/include$' build/CMakeCache.txt
cmake --build build
DESTDIR=$PKG cmake --install build
test -x "$PKG/usr/bin/qgis"
test -x "$PKG/usr/bin/qgis_process"
ls "$PKG"/usr/lib/python3*/site-packages/qgis/_core*.so >/dev/null

install -Dm644 rpm/sources/qgis-mime.xml "$PKG/usr/share/mime/packages/qgis.xml"

cat > "$PKG/usr/share/applications/org.qgis.qgis.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=QGIS Desktop
GenericName=Geographic Information System
Comment=View, edit, analyse and print maps and geographic data
TryExec=qgis
Exec=qgis %F
Icon=qgis
Terminal=false
StartupNotify=false
StartupWMClass=org.qgis.qgis
Categories=Qt;Education;Science;Geography;
MimeType=application/x-qgis-project;application/x-qgis-project-container;application/x-qgis-layer-settings;application/x-qgis-layer-definition;application/x-qgis-composer-template;
Keywords=map;gis;geography;globe;shapefile;geopackage;postgis;wms;wfs;ogc;osgeo;qgis;
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.qgis.qgis.desktop"
test -e "$PKG"/usr/share/icons/hicolor/48x48/apps/qgis.png

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

Contents

Installed programs: qgis, qgis_process.

Installed libraries: libqgis_3d.so, libqgis_analysis.so, libqgis_app.so, libqgis_core.so, libqgis_gui.so, libqgis_native.so, libqgispython.so.

Installed directories: /usr/include/qgis, /usr/lib/python3.14/site-packages/qgis, /usr/lib/qgis, /usr/share/icons/hicolor/42x42/mimetypes, /usr/share/icons/hicolor/80x80/mimetypes, /usr/share/icons/hicolor/8x8/mimetypes, /usr/share/licenses/qgis, /usr/share/qgis.

Short descriptions

qgis QGIS Geographic Information System

Notes

20-qgstyle-infinite-loop.patch makes each of the six places in QgsStyle::importXml() that skips an entry already present (a symbol, a colour ramp, a text format, label settings, a legend patch shape or a 3D symbol) move to the next sibling element before continue. In this release each of those six is a for loop that already moves to the next sibling in its increment, so with the patch a skipped entry also skips the entry after it. The skip runs only when QGIS updates a style it already holds, such as its default style after an upgrade: there, the entry that follows each one the style already has is not added.

The grep after configure checks that the OpenCL C++ header was found in /usr/include, from opencl-clhpp. Without it QGIS falls back to the cl2.hpp it carries in external/opencl-clhpp and says so only in the configure log.

The project and layer file types QGIS defines are in upstream’s RPM packaging, rpm/sources/qgis-mime.xml, and not in its CMake install; build.sh installs that file into the shared MIME database. Upstream’s desktop entry is replaced by one that names StartupWMClass=org.qgis.qgis, the Wayland app_id Qt builds from the organisation domain qgis.org and the executable’s name (upstream’s entry names QGIS3, the application name). It claims only those five QGIS types, and drops the image, raster and vector formats upstream’s entry also claims, among them TIFF, JPEG, JPEG 2000, shapefiles, KML and GeoPackage.