[Bug 987597] New: caff always errors out with "gpg exited with value 2" / "Couldn't import key(s) <my key> from $HOME/.caff/gnupghome
http://bugzilla.novell.com/show_bug.cgi?id=987597 Bug ID: 987597 Summary: caff always errors out with "gpg exited with value 2" / "Couldn't import key(s) <my key> from $HOME/.caff/gnupghome Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: Other OS: openSUSE 42.1 Status: NEW Severity: Normal Priority: P5 - None Component: Security Assignee: joop.boonen@boonen.org Reporter: suse-beta@cboltz.de QA Contact: qa-bugs@suse.de CC: vcizek@suse.com Found By: Beta-Customer Blocker: --- caff always errors out for me: (in a 42.1 VM, because it's no longer part of Tumbleweed) # caff 6F58C4635A519E8C4A6ACD6EE69F22089B497C99 [NOTICE] Fetching keys from hkp://keys.gnupg.net, this may take a while... [NOTICE] Sign the following keys according to your policy, then exit gpg with 'save' after signing each key gpg --local-user C6A682EA63C82F1C --homedir=/home/cb/.caff/gnupghome --secret-keyring /home/cb/.gnupg/secring.gpg --no-auto-check-trustdb --trust-model=always --edit-key 6F58C4635A519E8C4A6ACD6EE69F22089B497C99 sign gpg (GnuPG) 2.0.24; Copyright (C) 2013 Free Software Foundation, Inc. [... signing the key ...] gpg> save Schlüssel ist nicht geändert worden, also ist kein Speichern nötig. [WARN] gpg exited with value 2 [ERROR] Couldn't import key(s) C6A682EA63C82F1C from /home/cb/.caff/gnupghome After this error, caff aborts :-( Some searching through the code shows that "wantarray" is never set (unless it's done in a totally crazy, non-greppable way somewhere), which means import_keys_from_gnupghome() will never do the "return" and instead error out. The patch below fixed it for me, but I'm not sure if it really solves the problem or just covers it (I still get the "[WARN]"). At least I was able to sign keys and send out signatures. I also verified that those mails actually contain the expected key with my signature added ;-) --- /usr/bin/caff.orig 2015-11-27 09:12:57.000000000 +0100 +++ /usr/bin/caff 2016-07-05 00:24:00.069169872 +0200 @@ -1189,7 +1189,7 @@ done_gpg($iPid, $handles); # import done done_gpg($ePid); # export done - return (keys %keyids) if wantarray; # list context + return (keys %keyids) ; #if wantarray; # list context myerror(1, "Couldn't import key(s) ".(join ',', keys %keyids)." from $src") if %keyids; } -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=987597
http://bugzilla.novell.com/show_bug.cgi?id=987597#c1
Joop Boonen
participants (1)
-
bugzilla_noreply@novell.com