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

253.11. gvfs-1.62.0

GIO virtual filesystem — sftp, smb, dav, trash, recent, MTP, camera and device volumes for GTK applications

Version 1.62.0, release 1
Shelf gtk — The GLib and GTK platform and GNOME/Xfce desktop-platform libraries: widgets, settings, bindings, GIO plug-ins
Phase 43_toolkits (Toolkits), 168 of 344 in build order
Licence LGPL-2.0-or-later
Homepage https://gitlab.gnome.org/GNOME/gvfs
Build time 3.8 SBU
Installed size 3.3 MiB in 74 files
Recipe ports/core/gtk/gvfs/kpkgbuild

About

GVfs is GIO’s virtual filesystem: a set of daemons, one per kind of location, that let any program using GIO open sftp://, smb://, dav://, ftp://, mtp://, gphoto2://, trash:/// and recent:/// locations as if they were local, and volume monitors that list disks, phones and cameras. Through it a GTK application’s file chooser can browse network shares and devices. The daemons start on demand over D-Bus.

Sources

Dependencies

Depends on: meson, ninja, pkgconf, glib, gsettings-desktop-schemas, dbus, libsecret, libsoup3, libxml2, libarchive, openssh, samba, avahi, fuse, lsof, libbluray, libcdio, libcdio-paranoia, libgphoto2, libmtp, libimobiledevice, libplist, libusb, libgudev, eudev, udisks2, polkit, libgcrypt, libcap, libxslt, docbook-xml, docbook-xsl, gettext, elogind.

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.

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 gvfs'

What kpkg does

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

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

export XML_CATALOG_FILES=/etc/xml/catalog

meson setup build \
	--prefix=/usr --sysconfdir=/etc --libdir=lib \
	--libexecdir=lib/gvfs \
	--buildtype=release \
	-Dsystemduserunitdir=no \
	-Dtmpfilesdir=no \
	-Dbusy_processes_command=lsof \
	-Dadmin=true \
	-Dafc=true \
	-Dafp=false \
	-Darchive=true \
	-Dcdda=true \
	-Ddnssd=true \
	-Dgoa=false \
	-Dgoogle=false \
	-Dgphoto2=true \
	-Dhttp=true \
	-Dmtp=true \
	-Dnfs=false \
	-Donedrive=false \
	-Dsftp=true \
	-Dsmb=true \
	-Dudisks2=true \
	-Dwsdd=false \
	-Dbluray=true \
	-Dfuse=true \
	-Dgcr=false \
	-Dgcrypt=true \
	-Dgudev=true \
	-Dkeyring=true \
	-Dlogind=true \
	-Dlibusb=true \
	-Ddevel_utils=false \
	-Dinstalled_tests=false \
	-Dunit_tests=false \
	-Dman=true
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build

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

Contents

Installed directories: /usr/lib/gvfs, /usr/share/gvfs, /usr/share/licenses/gvfs.