Bug#1010114: libhtml-tidy-perl: FTBFS with tidy-html5 5.8

Boyuan Yang byang at debian.org
Sun Apr 24 20:03:44 BST 2022


Source: libhtml-tidy-perl
Version: 1.60-4
Severity: important
X-Debbugs-CC: fsfs at debian.org gregoa at debian.org
User: tidy-html5 at packages.debian.org
Usertags: tidy5.8

Dear Debian libhtml-tidy-perl package maintainer,

Your package FTBFS with tidy-html5 5.8.0 currently in experimental. This is
likely due to API and format changes between tidy 5.6.0 and 5.8.0. The
relavant error messages are attached below.

Please consider making the package compatible with new tidy-html5 release for
a smooth tidy library transition in Debian. Thanks!

Regards,
Boyuan Yang

================================
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
        make -j8 test TEST_VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Tidy.bs
blib/arch/auto/HTML/Tidy/Tidy.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness"
"-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib',
'blib/arch')" t/*.t
# Testing HTML::Tidy 1.60, tidyp 5.008000, Perl 5.034000, /usr/bin/perl
t/00-load.t .......... 
1..1
ok 1 - Modules loaded
ok
t/cfg-for-parse.t .... 
1..3
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - Parsed OK
ok 3 - Matching errors
ok
t/clean-crash.t ...... 
1..2
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - Ended OK
ok
t/clean.t ............ 
1..3
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - clean() croaks when not given a string or list of strings
ok 3 - $tidy->clean("") returns empty HTML document
ok
t/extra-quote.t ...... 
1..4
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - Parsed OK
ok 3 - Should have exactly four messages
ok 4 - Matching warnings
ok
t/ignore-text.t ...... 
1..3
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - Parsed OK
ok 3 - Matching warnings
ok
t/ignore.t ........... 
1..9
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - Parsed OK
ok 3 - Matching warnings
ok 4 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 5 - Parsed OK
ok 6 - Matching errors
ok 7 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 8 - eval should fail
ok 9 - Throws an error
ok
t/illegal-options.t .. 
ok 1 - option force-output is not supported
ok 2 - option gnu-emacs-file is not supported
ok 3 - option gnu-emacs is not supported
ok 4 - option keep-time is not supported
ok 5 - option quiet is not supported
ok 6 - option slide-style is not supported
ok 7 - option write-back is not supported
1..7
ok
t/levels.t ........... 
1..3
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - Parsed OK
ok 3 - Matching messages
ok
t/message.t .......... 
1..4
ok 1 - An object of class 'HTML::Tidy::Message' isa 'HTML::Tidy::Message'
# Subtest: _matchup( With line numbers )
    1..6
    ok 1 - as_string matches
    ok 2 - column matches
    ok 3 - file matches
    ok 4 - line matches
    ok 5 - text matches
    ok 6 - type matches
ok 2 - _matchup( With line numbers )
ok 3 - An object of class 'HTML::Tidy::Message' isa 'HTML::Tidy::Message'
# Subtest: _matchup( Without line numbers )
    1..6
    ok 1 - as_string matches
    ok 2 - column matches
    ok 3 - file matches
    ok 4 - line matches
    ok 5 - text matches
    ok 6 - type matches
ok 4 - _matchup( Without line numbers )
ok
t/opt-00.t ........... 
1..1
ok 1 - Cleaned stuff looks like what we expected
ok
HTML::Tidy: Unknown error type: FAKE_ERROR_TYPE at t/parse-errors.t line 18.
t/parse-errors.t ..... 
1..2
ok 1 - encountered 1 parsing error
ok 2 - got 7 messages when parsing errors
ok
t/parse.t ............ 
1..2
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - parse() dies when not given a string or array of strings to parse
ok
t/perfect.t .......... 
1..3
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - Parsed OK
ok 3 - Should have no messages
ok
t/pod-coverage.t ..... 
1..2
ok 1 - Pod coverage on HTML::Tidy
ok 2 - Pod coverage on HTML::Tidy::Message
ok
t/pod.t .............. 
1..3
ok 1 - POD test for blib/lib/HTML/Tidy.pm
ok 2 - POD test for blib/lib/HTML/Tidy/Message.pm
ok 3 - POD test for blib/script/webtidy (no pod)
ok

#   Failed test 'The cleaned stuff shouldn't have any errors'
#   at t/roundtrip.t line 26.
#     Structures begin differing at:
#          $got->[0] =  (5:1) Warning: blank 'title' element
#     $expected->[0] = Does not exist
# Looks like you failed 1 test of 3.
t/roundtrip.t ........ 
1..3
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
not ok 2 - The cleaned stuff shouldn't have any errors
ok 3 - Cleaned up properly
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 
t/segfault-form.t .... 
1..3
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 3 - Cleaned OK
ok
t/simple.t ........... 
1..4
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - Parsed OK
ok 3 - Right number of initial messages
ok 4 - Cleared the messages
ok

#   Failed test 'Matching warnings'
#   at t/too-many-titles.t line 27.
#     Structures begin differing at:
#          $got->[1] = '- (2:5) Warning: too many title elements in <head>'
#     $expected->[1] = '- (2:5) Warning: too many title elements in <title>'
# Looks like you failed 1 test of 3.
t/too-many-titles.t .. 
1..3
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - Parsed OK
not ok 3 - Matching warnings
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/3 subtests 
t/unicode-nbsp.t ..... 
1..3
ok 1 - Tidy Newline
ok 2 - Perl chars OK
ok 3 - Byte string OK
ok
t/unicode.t .......... 
1..9
ok 1 - html is utf8
ok 2 - reference is utf8
ok 3 - cleaned output is also unicode
ok 4 - Cleanup didn't break anything
ok 5 - There still shouldn't be any errors
ok 6 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 7 - Parsed OK
ok 8 - There still shouldn't be any errors
# Subtest: Try send bytes to clean method.
    ok 1 - html is row bytes
    ok 2 - but cleaned output is string
    ok 3 - Cleanup didn't break anything
    1..3
ok 9 - Try send bytes to clean method.
ok
t/venus.t ............ 
1..2
ok 1 - An object of class 'HTML::Tidy' isa 'HTML::Tidy'
ok 2 - Cooked stuff looks like what we expected
ok
t/version.t .......... 
1..4
ok 1 - Valid version string
ok 2 - Version is greater than 0.90, which is the one I maintain
ok 3 - Valid version string
ok 4 - Version is greater than 0.90, which is the one I maintain
ok
t/wordwrap.t ......... 
1..1
ok 1 - Cleaned stuff looks like what we expected
ok

Test Summary Report
-------------------
t/roundtrip.t      (Wstat: 256 Tests: 3 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/too-many-titles.t (Wstat: 256 Tests: 3 Failed: 1)
  Failed test:  3
  Non-zero exit status: 1
Files=25, Tests=84,  2 wallclock secs ( 0.08 usr  0.01 sys +  1.20 cusr  0.18
csys =  1.47 CPU)
Result: FAIL
Failed 2/25 test programs. 2/84 subtests failed.
make[1]: *** [Makefile:1067: test_dynamic] Error 255

===========================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-perl-maintainers/attachments/20220424/9fd8fff6/attachment.sig>


More information about the pkg-perl-maintainers mailing list