diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-11-08 05:45:44 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-11-10 18:08:10 +0100 |
commit | 48b23e4578736c4e9d29c270ce3be72be73a9405 (patch) | |
tree | 1585282507098737378d02f68ae319ea53f458e3 /eclass | |
parent | net-misc/icaclient: update dev-libs/atk dep (diff) | |
download | gentoo-48b23e4578736c4e9d29c270ce3be72be73a9405.tar.gz gentoo-48b23e4578736c4e9d29c270ce3be72be73a9405.tar.bz2 gentoo-48b23e4578736c4e9d29c270ce3be72be73a9405.zip |
verify-sig.eclass: Workaround GPG problems with long TMPDIR
Force using TMPDIR=/tmp to workaround GPG failing when TMPDIR happens
to be long enough to cause UNIX socket paths to exceed the system limit.
Closes: https://bugs.gentoo.org/854492
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/verify-sig.eclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/verify-sig.eclass b/eclass/verify-sig.eclass index 1d7c62d4dce2..394ce2e44427 100644 --- a/eclass/verify-sig.eclass +++ b/eclass/verify-sig.eclass @@ -141,6 +141,9 @@ verify-sig_verify_detached() { einfo "Verifying ${filename} ..." case ${VERIFY_SIG_METHOD} in openpgp) + # gpg can't handle very long TMPDIR + # https://bugs.gentoo.org/854492 + local -x TMPDIR=/tmp gemato gpg-wrap -K "${key}" "${extra_args[@]}" -- \ gpg --verify "${sig}" "${file}" || die "PGP signature verification failed" @@ -190,6 +193,9 @@ verify-sig_verify_message() { einfo "Verifying ${filename} ..." case ${VERIFY_SIG_METHOD} in openpgp) + # gpg can't handle very long TMPDIR + # https://bugs.gentoo.org/854492 + local -x TMPDIR=/tmp gemato gpg-wrap -K "${key}" "${extra_args[@]}" -- \ gpg --verify --output="${output_file}" "${file}" || die "PGP signature verification failed" |