I make different observations (using self-compiled gpg installed to /opt/
gnupg/master with a non-standard GNUPGHOME):
It turns out the source of the trouble was systemd, which was starting
gpg-agent on demand, and was forcing it to use /usr/bin/gpg-agent.
Setting a user override file fixed
On Mittwoch, 8. Dezember 2021 04:49:12 CET Robert J. Hansen via Gnupg-users
wrote:
> Let's start by nuking the .gnupg directory and shutting down all GnuPG
> daemons:
>
> rjh@ripley:~$ rm -rf .gnupg
> rjh@ripley:~$ /usr/local/bin/gpgconf --kill all
> rjh@ripley:~$ ps ax|grep [g]pg-agent
>
>