Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create a new temporary directory for GNUPGHOME
Storing GNUPGHOME inside the build tree may result in the following when calling gpg.Context().create_key(): gpg.errors.GPGMEError: gpgme_op_createkey: GnuPG: No agent running This happens if the path to the build tree is so long, that the path to the socket `S.gpg-agent` inside the GNUPGHOME exceeds 108 characters. The limit comes from sockaddr_un.sun_path, see unix(7) or: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847206 Long build paths are commonly found when building bmaptool inside sbuild or on Debian gitlab CI. By setting GNUPGHOME to a new temporary directory, which will likely be placed in /tmp, we avoid problems with long paths to GNUPGHOME.
- Loading branch information