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
qgis-3.44.15.tar.bz2(182.9 MiB)
sha2561b508175a27272c68ca0f71f27d2b14711ab47b8ee2c003b56e36138420a75bc
upstream: https://download.qgis.org/downloads/qgis-3.44.15.tar.bz2
archive copy: sources-2/gis--qgis-3.44.15.tar.bz2
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.
-DWITH_PDF4QT=FALSE, line 67: pdf4qt
Patches
build.sh applies these; kpkg applies nothing by itself.
10-libspatialindex_2_1.patch— Removes the configure error QGIS raises for libspatialindex 2.1 or later, so QGIS builds against the tree’s libspatialindex 2.1.0. The error stands for libspatialindex issue 276: an unpatched 2.1 nearest-neighbour search measures each leaf entry through the bounding-box form ofgetMinimumDistance(), never the data form thatsrc/core/qgsspatialindex.cppoverrides to measure a feature’s stored geometry and apply the maximum distance, soQgsSpatialIndex::nearestNeighbor()would rank features by their bounding boxes and test the maximum distance against the box rather than the feature. The libspatialindex port carries the fix, and the refusal may be removed only while it does.20-qgstyle-infinite-loop.patch— fix infinite loop in qgsstyle40-qt6.10.patch— fix: support private Qt6Sql headers with Qt 6.1050-qstring.patch— Casts the snapping layer’s type tointinQgsSnappingUtils::dump()before it is passed toQString::arg(), which with the tree’s Qt does not accept the enum.offline-defaults.patch— Changes the global defaults inresources/qgis_global_settings.iniso that a machine with no network is not contacted at every start: the version check is off and its checkbox is hidden from the options dialog, the welcome page’s news feed fromfeed.qgis.orgis disabled, and the plugin manager does not check the online repository for updates at start. Plugins can still be installed from a ZIP file.sip-movable.patch— Gives the PyQt6 bindings a secondstd::unique_ptrmapped type marked Movable, chosen by theMOVABLE_MAPPED_TYPEfeature thatpython/CMakeLists.txtturns off only for a sip too old to parse the annotation. The tree’s sip refuses to return aNoReleasemapped type by value unless it is Movable, and every binding module stops at code generation without it.system-meshoptimizer.patch— Includes the system<meshoptimizer.h>insrc/core/mesh/qgstriangularmesh.cppand passes the extra arguments itsmeshopt_simplifySloppy()takes: no vertex lock, no error target and no error result.
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:
-DBUILD_WITH_QT6=TRUE— Builds against Qt 6 and PyQt6; upstream’s default is Qt 5.-DQGIS_MANUAL_SUBDIR=share/man— Puts the manual page under/usr/share/man. Upstream’s default on Unix isman, which under the prefix is/usr/man.-DENABLE_TESTS=FALSE— Builds no unit tests, which are on by default.-DUSE_CCACHE=OFF— Does not compile through ccache, which upstream uses by default when it finds it.-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,-DWITH_QSCIAPI=TRUE,-DWITH_QGIS_PROCESS=TRUE,-DWITH_3D=TRUE— Upstream’s defaults, named: the core, interface and analysis libraries, the desktop program, the authentication methods with OAuth2, Python and its bindings, the QScintilla API file for the Python console’s completion,qgis_process, and 3D map views through qt6-qt3d.-DBINDINGS_GLOBAL_INSTALL=TRUE— Installs theqgisPython package into the systemsite-packagesrather than QGIS’s own directory, soimport qgisworks from any Python without settingPYTHONPATH. Thelsafter the install fails the build ifqgis._coreis not there.-DWITH_QUICK=FALSE,-DWITH_CUSTOM_WIDGETS=FALSE,-DWITH_PDF4QT=FALSE— Upstream’s defaults, named: no QGIS Quick library for QML front ends, no Qt Designer widget plugins, and no embedded PDF4Qt library for PDF and HTML drawing.-DWITH_SERVER=FALSE,-DWITH_SERVER_LANDINGPAGE_WEBAPP=FALSE— No QGIS Server, the map server that runs as a FastCGI service, and so no web landing page for it; upstream’s defaults.-DWITH_CRASH_HANDLER=FALSE— Leaves out the crash handler, on by default on Linux, which offers to send a report upstream after a crash.-DWITH_GRASS7=FALSE,-DWITH_GRASS8=FALSE— No GRASS GIS plugin or Processing provider; GRASS is not a port.-DWITH_ORACLE=FALSE,-DWITH_HANA=FALSE— No Oracle Spatial or SAP HANA provider; neither client library is a port.-DWITH_POSTGRESQL=TRUE,-DWITH_SPATIALITE=TRUE— The PostgreSQL/PostGIS and SpatiaLite providers, upstream’s defaults. DB Manager reaches PostGIS through python3-psycopg2.-DWITH_QSPATIALITE=TRUE— Also builds the SpatiaLite driver for Qt SQL fromexternal/qspatialite, which is off by default. It needs Qt’s private Sql headers, which40-qt6.10.patchmakes the build find.-DWITH_PDAL=TRUE,-DWITH_EPT=TRUE,-DWITH_COPC=TRUE,-DWITH_DRACO=TRUE— Point clouds: the pdal provider for LAS, LAZ and E57 files, Entwine and Cloud Optimized Point Cloud data, and Draco-compressed 3D tiles; upstream’s defaults, named.-DWITH_INTERNAL_LAZPERF=TRUE,-DWITH_INTERNAL_MDAL=TRUE,-DWITH_INTERNAL_POLY2TRI=TRUE— Builds the copies QGIS carries of laz-perf (LAZ decompression for EPT and COPC), MDAL (mesh formats, with HDF5, NetCDF and XML support) and poly2tri (triangulation); none of the three is a port.-DWITH_INTERNAL_MESHOPTIMIZER=FALSE— Links the system meshoptimizer rather than the copy inexternal/meshOptimizer;system-meshoptimizer.patchadapts the one call to its interface.-DWITH_INTERNAL_NLOHMANN_JSON=FALSE,-DWITH_INTERNAL_SPATIALINDEX=FALSE— Uses the system nlohmann-json and libspatialindex. The second is upstream’s default; the first is not.-DWITH_QTWEBKIT=FALSE,-DWITH_QTWEBENGINE=TRUE— HTML in layouts and map tips through qt6-qtwebengine rather than QtWebKit, which is not a port. Upstream’s defaults are the reverse.-DWITH_QTSERIALPORT=TRUE,-DWITH_QTGAMEPAD=FALSE— GPS over a serial port through qt6-qtserialport; no Qt Gamepad, which is not a port. Both are upstream’s defaults.-DWITH_GSL=TRUE— Uses the GNU Scientific Library, upstream’s default; gsl is independs.-DUSE_OPENCL=ON— OpenCL acceleration for some raster algorithms, through the ocl-icd loader; upstream’s default on Linux.-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— Turn five optional finds into required ones, so a missing library stops configure rather than building a QGIS without OpenCL, PostgreSQL, or the HDF5, NetCDF and XML mesh formats the MDAL provider reads (see A graphical application).
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.