[DRE-maint] Bug#996381: ruby-sanitize: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: ArgumentError: wrong number of arguments (given 4, expected 1..3)

Antonio Terceiro terceiro at debian.org
Wed Oct 13 15:27:38 BST 2021


Source: ruby-sanitize
Version: 5.2.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-sanitize was found to fail to build in that situation.

To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
> ArgumentError: wrong number of arguments (given 4, expected 1..3)
>     /usr/lib/ruby/vendor_ruby/nokogumbo/html5/document.rb:4:in `parse'
>     /usr/lib/ruby/vendor_ruby/nokogumbo/html5.rb:22:in `parse'
>     /<<PKGBUILDDIR>>/debian/ruby-sanitize/usr/lib/ruby/vendor_ruby/sanitize.rb:126:in `document'
>     /<<PKGBUILDDIR>>/debian/ruby-sanitize/usr/lib/ruby/vendor_ruby/sanitize.rb:61:in `document'
>     /<<PKGBUILDDIR>>/test/test_clean_element.rb:522:in `block (3 levels) in <top (required)>'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:98:in `block (3 levels) in run'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:195:in `capture_exceptions'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:95:in `block (2 levels) in run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:270:in `time_it'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:94:in `block in run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:365:in `on_signal'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:211:in `with_info_handler'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:93:in `run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:1029:in `run_one_method'
>     /usr/lib/ruby/vendor_ruby/minitest/parallel.rb:33:in `block (2 levels) in start'
> 
> 227 runs, 1483 assertions, 0 failures, 17 errors, 8 skips
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/test_clean_comment.rb" "test/test_clean_css.rb" "test/test_clean_doctype.rb" "test/test_clean_element.rb" "test/test_config.rb" "test/test_malicious_css.rb" "test/test_malicious_html.rb" "test/test_parser.rb" "test/test_sanitize.rb" "test/test_sanitize_css.rb" "test/test_transformers.rb" -v]
> 
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-sanitize/ruby-sanitize_5.2.1-2+rebuild1633394782_amd64.build.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211013/07d5e2dd/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list