235.2. gpgme-2.2.0
C library that allows cryptography support to be added to a program
2.2.0-1 · LGPL-2.1-or-later AND GPL-3.0-or-later AND MIT · 0.6 SBU · 1.3 MiB, 22 files · 43_toolkits, 45 of 344 · ports/core/crypto/gpgme
Homepage: https://www.gnupg.org/software/gpgme/
GPGME (GnuPG Made Easy) is the C library through which programs use GnuPG: it runs gpg, gpgsm and the other GnuPG tools as child processes, talks to them over pipes and the Assuan protocol, and gives the caller an API for encrypting, decrypting, signing, verifying and managing keys. Mail and chat clients (notmuch, gmime, dino, profanity) and the container tools that verify image signatures (podman, skopeo, buildah) link it. The C++ and Qt bindings are the separate gpgmepp and qgpgme ports.
Depends on: libgpg-error, libassuan, gnupg.
Required by (12): buildah, dino, gmime, gpgmepp, kgpg, kwallet, notmuch, podman, profanity, qgpgme, skopeo, volume_key.
Sources: gpgme-2.2.0.tar.bz2 (1.4 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install gpgme'
build.sh:
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--disable-linux-getdents \
--disable-gpg-test \
--disable-gpgsm-test \
--disable-g13-test \
--disable-static
make
make DESTDIR=$PKG install
--disable-linux-getdents— Before running a GnuPG tool, GPGME closes every inherited file descriptor in the child. On Linux it normally finds the highest open descriptor by reading/proc/self/fdwith the rawgetdents64system call, becausereaddiris not safe betweenforkandexecin a threaded process. That code declares its directory entry withino64_tandoff64_t, names musl’s headers define only under_LARGEFILE64_SOURCE. With the switch, GPGME takes the hard descriptor limit fromgetrlimit(RLIMIT_NOFILE)instead and closes up to it, which costs moreclosecalls per spawned process and behaves the same.--disable-gpg-test,--disable-gpgsm-test,--disable-g13-test— Build none of the regression test programs; the port runs no tests.--disable-gpg-testalone dropstests/from the build, whoserun-*programs a plainmakewould otherwise compile.--disable-gpgsm-testgates only thegpgsmandopassuandirectories insidetests/, and--disable-g13-testgates nothing in this release, so both restate what the first removes.
Programs: gnupg-key-manage, gpgme-config, gpgme-json, gpgme-tool.
Libraries: libgpgme.so.
Directories: /usr/share/common-lisp/source/gpgme, /usr/share/licenses/gpgme.