Subject: Re: bug#41941: Signing git commits with PGP fails

From: Leo Famulari <[email-masked]>
Date: Fri, 19 Jun 2020 12:17:54 -0400

On Fri, Jun 19, 2020 at 04:43:10PM +0200, Jonathan Brielmaier wrote:
> I have pinentry installed from the config.scm, but it's still
> [...]
> gpg: signing failed: No pinentry

I think the root of the problem is that GPG can't find pinentry.

With Guix, it should work automatically if you install GPG and a
pinentry to your user's profile. [0]

When installed via config.scm, you should set "pinentry-program" with
the right path, either on gpg-agent's command line or in
~/.gnupg/gpg-agent.conf.

[0] See 'gnu/packages/patches/gnupg-default-pinentry.patch' of commit
e5b44b06b3f, which fixed a longstanding UX bug