Bug#775702: caff: Using gpg-agent without GPG_TTY causes silent caff failures

2015-01-28 Thread Ewen McNeill
For completeness, with the help of an insightful question asked by the MacPorts signing-party package maintainer I re-discovered that I'd put in a shell script wrapper around "gpg", which attempted to auto-set GPG_TTY from stdin or stderr. Because (from reading the comments in the script;

Bug#775702: caff: Using gpg-agent without GPG_TTY causes silent caff failures

2015-01-22 Thread Ewen McNeill
On 23/01/15 13:20, Guilhem Moulin wrote: [T]he next step would be to mail gnupg-de...@gnupg.org, at least if the culprit is not the OSX maintainer (I dunno how things work there; assuming these macports are not built by upstream). MacPorts is basically FreeBSD ports, for Mac OS X. So it functi

Bug#775702: caff: Using gpg-agent without GPG_TTY causes silent caff failures

2015-01-22 Thread Guilhem Moulin
On Wed, 21 Jan 2015 at 15:52:45 +1300, Ewen McNeill wrote: > if (defined($ENV{MACHTYPE}) && >$ENV{MACHTYPE} =~ /apple/ && ! defined($ENV{'GPG_TTY'})) { > warn "warning: Certain gpg actions may fail if GPG_TTY is not set, ", > "causing silent caff failures.\n"; > } > > But maybe

Bug#775702: caff: Using gpg-agent without GPG_TTY causes silent caff failures

2015-01-20 Thread Ewen McNeill
On 21/01/15 13:24, Guilhem Moulin wrote: On Wed, 21 Jan 2015 at 11:12:44 +1300, Ewen McNeill wrote: - 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. Wow that's odd. I agree, it'

Bug#775702: caff: Using gpg-agent without GPG_TTY causes silent caff failures

2015-01-20 Thread Guilhem Moulin
Control: retitle -1 caff: The absence of GPG_TTY causes silent caff failures in OSX Control: tag -1 + pending On Wed, 21 Jan 2015 at 11:12:44 +1300, Ewen McNeill wrote: > - MacPorts (OS X) (gpg 1.4.18): works _without_ sderr redirected, fails with > stderr redirected (no output, exit code 1), unl

Bug#775702: caff: Using gpg-agent without GPG_TTY causes silent caff failures

2015-01-20 Thread Ewen McNeill
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 Unst

Bug#775702: caff: Using gpg-agent without GPG_TTY causes silent caff failures

2015-01-20 Thread Guilhem Moulin
Hi Ewen, Your report says you have signing-party 1.1.4-1, but your patch seems to be against a more recent version :-P But anyway I agree that the standard output shouldn't be thrown away like that. That said the absence of GPG_TTY in the environment doesn't seem to bother my gpg(1); doesn't the

Bug#775702: caff: Using gpg-agent without GPG_TTY causes silent caff failures

2015-01-18 Thread Ewen McNeill
Package: signing-party Version: 1.1.4-1 Severity: normal Initially encountered on OS/X with MacPorts (https://trac.macports.org/ticket/46601), but reported here because (a) Debian appears to be the upstream for signing-party/caff (http://pgp-tools.alioth.debian.org/) and (b) AFAICT by inspection