Commit 97cddaa
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.1 parent c39db65 commit 97cddaa
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
| 152 | + | |
| 153 | + | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
194 | 193 | | |
195 | 194 | | |
196 | 195 | | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
0 commit comments