diff options
author | Andre Heinecke <aheinecke@intevation.de> | 2018-08-06 09:30:47 +0200 |
---|---|---|
committer | Andre Heinecke <aheinecke@intevation.de> | 2018-08-06 09:30:47 +0200 |
commit | d09d19fa9fe1e81dd819b32208b4bd09f83e3918 (patch) | |
tree | 26257f898ba309f150bde6aef2a7ef7de3433ca0 /tests/gpg | |
parent | a6e5c8bf18696007c48c6f362aa355020fe82f21 (diff) | |
download | gpgme-d09d19fa9fe1e81dd819b32208b4bd09f83e3918.tar.gz |
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.
GnuPG-Bug-Id: T4091
Patch provided by vlmarek
Diffstat (limited to 'tests/gpg')
-rw-r--r-- | tests/gpg/Makefile.am | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gpg/Makefile.am b/tests/gpg/Makefile.am index b50f4b07..392fc898 100644 --- a/tests/gpg/Makefile.am +++ b/tests/gpg/Makefile.am @@ -22,7 +22,8 @@ GPG = gpg GPG_AGENT = gpg-agent -TESTS_ENVIRONMENT = GNUPGHOME=$(abs_builddir) LC_ALL=C GPG_AGENT_INFO= \ +GNUPGHOME=$(abs_builddir) +TESTS_ENVIRONMENT = GNUPGHOME=$(GNUPGHOME) LC_ALL=C GPG_AGENT_INFO= \ top_srcdir=$(top_srcdir) # The keylist tests must come after the import and the edit test. |