GNU bug report logs - #33439
emacs-26 branch: epg-decrypt-1 test failure on Fedora 29

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Tue, 20 Nov 2018 02:19:02 UTC

Severity: normal

Fixed in version 26.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33439 in the body.
You can then email your comments to 33439 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#33439; Package emacs. (Tue, 20 Nov 2018 02:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Eggert <eggert <at> cs.ucla.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 20 Nov 2018 02:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Emacs bugs <bug-gnu-emacs <at> gnu.org>
Subject: emacs-26 branch: epg-decrypt-1 test failure on Fedora 29
Date: Mon, 19 Nov 2018 18:09:59 -0800
The emacs-26 branch has a test failure on my Fedora 29 x86-64 platform. 
test/lisp/epg-tests.el fails the epg-decrypt-1 test. The symptom is 
(epg-error "Decryption failed" ""). I find this stuff to be a pain to 
debug and hope that someone else can debug it (or that the test be 
removed), but apparently Emacs's invocation of this this shell command:

"/usr/bin/gpg2" "--no-tty" "--status-fd" "1" "--yes" "--homedir" 
"/tmp/epg-tests-homedir2yvvtL" "--command-fd" "0" "--output" 
"/tmp/epg-outputsZghM1" "--decrypt" "--" "/tmp/epg-input9ZuUDT"

causes this output to be generated:

[GNUPG:] NEED_PASSPHRASE_SYM 3 3 2
[GNUPG:] ERROR get_passphrase 85
[GNUPG:] MISSING_PASSPHRASE
[GNUPG:] BEGIN_DECRYPTION
[GNUPG:] DECRYPTION_FAILED
[GNUPG:] END_DECRYPTION

and this causes epg.el to report a decryption failure.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33439; Package emacs. (Sat, 15 Dec 2018 00:50:01 GMT) Full text and rfc822 format available.

Message #8 received at 33439 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 33439 <at> debbugs.gnu.org
Subject: Re: bug#33439: emacs-26 branch: epg-decrypt-1 test failure on Fedora
 29
Date: Fri, 14 Dec 2018 19:49:29 -0500
Does this work?

--- a/test/lisp/epg-tests.el
+++ b/test/lisp/epg-tests.el
@@ -108,6 +108,8 @@ epg-tests-passphrase-callback
 
 (ert-deftest epg-decrypt-1 ()
   (with-epg-tests (:require-passphrase t)
+    (with-temp-file (expand-file-name "gpg.conf" epg-tests-home-directory)
+      (insert "ignore-mdc-error"))
     (should (equal "test"
 		   (epg-decrypt-string epg-tests-context "\
 -----BEGIN PGP MESSAGE-----




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#33439; Package emacs. (Sat, 15 Dec 2018 00:57:01 GMT) Full text and rfc822 format available.

Message #11 received at 33439 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 33439 <at> debbugs.gnu.org
Subject: Re: bug#33439: emacs-26 branch: epg-decrypt-1 test failure on Fedora
 29
Date: Fri, 14 Dec 2018 16:55:59 -0800
On 12/14/18 4:49 PM, Glenn Morris wrote:
> +    (with-temp-file (expand-file-name "gpg.conf" epg-tests-home-directory)
> +      (insert "ignore-mdc-error"))

Yes, that causes the test to pass for Fedora 29 x86-64 (when I applied 
it to current emacs-26 branch). Thanks.





bug marked as fixed in version 26.2, send any further explanations to 33439 <at> debbugs.gnu.org and Paul Eggert <eggert <at> cs.ucla.edu> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 15 Dec 2018 01:10:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 12 Jan 2019 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 77 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.