PaulHowarth/Blog/2009-05-13

Wednesday 13th May 2009

Fedora Project

Completed the task started back in March of getting perl-Net-SSH-Perl into EPEL for Xavier Bachelot, who needs it for perl-Net-SFTP:

  • Got in touch with StevenPritchard who OK-ed me to fix up and build for EPEL the perl-Crypt-DES_EDE3, perl-Class-ErrorHandler, perl-Convert-PEM, and perl-Convert-ASCII-Armour packages

  • Built my own packages for perl-Crypt-DSA, perl-Crypt-RSA, and perl-Net-SSH-Perl

  • Whilst I was at it, I noticed that the manpage for Crypt::RSA wasn't UTF-8 encoded, so I fixed that in devel too

  • Having done all those, Xavier then asked me to do the same for perl-Net-SFTP itself, which was actually another of Steve's packages, so I did, committing and building it after testing that it was functional from a CentOS4 chroot

Local Packages

  • Updated perl-Test-Output to 0.15 (Fedora 9 onwards)

Built many more packages for the upcoming Fedora 11 repository: bw-whois, grepmail, perl-Algorithm-Diff, perl-Convert-BinHex, perl-Convert-TNEF, perl-Config-Tiny, perl-ConfigReader-Simple, perl-Crypt-GPG, perl-Crypt-SmbHash, perl-Devel-Symdump, perl-Digest-BubbleBabble, perl-Error, perl-Expect, perl-ExtUtils-CBuilder, perl-File-Find-Rule, perl-File-Remove, perl-FileHandle-Unget, perl-HTML-SimpleLinkExtor, perl-HTTP-SimpleLinkChecker, perl-HTTP-Size, perl-IO-Multiplex, perl-IO-stringy, perl-IPC-Run3, perl-Jcode, perl-LMAP-CID2SPF, perl-Mail-Mbox-MessageParser, perl-Mail-Sender, perl-Mail-Sendmail, perl-Mail-SPF, perl-Mail-SPF-Query, perl-Mail-SPF-Test, perl-Mail-SRS

I also did a full rebuild for all releases of perl-File-Remove, with a buildreq of perl(Test::CPAN::Meta) added, as that wasn't available when I originally built the package.

The build of perl-HTML-SimpleLinkExtor proved to be particularly tricky as the test suite mysteriously failed, and even a Fedora 10 build (which had worked when I created the Fedora 10 repo) failed the same way.

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
#   Failed test 'Found the right number of links'
#   at t/absolute_links.t line 28.
#          got: '2'
#     expected: '11'
# Looks like you failed 1 test of 8.
t/absolute_links.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests
t/autoload.t ........ ok
t/compile.t ......... ok
#   Failed test 'Found the right number of links'
#   at t/parse.t line 46.
#          got: '7'
#     expected: '25'
Modification of non-creatable array value attempted, subscript -1 at t/parse.t line 51.
# Looks like you planned 26 tests but ran 4.
# Looks like you failed 1 test of 4 run.
# Looks like your test exited with 255 just after 4.
t/parse.t ...........
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 23/26 subtests
t/pod.t ............. ok
t/pod_coverage.t .... ok
#   Failed test 'Found the right number of links'
#   at t/relative_links.t line 28.
#          got: '4'
#     expected: '15'
# Looks like you failed 1 test of 8.
t/relative_links.t ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/8 subtests
#   Failed test 'Got the right number of HTTP links'
#   at t/schemes.t line 28.
#          got: '2'
#     expected: '7'
#   Failed test 'Got the right number of HTTPS links'
#   at t/schemes.t line 37.
#          got: '0'
#     expected: '2'
#   Failed test 'Got the right number of HTTPS links'
#   at t/schemes.t line 46.
#          got: '2'
#     expected: '9'
#   Failed test 'Got the right number of FTP links'
#   at t/schemes.t line 55.
#          got: '0'
#     expected: '1'
#   Failed test 'Got the right number of MAILTO links'
#   at t/schemes.t line 64.
#          got: '0'
#     expected: '1'
#   Failed test 'Got the right number of HTTP links'
#   at t/schemes.t line 87.
#          got: '6'
#     expected: '22'
#   Failed test 'Got the right number of HTTPS links'
#   at t/schemes.t line 96.
#          got: '6'
#     expected: '24'
#   Failed test 'Got the right number of HTTP links'
#   at t/schemes.t line 119.
#          got: '4'
#     expected: '16'
# Looks like you failed 8 tests of 28.
t/schemes.t .........
Dubious, test returned 8 (wstat 2048, 0x800)
Failed 8/28 subtests
t/tags.t ............ ok
Test Summary Report
-------------------
t/absolute_links.t (Wstat: 256 Tests: 8 Failed: 1)
  Failed test:  8
  Non-zero exit status: 1
t/parse.t         (Wstat: 65280 Tests: 4 Failed: 1)
  Failed test:  4
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 26 tests but ran 4.
t/relative_links.t (Wstat: 256 Tests: 8 Failed: 1)
  Failed test:  8
  Non-zero exit status: 1
t/schemes.t       (Wstat: 2048 Tests: 28 Failed: 8)
  Failed tests:  7, 9, 11, 13, 15, 20, 22, 27
  Non-zero exit status: 8
Files=9, Tests=76,  2 wallclock secs ( 0.10 usr  0.04 sys +  0.90 cusr  0.20 csys =  1.24 CPU)
Result: FAIL
Failed 4/9 test programs. 11/76 subtests failed.

Looking on CPAN revealed many more testers with the same issue but no bug report. I managed to track this problem down to a change made in HTML::Parser after version 3.56 that made most of the links in the example files (after an <IFRAME> tag) invisible to HTML::LinkExtor (which HTML::SimpleLinkExtor uses). I raised CPAN Bug #46052 about this.


Recent