Red Hat Bugzilla – Bug 1264751
perl-Net-DNS-1.01-2.fc24 FTBFS in mock: sign_sig0: unexpected Net::DNS::RR argument at t/04-packet.t line 198.
Last modified: 2015-09-21 07:56:49 EDT
perl-Net-DNS-1.01-3.fc24 fails to build in F24 mock environment for me when bootstrapping perl packages with this test failure:
t/03-rr.t ..................... ok
sign_sig0: unexpected Net::DNS::RR argument at t/04-packet.t line 198.
SIG0: unable to sign packet at t/04-packet.t line 198.
# Looks like you planned 101 tests but ran 96.
# Looks like your test exited with 2 just after 96.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 5/101 subtests
t/05-A.t ...................... ok
It passes in koji (that has no Internet access), but I suspect there is some bug. I cannot reproduce it elsewhere.
I'm able to reproduce it when using packages from the bootstrap. Difference between working and failing build root is:
I'm pretty sure I tested the bootstrapping properly when I introduced it. I will recheck it.
The difference in build root is caused by wrong dependency list on perl.spec's perl-Pod-Perldoc subpackage. I will correct it in perl.spec.
Yet I need to figure out why the test fails without perl-HTTP-Tiny and perl-Time-Local.
It fails because the t/04-packet.t exhibits lib/Net/DNS/RR/SIG.pm that uses Time::Local. The real failure cause is hidden by eval used to load the Net::DNS::RR::SIG.
I will add the Time::Local to build-time dependencies.