102.15. libsecret-0.21.8.2
Secret Service client library — stores and looks up passwords over D-Bus
0.21.8.2-1 · LGPL-2.1-or-later · 0.2 SBU · 1.2 MiB, 31 files · 41_system, 939 of 1047 · ports/core/security/libsecret
Homepage: https://gitlab.gnome.org/GNOME/libsecret
libsecret is the client library of the freedesktop Secret Service: a program stores and looks up passwords with it, and libsecret sends those requests over the session bus to whichever program owns org.freedesktop.secrets. The package also carries secret-tool, the same operations from a shell. It holds no Secret Service itself; in a Plasma session the provider is ksecretd, from kwallet, and where nothing provides one, as in a live session, every lookup fails (see A login that typed no password leaves the wallet locked). chromium, webkitgtk, qtkeychain, kwallet, gvfs, remmina and many other programs link it.
Depends on: meson, glib, libgcrypt, gobject-introspection, glib-introspection, vala, libxslt, docbook-xsl, docbook-xml, bash-completion.
Required by (17): chromium, deja-dup, gnome-disk-utility, gnucash, gvfs, keepsecret, kicad, kwallet, orcaslicer, qownnotes, qtkeychain, remmina, rhythmbox, vlc, webkitgtk, webkitgtk6, wxwidgets.
Sources: libsecret-0.21.8.2.tar.xz (208.3 KiB). Every step kpkg takes applies to this port.
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.
-Dpam=false, line 24: pam (explained with the switches below)
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install libsecret'
build.sh:
export CFLAGS="$CFLAGS -include fcntl.h"
meson setup build \
--prefix=/usr --sysconfdir=/etc --libdir=lib \
--buildtype=release \
--wrap-mode=nodownload \
-Dcrypto=libgcrypt \
-Dintrospection=true \
-Dvapi=true \
-Dmanpage=true \
-Dgtk_doc=false \
-Dbash_completion=enabled \
-Dtpm2=false \
-Dpam=false \
-Dtest_setup=disabled \
-Ddebugging=false
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build
export CFLAGS="$CFLAGS -include fcntl.h"— Include<fcntl.h>at the top of every C file.secret-file-collection.cusesO_CREATandO_RDWRand includes only<sys/file.h>for them; glibc’s<sys/file.h>pulls in<fcntl.h>, musl’s does not, and the build stops at the undeclared names.-Dcrypto=libgcrypt— The library behind the transport encryption between libsecret and the Secret Service, here libgcrypt. Upstream’s default; the other choices are GnuTLS or none.-Dintrospection=true,-Dvapi=true— Generate the GObject introspection data and the Vala bindings, so Python, GJS and Vala programs can use the library. Both are upstream’s defaults.-Dmanpage=true— Buildsecret-tool’s manual page from DocBook withxsltproc, upstream’s default; this is why libxslt, docbook-xsl and docbook-xml are independs.-Dgtk_doc=false— No API reference; it is built with gi-docgen, which is not a port.-Dbash_completion=enabled— Installsecret-tool’s bash completion, and fail configure if bash-completion is not found, instead of upstream’sauto.-Dtpm2=false— Build without the TPM2 Software Stack, which upstream leaves off.-Dpam=false— Build no PAM module; upstream’s default. libsecret’s module is a client of gnome-keyring-daemon’s control socket, and there is no gnome-keyring port.-Dtest_setup=disabled— Do not look fordbus-run-sessionto set up a test environment; the port runs no tests.-Ddebugging=false— Build without upstream’s debug code; the default.
Programs: secret-tool.
Libraries: libsecret-1.so.
Directories: /usr/include/libsecret-1, /usr/share/licenses/libsecret.