On 21/01/15 6:05, Guilhem Moulin wrote:
Your report says you have signing-party 1.1.4-1, but your patch seems to
be against a more recent version :-P
Yes, the patch was originally written for the version in OS X MacPorts,
which is currently between the version in Debian Stable and Debian
Unstable. I ran reportbug on a Wheezy system, so it picked up the
1.1.4-1 version there. I thought it'd cause more confusion manually
editing it, so I left it alone.
gpg --version
gpg --trust-model=always --no-auto-check-trustdb --fingerprint --with-colons
--list-public-keys --no-tty --batch -- KEYID </dev/null
That should be the faulting command; it works here, even after a ‘unset
GPG_TTY’.[...]
Thanks for investigating. For completeness, the test command needs to
have stderr redirected to /dev/null as well (ie, 2>/dev/null), as that
was what was triggering it when caff did it (and the --list-public-keys
is being run by caff with stderr redirected to /dev/null).
Trying that on Debian Stable (gpg 1.4.12), Debian Unstable (gpg 1.4.18)
and the OS X/MacPorts build (gpg 1.4.18) gives some puzzling results:
- Debian Wheezy (gpg 1.4.12): works, with (and without) stderr
redirected to /dev/null
- Debian Unstable (gpg 1.4.18): works, with (and without) stderr
redirected to /dev/null
- MacPorts (OS X) (gpg 1.4.18): works _without_ sderr redirected, fails
with stderr redirected (no output, exit code 1), unless GPG_TTY is set
then it works again.
GPG_AGENT_INFO doesn't seem to need to be set to trigger the problem.
Full command output below for reference (the "cut" used just to avoid
someone's email addresses ended up indexed on the web...).
I'll take the "works on Debian, fails on OS X" back to the MacPorts
ticket (https://trac.macports.org/ticket/46601). But I do think it'd be
helpful if caff would either (a) not redirect stderr or (b) ensure that
GPG_TTY is set when stderr is being redirected. Since those seem to be
the two safe ways to run gpg reliably.
Since it appears that gpg-agent is not related feel free to update the
ticket title.
Ewen
PS: In case it helps, this is the MacPorts build file for GPG:
https://trac.macports.org/browser/trunk/dports/mail/gnupg/Portfile
I don't obviously see compile options that should cause different
behaviour from Debian/Linux here, but maybe this is build option related.
-=- debian stable -=-
ewen@fileserver:~$ cat /etc/debian_version
7.7
ewen@fileserver:~$ gpg --version
gpg (GnuPG) 1.4.12
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,
CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
ewen@fileserver:~$ gpg --trust-model=always --no-auto-check-trustdb
--fingerprint --with-colons --list-public-keys --no-tty --batch --
E4D3E863 </dev/null | cut -d : -f 1-9
tru:t:1:1421789858:0:3:1:5
pub:-:4096:1:4B53D931E4D3E863:2014-02-20:::-
fpr::::::::
uid:-::::2014-04-08::88B8E69DFB8879D35E0E1175A2DF0CAB293C25B6:
uid:-::::2014-04-08::8A5CEE366E5F7EC4848EEA7A36061D438A9DBDA3:
uid:-::::2014-04-08::848AF9F923716ACEDDF0731C43D87B12EC7B2A1C:
uid:-::::2014-04-08::43CEEE6796FE783AB240EED811DB5EA31F901A04:
uid:-::::2014-04-08::8A690AF6EF357372EA0D60A3C7625327A64D992C:
sub:-:4096:1:9CF0A2343CD15819:2014-02-20:::
ewen@fileserver:~$ gpg --trust-model=always --no-auto-check-trustdb
--fingerprint --with-colons --list-public-keys --no-tty --batch --
E4D3E863 </dev/null 2>/dev/null | cut -d : -f 1-9
tru:t:1:1421789858:0:3:1:5
pub:-:4096:1:4B53D931E4D3E863:2014-02-20:::-
fpr::::::::
uid:-::::2014-04-08::88B8E69DFB8879D35E0E1175A2DF0CAB293C25B6:
uid:-::::2014-04-08::8A5CEE366E5F7EC4848EEA7A36061D438A9DBDA3:
uid:-::::2014-04-08::848AF9F923716ACEDDF0731C43D87B12EC7B2A1C:
uid:-::::2014-04-08::43CEEE6796FE783AB240EED811DB5EA31F901A04:
uid:-::::2014-04-08::8A690AF6EF357372EA0D60A3C7625327A64D992C:
sub:-:4096:1:9CF0A2343CD15819:2014-02-20:::
ewen@fileserver:~$
-=- debian stable -=-
-=- debian unstable -=-
ewen@debian-unstable:~$ cat /etc/debian_version
8.0
ewen@debian-unstable:~$ gpg --version
gpg (GnuPG) 1.4.18
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
ewen@debian-unstable:~$ gpg --trust-model=always --no-auto-check-trustdb
--fingerprint --with-colons --list-public-keys --no-tty --batch --
E4D3E863 </dev/null | cut -d : -f 1-9
tru:t:1:1421790396:0:3:1:5
pub:-:4096:1:4B53D931E4D3E863:2014-02-20:::-
fpr::::::::
uid:-::::2014-04-08::88B8E69DFB8879D35E0E1175A2DF0CAB293C25B6:
uid:-::::2014-04-08::8A5CEE366E5F7EC4848EEA7A36061D438A9DBDA3:
uid:-::::2014-04-08::848AF9F923716ACEDDF0731C43D87B12EC7B2A1C:
uid:-::::2014-04-08::43CEEE6796FE783AB240EED811DB5EA31F901A04:
uid:-::::2014-04-08::8A690AF6EF357372EA0D60A3C7625327A64D992C:
sub:-:4096:1:9CF0A2343CD15819:2014-02-20:::
ewen@debian-unstable:~$ gpg --trust-model=always --no-auto-check-trustdb
--fingerprint --with-colons --list-public-keys --no-tty --batch --
E4D3E863 </dev/null 2>/dev/null | cut -d : -f 1-9
tru:t:1:1421790396:0:3:1:5
pub:-:4096:1:4B53D931E4D3E863:2014-02-20:::-
fpr::::::::
uid:-::::2014-04-08::88B8E69DFB8879D35E0E1175A2DF0CAB293C25B6:
uid:-::::2014-04-08::8A5CEE366E5F7EC4848EEA7A36061D438A9DBDA3:
uid:-::::2014-04-08::848AF9F923716ACEDDF0731C43D87B12EC7B2A1C:
uid:-::::2014-04-08::43CEEE6796FE783AB240EED811DB5EA31F901A04:
uid:-::::2014-04-08::8A690AF6EF357372EA0D60A3C7625327A64D992C:
sub:-:4096:1:9CF0A2343CD15819:2014-02-20:::
ewen@debian-unstable:~$
-=- debian unstable -=-
-=- OS/X MacPorts -=-
ewen@ashram:~$ uname -a
Darwin ashram 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11
PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
ewen@ashram:~$ gpg --version
gpg (GnuPG) 1.4.18
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
ewen@ashram:~$ gpg --trust-model=always --no-auto-check-trustdb
--fingerprint --with-colons --list-public-keys --no-tty --batch --
E4D3E863 </dev/null | cut -d : -f 1-9
tru:t:1:1421783567:1472030130:3:1:5
pub:-:4096:1:4B53D931E4D3E863:2014-02-20:::-
fpr::::::::
uid:-::::2014-04-08::848AF9F923716ACEDDF0731C43D87B12EC7B2A1C:
uid:-::::2014-04-08::43CEEE6796FE783AB240EED811DB5EA31F901A04:
uid:-::::2014-04-08::88B8E69DFB8879D35E0E1175A2DF0CAB293C25B6:
uid:-::::2014-04-08::8A5CEE366E5F7EC4848EEA7A36061D438A9DBDA3:
uid:-::::2014-04-08::8A690AF6EF357372EA0D60A3C7625327A64D992C:
sub:-:4096:1:9CF0A2343CD15819:2014-02-20:::
ewen@ashram:~$ gpg --trust-model=always --no-auto-check-trustdb
--fingerprint --with-colons --list-public-keys --no-tty --batch --
E4D3E863 </dev/null 2>/dev/null
ewen@ashram:~$ echo $?
1
ewen@ashram:~$ GPG_TTY=$(tty) gpg --trust-model=always
--no-auto-check-trustdb --fingerprint --with-colons --list-public-keys
--no-tty --batch -- E4D3E863 </dev/null 2>/dev/null | cut -d : -f 1-9
tru:t:1:1421783567:1472030130:3:1:5
pub:-:4096:1:4B53D931E4D3E863:2014-02-20:::-
fpr::::::::
uid:-::::2014-04-08::848AF9F923716ACEDDF0731C43D87B12EC7B2A1C:
uid:-::::2014-04-08::43CEEE6796FE783AB240EED811DB5EA31F901A04:
uid:-::::2014-04-08::88B8E69DFB8879D35E0E1175A2DF0CAB293C25B6:
uid:-::::2014-04-08::8A5CEE366E5F7EC4848EEA7A36061D438A9DBDA3:
uid:-::::2014-04-08::8A690AF6EF357372EA0D60A3C7625327A64D992C:
sub:-:4096:1:9CF0A2343CD15819:2014-02-20:::
ewen@ashram:~$
ewen@ashram:~$ set | grep GPG
ewen@ashram:~$
-=- OS/X MacPorts -=-
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org