Bug 1083915

Summary: perl-CPAN-Checksums-2.08-8.fc21 FTBFS in non-koji mock
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perl-CPAN-ChecksumsAssignee: Petr Pisar <ppisar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jplesnik, perl-devel, ppisar
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: perl-CPAN-Checksums-2.09-3.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-08 13:38:45 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:

Description Petr Pisar 2014-04-03 08:58:03 UTC
Non-koji mock allows DNS resolution, but forbids network connections. This causes a test to fail:

+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e"
 "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.
t
gpg: new configuration file `/builddir/.gnupg/gpg.conf' created
gpg: WARNING: options in `/builddir/.gnupg/gpg.conf' are not yet active during t
his run
gpgkeys: HTTP fetch error 7: Failed to connect to pool.sks-keyservers.net port 1
1371: Network is unreachable
gpg: Signature made Tue Aug 30 08:30:20 2011 CEST using DSA key ID A317C15D
gpg: requesting key A317C15D from hkp server pool.sks-keyservers.net
gpg: no valid OpenPGP data found.
gpg: Can't check signature: public key not found
==> BAD/TAMPERED signature detected! <==
t/00signature.t .. 
Failed 1/1 subtests 

This is causes by insufficient skip-test condition in t/00signature.t.

Reported to upstream <https://rt.cpan.org/Public/Bug/Display.html?id=94397> with proposed fix.

Comment 1 Petr Pisar 2014-07-08 13:19:00 UTC
Unfortunately there is still still race between the TCP check and calling the gpg:

+ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
gpg: new configuration file `/builddir/.gnupg/gpg.conf' created
gpg: WARNING: options in `/builddir/.gnupg/gpg.conf' are not yet active during this run
gpgkeys: HTTP fetch error 7: Failed to connect to pool.sks-keyservers.net port 11371: Network is unreachable
gpg: Signature made Fri Apr  4 06:03:24 2014 CEST using DSA key ID A317C15D
gpg: requesting key A317C15D from hkp server pool.sks-keyservers.net
gpg: no valid OpenPGP data found.
gpg: Can't check signature: public key not found
==> BAD/TAMPERED signature detected! <==
t/00signature.t .. 
Failed 1/1 subtests 
t/52podcover.t ... ok
t/pod.t .......... ok
t/updatedir.t .... ok
Test Summary Report
-------------------
t/00signature.t (Wstat: 0 Tests: 1 Failed: 1)
  Failed test:  1

Comment 2 Petr Pisar 2014-07-08 13:38:45 UTC
I bundled the upstream key not rely on any network.