Bug 1189666

Summary: perl-Mail-GnuPG-0.21-2.fc22 FTBFS: tests fail with gnupg2-2.1.1
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-Mail-GnuPGAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: lxtnow, perl-devel, rc040203
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://koji.fedoraproject.org/koji/taskinfo?taskID=8831347
Whiteboard:
Fixed In Version: perl-Mail-GnuPG-0.21-3.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-26 03:45:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fix proposod to upstream none

Description Petr Pisar 2015-02-05 14:24:51 UTC
perl-Mail-GnuPG-0.21-2.fc22 fails to build in F22 because tests fail:

t/99.pod.t ............... ok
gpg-agent[28489]: directory '/builddir/.gnupg' created
gpg-agent[28489]: directory '/builddir/.gnupg/private-keys-v1.d' created
gpg-agent[28490]: gpg-agent (GnuPG) 2.1.1 started
#   Failed test at t/agent.t line 78.
#          got: '2'
#     expected: '0'
#   Failed test at t/agent.t line 81.
#          got: '2'
#     expected: '0'
#   Failed test at t/agent.t line 82.
#          got: undef
#     expected: 'EFEA4EAD'
#   Failed test at t/agent.t line 83.
#          got: undef
#     expected: 'Mail::GnuPG Test Key <mail>'
#   Failed test at t/agent.t line 92.
#          got: '2'
#     expected: '0'
Unknown Content-Type or no PGP message in body at /builddir/build/BUILD/Mail-GnuPG-0.21/blib/lib/Mail/GnuPG.pm line 402.
# Looks like you planned 20 tests but ran 8.
# Looks like you failed 5 tests of 8 run.
# Looks like your test exited with 2 just after 8.
/var/tmp/rpm-tmp.SmEZsV: line 31: 28438 Terminated              GPG_PRESET_PASSPHRASE=/usr/libexec/gpg-preset-passphrase ./Build test
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.SmEZsV (%check)
    Bad exit status from /var/tmp/rpm-tmp.SmEZsV (%check)
Child return code was: 1
EXCEPTION: Command failed. See logs for output.

Differnce between working and failing build root is:

Removed packages:
        gnupg2-2.0.25-2.fc22
        nspr-4.10.7-1.fc22
        pth-2.0.7-25.fc22
Added packages:
        gnupg2-2.1.1-2.fc22
        libasan-4.9.2-5.fc22
        libatomic-4.9.2-5.fc22
        libksba-1.3.2-1.fc22
        libubsan-4.9.2-5.fc22
        npth-1.1-1.fc22
        nspr-4.10.8-1.fc22

Comment 1 Jaroslav Reznik 2015-03-03 16:50:06 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 2 Petr Pisar 2015-05-13 14:32:15 UTC
This is a change in gpg-agent-2.1 which does not export GPG_AGENT_INFO anymore, thus gpg-1 cannot locate it. See bug #1221234.

Comment 3 Petr Pisar 2015-05-13 16:09:25 UTC
Created attachment 1025114 [details]
Fix proposod to upstream

If you don't object I'd like to push it into Fedora. It changes only tests.

Comment 4 Petr Pisar 2015-05-18 14:31:22 UTC
GnuPG author said, it's caller's responsibility to set the environment variable. Therefore the fix has to be done in perl-Mail-GnuPG.

Comment 5 Fedora Update System 2015-05-18 14:42:57 UTC
perl-Mail-GnuPG-0.21-3.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/perl-Mail-GnuPG-0.21-3.fc22

Comment 6 Fedora Update System 2015-05-18 19:03:45 UTC
Package perl-Mail-GnuPG-0.21-3.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing perl-Mail-GnuPG-0.21-3.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-8455/perl-Mail-GnuPG-0.21-3.fc22
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2015-05-26 03:45:51 UTC
perl-Mail-GnuPG-0.21-3.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.