[pkg-gnupg-maint] Bug#802020: gnupg: PINENTRY_USER_DATA environment variable is not sent to pinentry

Antoine Amarilli a3nm at a3nm.net
Fri Oct 16 21:20:19 UTC 2015

Package: gnupg
Version: 1.4.19-5
Severity: normal

The manpage of gpg states that the PINENTRY_USER_DATA environment variable is
passed via gpg-agent to pinentry. However this doesn't seem to be true. Setting
pinentry-program in ~/.gnupg-gpg-agent.conf to a script that dumps its
environment to a file, I don't see any PINENTRY_USER_DATA when calling gpg with
the following invocation:

  gpg --sign testfile

However, the exact same thing works with gpg2.

Looking around in the source tree for gnupg, I'm confused because it seems like
PINENTRY_USER_DATA isn't mentioned anywhere except in the doc. (It occurs in
gnupg2, however.) Unless I'm getting something wrong, PINENTRY_USER_DATA should
be removed from the gnupg documentation, or support for that variable should be
actually implemented.

-- System Information:
Debian Release: stretch/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gnupg depends on:
ii  gpgv          1.4.19-5
ii  libbz2-1.0    1.0.6-8
ii  libc6         2.19-22
ii  libreadline6  6.3-8+b3
ii  libusb-0.1-4  2:0.1.12-27
ii  zlib1g        1:1.2.8.dfsg-2+b1

Versions of packages gnupg recommends:
ii  gnupg-curl     1.4.19-5
ii  libldap-2.4-2  2.4.42+dfsg-2

Versions of packages gnupg suggests:
ii  eog           3.18.0-1
pn  gnupg-doc     <none>
ii  imagemagick   8:
ii  libpcsclite1  1.8.14-1
ii  parcimonie    0.9-3

-- debconf-show failed

More information about the pkg-gnupg-maint mailing list