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
gvfs-1.62.0.tar.xz(1.3 MiB)
sha256dd8e6c255fd3bed5eeb190b59027c88b38e63c1be0932ddce9cfeb48f3c43d0f
upstream: https://download.gnome.org/sources/gvfs/1.62/gvfs-1.62.0.tar.xz
archive copy: sources-2/gtk--gvfs-1.62.0.tar.xz
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.
-Dnfs=false, line 32: libnfs (explained with the switches below)
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:
XML_CATALOG_FILES=/etc/xml/catalog— Names the XML catalogue libxml2 reads, so thatxsltprocfinds the installed docbook-xsl manual-page stylesheet by its URL when-Dman=truebuilds the manual pages, instead of trying to fetch it.--libexecdir=lib/gvfs— Installgvfsd, eachgvfsd-<backend>and the volume monitors in/usr/lib/gvfs. The D-Bus service files and mount descriptions that start them are generated with this path.-Dsystemduserunitdir=no,-Dtmpfilesdir=no— Install no systemd user units and no tmpfiles configuration. Left empty, either one makes the configure ask pkg-config for systemd’s directory and stop when systemd is not found. KDOS has no systemd (see No systemd).-Dlogind=true— Link the udisks2 volume monitor with elogind’slibelogind; meson trieslibsystemdfirst, which KDOS does not have. The monitor askssd-loginabout its own process: run in a user’s login session, it lists only the drives udisks tags with that session’s seat, and a drive with no seat tag, or a process in no session, is treated as on its seat, so a single-seat machine shows every drive either way.-Dbusy_processes_command=lsof— Name the processes that keep a volume from unmounting withlsof -t, from lsof. It is upstream’s default; the alternative isfuser.-Dadmin=true— Build theadmin://backend, which opens files as root after a polkit check, with libcap.-Dafc=true— iPhone and iPad file access over AFC, through libimobiledevice.-Darchive=true— Browse inside archives as folders, through libarchive. Upstream marks the option deprecated and leaves it off.-Dcdda=true— Audio CDs as folders of WAV files, through libcdio and libcdio-paranoia.-Ddnssd=true— Find network services announced over DNS-SD, through avahi.-Dgphoto2=true— Cameras over PTP, through libgphoto2.-Dhttp=true— Thehttp://and WebDAV backends, through libsoup3.-Dmtp=true— Phones and players over MTP, through libmtp.-Dsftp=true— SFTP, which runs thesshof openssh.-Dsmb=true— Windows and Samba shares and network browsing, through samba’s client library.-Dudisks2=true,-Dgudev=true— The volume monitor for local disks and removable media, through udisks2, which needs gudev (libgudev).-Dbluray=true— Read a Blu-ray disc’s title and icon for its volume, through libbluray.-Dfuse=true— Buildgvfsd-fuse, which exposes every GVfs mount as a directory under$XDG_RUNTIME_DIR/gvfs, so a program that does not use GIO can open its files. It needs fuse 3.-Dkeyring=true— Store and look up passwords for network locations through libsecret.-Dlibusb=true— Let the MTP backend interrupt libusb’s event handling when a device is unmounted, so the backend’s event thread can finish.-Dgcrypt=true— libgcrypt support. Only the AFP backends use it, and they are off, but on it makes libgcrypt a requirement of the configure.-Dafp=false,-Dgoogle=false— No Apple Filing Protocol and no Google Drive backends. Both are deprecated upstream and off by default; Google Drive needs libgdata and GNOME Online Accounts, neither of which is a port.-Dgoa=false,-Donedrive=false— No GNOME Online Accounts volume monitor and no OneDrive backend, which needs GOA and msgraph. Neither GNOME Online Accounts nor msgraph is a port.-Dgcr=false— No certificate prompts through gcr 4, which is not a port.-Dnfs=false— Build no NFS backend, which would use libnfs.-Dwsdd=false— Build no WS-Discovery backend, which finds Windows machines on the network by running the externalwsdddaemon;wsddis not a port.-Ddevel_utils=false,-Dinstalled_tests=false,-Dunit_tests=false— Build neither the development utilities nor the unit tests, and install no tests; all three are upstream’s defaults.
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.