Home GnuPG
Diffusion GPGME d09d19fa9fe1

Make GNUPGHOME for tests overridable

Description

Make GNUPGHOME for tests overridable

* lang/python/tests/Makefile.am,
lang/qt/tests/Makefile.am,
tests/Makefile.am,
tests/gpg/Makefile.am,
tests/gpgsm/Makefile.am,
tests/opassuan/Makefile.am (GNUPGHOME): Make variable explict.

If the build directory has too long path, gpgme could fail.
This is similar to

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847206

In order to fix that, this patch extracts the GNUPGHOME variable
to be presented directly in the Makefile and thus overridable by
command line option.

A build system can then create a symlink to the GNUPGHOME directory
in /tmp and use that symlink as the GNUPGHOME directory
thus making the path very short.

Patch provided by vlmarek

Details

Provenance
aheineckeAuthored on Aug 6 2018, 9:30 AM
Parents
rMa6e5c8bf1869: cpp: Add safety checks for key update
Branches
Unknown
Tags
Unknown
Tasks
T4091: gpgme fails compilation in deep directory