303.3. falkon-26.08.2
Qt WebEngine web browser from KDE, with KWallet and KIO integration
| Version | 26.08.2, release 1 |
| Shelf | browsers — Web, Gemini and text-mode browsers |
| Phase | 44_apps (Applications), 14 of 422 in build order |
| Licence | GPL-3.0-or-later |
| Homepage | https://www.falkon.org/ |
| Build time | 16.8 SBU |
| Installed size | 11.7 MiB in 187 files |
| Recipe | ports/core/browsers/falkon/kpkgbuild |
About
Falkon is KDE’s web browser, built on Qt WebEngine (qt6-qtwebengine), the Chromium engine packaged as a Qt module. On KDOS it carries its KDE Frameworks integration plugin, which keeps passwords in KWallet, opens KIO’s URL schemes, reports downloads as KDE jobs and adds a Share page menu through Purpose, and its Python plugin support through PySide6.
Sources
falkon-26.08.2.tar.xz(2.6 MiB)
sha256f59ed0b6fb12aee5a3ed310e489104b815e35a19278bd7e80f9c5ef444616f07
upstream: https://download.kde.org/stable/release-service/26.08.2/src/falkon-26.08.2.tar.xz
archive copy: sources-1/browsers--falkon-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtwebchannel, qt6-qtwebengine, qt6-qtwayland, qt6-qttools, karchive, ki18n, kwallet, kio, kcrash, kcoreaddons, purpose, kjobwidgets, openssl, libxcb, xcb-util, python3, python3-pyside6.
Required by (1): kde-gear-utilities.
Patches
build.sh applies these; kpkg applies nothing by itself.
app-id.patch— Set StartupWMClass in falkon's desktop entry to org.kde.falkon and drop its MimeType= claimsFalkon's Wayland app_id is its desktop file name, org.kde.falkon, which Plasma's task manager matches against StartupWMClass; upstream's Falkon matches no window. The MimeType= line claimed text/html, application/xhtml+xml, http, https and application/x-mimearchive: the web types are Firefox ESR's, its default in the shipped MIME associations, and a desktop entry claims a type only where nothing else does.
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 falkon'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/browsers/falkon.
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/browsers/falkon
echo 'f59ed0b6fb12aee5a3ed310e489104b815e35a19278bd7e80f9c5ef444616f07 falkon-26.08.2.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/falkon
SRC=$SRC_ROOT/falkon-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf falkon-26.08.2.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 five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
patch -p1 -i "$PORT_SRC/app-id.patch"
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D BUILD_TESTING_ONLINE=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D BUILD_KEYRING=OFF \
-D BUILD_PYTHON_SUPPORT=ON \
-D NO_X11=OFF \
-D DISABLE_DBUS=OFF \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Wallet=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6KIO=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Crash=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6CoreAddons=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Purpose=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6JobWidgets=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_PySide6=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Shiboken6=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Shiboken6Tools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D BUILD_TESTING_ONLINE=OFF— Build none of the tests that need a network connection; upstream’s default.-D KF_SKIP_PO_PROCESSING=ON—ki18n_install(po)returns at once, so none of the message catalogues inpo/is compiled or installed. kpkg removes every non-English catalogue from the package anyway (see size and language policy).-D BUILD_KEYRING=OFF— No GNOME Keyring password plugin. It needs thegnome-keyring-1library, which is not a port; passwords go to KWallet instead.-D BUILD_PYTHON_SUPPORT=ON— Python plugins, through PySide6. On by default; the three PySide6 and Shiboken6 requirements in this list make it fail the configure rather than drop out.-D NO_X11=OFF,-D DISABLE_DBUS=OFF— Keep Falkon’s X11 code and its D-Bus support. Both are upstream’s defaults. The X11 code is xcb calls that set the window’sWM_CLASSand read and set its workspace (_NET_WM_DESKTOP), made only when Qt runs Falkon on itsxcbplatform, under Xwayland. It is why libxcb and xcb-util are independs: with it on, configure requires both.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Wallet=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_KF6KIO=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Crash=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_KF6CoreAddons=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Purpose=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_KF6JobWidgets=ON— Falkon looks for these six frameworks as optional and builds the KDE Frameworks integration plugin only when all six are found. Required, a missing one stops the configure instead of quietly dropping the plugin (see a graphical application).-D CMAKE_REQUIRE_FIND_PACKAGE_PySide6=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_Shiboken6=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_Shiboken6Tools=ON— The same for the Python plugin support, which is built only when PySide6, Shiboken6 and its tools are all found (python3-pyside6).
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/falkon, 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 falkon-26.08.2-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/falkon, and runs the triggers its paths call for.
Contents
Installed programs: falkon.
Installed libraries: libFalkonPrivate.so.
Installed directories: /usr/lib/qt6/plugins/falkon, /usr/share/falkon, /usr/share/licenses/falkon.