258.7. kio-extras-26.08.2
Extra KIO workers, thumbnailers and settings modules: SMB, SFTP, archives, man pages, MTP and iOS devices, recent files, file previews
The build-state snapshot was taken from 26.08.2-1; this recipe is 26.08.2-2, so the size, time and contents below describe the earlier build.
| Version | 26.08.2, release 2 |
| Shelf | kde — KDE Plasma and Gear platform pieces outside Frameworks that have no other domain: KIO workers, thumbnailers, Plasma integration, KDE Wayland glue |
| Phase | 43_toolkits (Toolkits), 139 of 344 in build order |
| Licence | GPL-2.0-or-later AND LGPL-2.0-or-later AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND (GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND MIT AND LGPL-2.0-only AND CC0-1.0 AND GPL-2.0-only AND (LGPL-2.0-or-later OR BSD-2-Clause) AND BSD-2-Clause AND LGPL-2.1-only AND (LGPL-2.1-or-later OR LicenseRef-KDE-Accepted-GPL) |
| Homepage | https://invent.kde.org/network/kio-extras |
| Build time | 3.4 SBU |
| Installed size | 4.1 MiB in 113 files |
| Recipe | ports/core/kde/kio-extras/kpkgbuild |
About
kio-extras is the set of KIO workers, thumbnailers and settings modules every KDE application opens files through beyond the local disk: smb:/ for Windows and Samba shares, sftp:/ and fish:/ over SSH, mtp:/ for phones and cameras, afc:/ for iOS devices, man:/ and info:/, the archive and recentlyused:/ workers, and the thumbnail worker with its plugins for pictures, audio covers, EXR, cursors, DjVu, comics and text. It also builds the Trash, Proxy, Connection Preferences and Web Search Keywords pages of System Settings.
Sources
kio-extras-26.08.2.tar.xz(5.4 MiB)
sha256b5fc98552eea1f9279fb1f03c7e3ffb36a46ffddd0bf0bba9868331d8c461e6e
upstream: https://download.kde.org/stable/release-service/26.08.2/src/kio-extras-26.08.2.tar.xz
archive copy: sources-3/kde--kio-extras-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, gperf, qt6-qtbase, qt6-qtsvg, karchive, kcodecs, kconfig, kcoreaddons, kdbusaddons, kdoctools, ki18n, kio, kwidgetsaddons, solid, kcmutils, kdnssd, plasma-activities, plasma-activities-stats, samba, libssh, qcoro, kdsoap-ws-discovery-client, syntax-highlighting, libmtp, libimobiledevice, libplist, openexr, taglib, libkexiv2, libX11, libXcursor, djvulibre, shared-mime-info.
Required by (3): dolphin, khelpcenter, plasma-workspace.
Patches
build.sh applies these; kpkg applies nothing by itself.
webshortcuts-load-unchanged.patch ends the Web Search Keywords page’s FilterOptions::load(), in kcms/webshortcuts/ikwsopts.cpp, by clearing the page’s needs-save flag. Loading sets the default engine, the two check boxes and the delimiter, and each of those widgets’ change signals marks the page changed, so upstream’s page opened with Reset and Apply enabled and asked about unsaved changes on leaving it. It is to be offered upstream.
webshortcuts-load-unchanged.patch— webshortcuts KCM: a page just loaded has nothing to saveFilterOptions::load() sets the default engine, the two check boxes and the delimiter, and each of those widgets' change signals is connected to markAsChanged(). Loading the page therefore marked it changed: Reset and Apply were enabled as soon as Web Search Keywords opened, and leaving it asked about changes nobody made. load() now ends by clearing the flag, as save() does after writing.
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 kio-extras'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/kde/kio-extras.
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/kde/kio-extras
echo 'b5fc98552eea1f9279fb1f03c7e3ffb36a46ffddd0bf0bba9868331d8c461e6e kio-extras-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/kio-extras
SRC=$SRC_ROOT/kio-extras-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf kio-extras-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/webshortcuts-load-unchanged.patch"
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-D BUILD_DOC=ON \
-D BUILD_KCMS=ON \
-D BUILD_ACTIVITIES=ON \
-D BUILD_FUZZERS=OFF \
-D USE_DBUS=ON \
-D WITH_LIBPROXY=OFF \
-D CMAKE_REQUIRE_FIND_PACKAGE_Samba=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_libssh=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_TIRPC=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_libappimage=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Libmtp=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_IMobileDevice=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_PList=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Gperf=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Taglib=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_OpenEXR=ON \
-D WITHOUT_X11=OFF \
-D CMAKE_REQUIRE_FIND_PACKAGE_X11=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KExiv2Qt6=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/; the image is English only (see Size and language policy).-D BUILD_DOC=ON— Builds the handbooks of the workers, upstream’s default, named;-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ONmakes kdoctools a requirement, so a missing one stops the configure.-D BUILD_KCMS=ON— Builds the four settings modules (kcm_trash,kcm_proxy,kcm_netpref,kcm_webshortcuts), which System Settings shows under Network and Files; it requires kcmutils. Upstream’s default, named.-D BUILD_ACTIVITIES=ON— Builds theactivities:/andrecentlyused:/workers and the “Forget” file-item action, on plasma-activities and plasma-activities-stats, both required by it. Dolphin’s and the file dialog’s Recent Files and Recent Locations places arerecentlyused:/URLs. Upstream’s default, named.-D BUILD_FUZZERS=OFF— No thumbnailer fuzzing targets. Upstream’s default, named.-D USE_DBUS=ON— Builds the parts that talk over D-Bus: the MTP, SMB and file-name search workers and the activities workers all need it. Upstream’s default on Linux, named.-D WITH_LIBPROXY=OFF— No WPAD proxy detection in the Proxy page. It needs libproxy, which is not a port; the page still sets a manual proxy or a PAC URL.-D CMAKE_REQUIRE_FIND_PACKAGE_Samba=ON— Requires libsmbclient from samba for thesmb:/worker, which upstream builds only when Samba is found. The worker requires KDSoapWSDiscoveryClient from kdsoap-ws-discovery-client to find Windows 10 and later machines over WS-Discovery, and kdnssd for DNS-SD.-D CMAKE_REQUIRE_FIND_PACKAGE_libssh=ON— Requires libssh for thesftp:/worker, which upstream builds only when libssh is found. Once it is, the worker requires QCoro’s Core component from qcoro.-D CMAKE_DISABLE_FIND_PACKAGE_TIRPC=ON— Nonfs:/worker. It browses NFSv2 and NFSv3 exports over ONC RPC through libtirpc, which this port does not name; NFS shares are mounted with the kernel client from nfs-utils.-D CMAKE_DISABLE_FIND_PACKAGE_libappimage=ON— No AppImage thumbnails; libappimage is not a port.-D CMAKE_REQUIRE_FIND_PACKAGE_Libmtp=ON— Requires libmtp for themtp:/worker.-D CMAKE_REQUIRE_FIND_PACKAGE_IMobileDevice=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_PList=ON— Require libimobiledevice and libplist, the two libraries theafc:/worker for iPhones and iPads needs.-D CMAKE_REQUIRE_FIND_PACKAGE_Gperf=ON— Requires gperf, which generates theman:/worker’s lookup tables; without it upstream leaves that worker out.-D CMAKE_REQUIRE_FIND_PACKAGE_Taglib=ON— Requires taglib for the cover-art thumbnails of audio files.-D CMAKE_REQUIRE_FIND_PACKAGE_OpenEXR=ON— Requires openexr for EXR thumbnails.-D WITHOUT_X11=OFF— Searches for X11, upstream’s default, named; with-D CMAKE_REQUIRE_FIND_PACKAGE_X11=ONlibX11 and libXcursor are required for the thumbnails of X cursor themes, which are the files cursor themes still ship.-D CMAKE_REQUIRE_FIND_PACKAGE_KExiv2Qt6=ON— Requires libkexiv2, from which the thumbnailer reads the preview a JPEG or camera raw file carries instead of decoding the whole picture.
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/kio-extras, 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 kio-extras-26.08.2-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/kio-extras, and runs the triggers its paths call for.
Contents
Installed libraries: libkioarchive6.so.
Installed directories: /usr/include/KioArchive6, /usr/lib/cmake/KioArchive6, /usr/share/doc/HTML/en/kcontrol6/netpref, /usr/share/doc/HTML/en/kcontrol6/proxy, /usr/share/doc/HTML/en/kcontrol6/trash, /usr/share/doc/HTML/en/kcontrol6/webshortcuts, /usr/share/doc/HTML/en/kioworker6/bzip2, /usr/share/doc/HTML/en/kioworker6/fish, /usr/share/doc/HTML/en/kioworker6/gzip, /usr/share/doc/HTML/en/kioworker6/info, /usr/share/doc/HTML/en/kioworker6/man, /usr/share/doc/HTML/en/kioworker6/nfs, /usr/share/doc/HTML/en/kioworker6/sftp, /usr/share/doc/HTML/en/kioworker6/smb, /usr/share/doc/HTML/en/kioworker6/tar, /usr/share/doc/HTML/en/kioworker6/thumbnail, /usr/share/doc/HTML/en/kioworker6/xz, /usr/share/doc/HTML/en/kioworker6/zstd, /usr/share/kio_filenamesearch, /usr/share/kio_info, /usr/share/konqueror/dirtree, /usr/share/licenses/kio-extras.
Notes
The man:/ worker renders pages with its own man2html converter and runs no formatter. The DjVu thumbnailer runs ddjvu from djvulibre at run time, which the configure does not check.
The SMB worker’s WS-Discovery search sends to UDP port 3702 and listens for the replies, so it finds Windows machines only where the firewall lets those replies in.