Page MenuHome GnuPG

make check fails if --with-agent-pgm is used
Closed, InvalidPublic

Description

Running make check fails if gnupg was configured with the --with-agent-pgm option. It appears the test attempts to use gpg-agent from the install location. If I cd to agent and do a make install first, make check will run correctly.

make[2]: Entering directory `/usr/local/src/GnuPG/gnupg-2.2.2/tests/openpgp'
LC_ALL=C EXEEXT= abs_top_srcdir=/usr/local/src/GnuPG/gnupg-2.2.2 objdir=/usr/local/src/GnuPG/gnupg-2.2.2 GPGSCM_PATH=/usr/local/src/GnuPG/gnupg-2.2.2/tests/gpgscm /usr/local/src/GnuPG/gnupg-2.2.2/tests/gpgscm/gpgscm \
  /usr/local/src/GnuPG/gnupg-2.2.2/tests/openpgp/run-tests.scm
("/usr/local/src/GnuPG/gnupg-2.2.2/tools/gpg-connect-agent" --verbose "--agent-program=/opt/gnupg22/bin/gpg-agent|--debug-quick-random" /bye) failed: gpg-connect-agent: no running gpg-agent - starting '/opt/gnupg22/bin/gpg-agent|--debug-quick-random'
gpg-connect-agent: failed to start agent '/opt/gnupg22/bin/gpg-agent|--debug-quick-random': No such file or directory
gpg-connect-agent: can't connect to the agent: No such file or directory
gpg-connect-agent: error sending standard options: No agent running

FAIL: tests/openpgp/setup.scm
Setup failed.
make[2]: *** [xcheck] Error 1
make[2]: Leaving directory `/usr/local/src/GnuPG/gnupg-2.2.2/tests/openpgp'

Details

Version
2.2.2

Event Timeline

What is your use case for these configure option?

I am building on a CentOS system that comes with gnupg 2.0 and I'm trying to make an isolated test install of 2.2. It would probably work fine with the right PATH, but I thought the --with-*-pgm options might help assure the new install was used.

This is a build system setup problem with standard solutions.