Skip Menu |

This queue is for tickets about the Mail-GPG CPAN distribution.

Report information
The Basics
Id: 103828
Status: resolved
Priority: 0/
Queue: Mail-GPG

People
Owner: Nobody in particular
Requestors: perlbotics [...] yahoo.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.0.7
Fixed in: 1.0.8

Attachments


Subject: Test fails - possibly due to change in GPG output
Hi, test 03.enc.t and 04.big.t fail with messages like: # Failed test 'Decryption key or email wrong: 062F00DAE20F5035==062F00DAE20F5035' # at /home/perl5/.cpan/build/Mail-GPG-1.0.7-3Phcrc/blib/lib/Mail/GPG/Test.pm line 308. The test fails because $dec_key_mail is not set. The problem can be traced down to GPG/GPG.pm query_keyring() (ca. line 421) where the output of gpg seems to differ from what has been expected. query_keyring() uses the arguments "--list-keys --with-colons 6C187D0F196ED9E3" and gpg returns: tru:t:1:1429473192:0:3:1:5 pub:-:1024:17:062F00DAE20F5035:1076425915:::-:::scaESCA: uid:-::::1076425915::588869ADE077B8FB05788A99565AEED15AED8231::Jörn Reder Mail\x3a\x3aGPG Test Key <mailgpg@localdomain>: sub:-:1024:16:6C187D0F196ED9E3:1076425917::::::e: where the /^pub/ line is scanned but it does not contain the email-address. That is contained in the following line (/^uid:/. Thanks. Versions: - Perl: (v5.18.2) built for x86_64-linux-thread-multi - Linux site 3.11.10-29-desktop #1 SMP PREEMPT Thu Mar 5 16:24:00 UTC 2015 (338c513) x86_64 x86_64 x86_64 GNU/Linux - openSUSE 13.1 (x86_64) - GnuPG::Interface V0.52 (not patched) - gpg (GnuPG) 2.0.22, libgcrypt 1.5.4
Subject: [PATCHED] Test fails - possibly due to change in GPG output
From: perlbotics [...] yahoo.de
This patch seems to fix RT103828, RT81082, and RT80500 the problem for me. YMMV! README.103828: Apply patch for RT103828: https://rt.cpan.org/Public/Bug/Display.html?id=103828 $you> unzip Mail_GPG_1.0.7.RT103828.patch.zip $you> tar xzf Mail-GPG-1.0.7.tar.gz $you> cd Mail-GPG-1.0.7 $you> patch -Np1 < ../Mail_GPG_1.0.7.RT103828.patch $you> # proceed as usual $you> perl Makefile.PL && make && make test Good luck! Am So 19. Apr 2015, 16:11:05, Perlbotics schrieb: Show quoted text
> Hi, > > test 03.enc.t and 04.big.t fail with messages like: > > > # Failed test 'Decryption key or email wrong: > 062F00DAE20F5035==062F00DAE20F5035' > # at /home/perl5/.cpan/build/Mail-GPG-1.0.7- > 3Phcrc/blib/lib/Mail/GPG/Test.pm line 308. > > The test fails because $dec_key_mail is not set. The problem can be > traced down > to GPG/GPG.pm query_keyring() (ca. line 421) where the output of gpg > seems > to differ from what has been expected. > > query_keyring() uses the arguments "--list-keys --with-colons > 6C187D0F196ED9E3" > and gpg returns: > > tru:t:1:1429473192:0:3:1:5 > pub:-:1024:17:062F00DAE20F5035:1076425915:::-:::scaESCA: > uid:-::::1076425915::588869ADE077B8FB05788A99565AEED15AED8231::Jörn > Reder Mail\x3a\x3aGPG Test Key <mailgpg@localdomain>: > sub:-:1024:16:6C187D0F196ED9E3:1076425917::::::e: > > where the /^pub/ line is scanned but it does not contain the email- > address. > That is contained in the following line (/^uid:/. > > Thanks. > > Versions: > - Perl: (v5.18.2) built for x86_64-linux-thread-multi > - Linux site 3.11.10-29-desktop #1 SMP PREEMPT Thu Mar 5 16:24:00 UTC > 2015 (338c513) x86_64 x86_64 x86_64 GNU/Linux > - openSUSE 13.1 (x86_64) > - GnuPG::Interface V0.52 (not patched) > - gpg (GnuPG) 2.0.22, libgcrypt 1.5.4
Subject: Mail_GPG_1.0.7.RT103828.patch.zip

Message body not shown because it is not plain text.

Thanks for your investigation and patch! I applied it (with minor code style fixes) and just uploaded 1.0.8 to CPAN. I will close the corresponding bugs as soon as RT catched up on the new release version number. Regards, Jörn