Bug#842012: emacs24-lucid: On gpg file, Emacs starts gpg --no-tty even when there is no X display

2016-10-25 Thread Vincent Lefevre
On 2016-10-25 13:02:10 -0400, Daniel Kahn Gillmor wrote:
> It is not inherently a bug to run "gpg --no-tty" with no X display.

This is documented as:

  Make sure that the TTY (terminal) is never used for any output.

But in my case (SSH without X forwarding), the tty was the *only* way
to provide the passphrase. Even if this doesn't imply anything for
input (to get the passphrase), it still has to display the prompt on
the tty.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#842012: emacs24-lucid: On gpg file, Emacs starts gpg --no-tty even when there is no X display

2016-10-25 Thread Daniel Kahn Gillmor
On Tue 2016-10-25 05:05:51 -0400, Vincent Lefevre wrote:

> After connecting to a machine via SSH (no X forwarding), and running
> "emacs file.gpg", Emacs starts:
>
>   /usr/bin/gpg --no-tty --status-fd 1 --yes --enable-progress-filter \
>   --command-fd 0 --output /tmp/epg-output9765F4x --decrypt -- 
>
> and freezes as there is no X display. I can interrupt it with C-g,
> but I can't get the decoded file. There is no such problem with
> emacs24 on Ubuntu.

It is not inherently a bug to run "gpg --no-tty" with no X display.
There are many situations where gpg will have neither a tty nor an X11
display, and it should still be able to work.

if the agent itself needs other means to unlock any keys, that's a
separate question, but the title of this bug seems to make an assumption
that i don't think is warranted.  can you explain it another way?

 --dkg


signature.asc
Description: PGP signature


Bug#842012: emacs24-lucid: On gpg file, Emacs starts gpg --no-tty even when there is no X display

2016-10-25 Thread Vincent Lefevre
Package: emacs24-lucid
Version: 24.5+1-7
Severity: normal

After connecting to a machine via SSH (no X forwarding), and running
"emacs file.gpg", Emacs starts:

  /usr/bin/gpg --no-tty --status-fd 1 --yes --enable-progress-filter \
  --command-fd 0 --output /tmp/epg-output9765F4x --decrypt -- 

and freezes as there is no X display. I can interrupt it with C-g,
but I can't get the decoded file. There is no such problem with
emacs24 on Ubuntu.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages emacs24-lucid depends on:
ii  emacs24-bin-common 24.5+1-7
ii  libacl12.2.52-3
ii  libasound2 1.1.2-1
ii  libc6  2.24-5
ii  libcairo2  1.14.6-1+b1
ii  libdbus-1-31.10.12-1
ii  libfontconfig1 2.11.0-6.7
ii  libfreetype6   2.6.3-3+b1
ii  libgdk-pixbuf2.0-0 2.36.0-1
ii  libgif75.1.4-0.3
ii  libglib2.0-0   2.50.1-1
ii  libgnutls303.5.5-2
ii  libgomp1   6.2.0-9
ii  libgpm21.20.4-6.2
ii  libice62:1.0.9-1+b1
ii  libjpeg62-turbo1:1.5.1-2
ii  libm17n-0  1.7.0-3+b1
ii  libmagickcore-6.q16-2  8:6.9.6.2+dfsg-2
ii  libmagickwand-6.q16-2  8:6.9.6.2+dfsg-2
ii  libotf00.9.13-3
ii  libpng16-161.6.25-2
ii  librsvg2-2 2.40.16-1
ii  libselinux12.5-3
ii  libsm6 2:1.2.2-1+b1
ii  libtiff5   4.0.6-2
ii  libtinfo5  6.0+20160917-1
ii  libx11-6   2:1.6.3-1
ii  libxext6   2:1.3.3-1
ii  libxft22.3.2-1
ii  libxinerama1   2:1.1.3-1+b1
ii  libxml22.9.4+dfsg1-2
ii  libxmu62:1.1.2-2
ii  libxpm41:3.5.11-1+b1
ii  libxrandr2 2:1.5.0-1
ii  libxrender11:0.9.9-2
ii  libxt6 1:1.1.5-1
ii  xaw3dg 1.5+E-18.2
ii  zlib1g 1:1.2.8.dfsg-2+b1

emacs24-lucid recommends no packages.

Versions of packages emacs24-lucid suggests:
ii  emacs24-common-non-dfsg  24.5+1-2

-- no debconf information