[pkg-gnupg-maint] Bug#913614: Bug#913614: gnupg2 fails with "cannot open '/dev/tty': No such device or address"

Tianon Gravi tianon at debian.org
Tue Nov 13 15:19:40 GMT 2018


On Tue, 13 Nov 2018 15:18:22 +0100 Werner Koch <wk at gnupg.org> wrote:
> For any script use you should anyway use --batch which disables the use
> of the tty as a side-effect.

Even for something that shouldn't have a reason to prompt, like
"--recv-keys" with a full fingerprint?

It makes some sense logically, but seems a bit overkill (and worked
fine without in the previous Debian Stable version of gnupg), and is
now a pretty common pattern in the Docker ecosystem (I've seen failing
builds in a huge number of repositories now with this exact
tty-related error on similar "--recv-keys" invocations).

Would it make sense to detect that there's no TTY present and assume
batch mode?  (apologies if something like that's been proposed before)

(And to be explicitly clear, your work on GnuPG is appreciated!)

♥,
- Tianon
  4096R / B42F 6819 007F 00F8 8E36  4FD4 036A 9C25 BF35 7DD4



More information about the pkg-gnupg-maint mailing list