Source: ruby-crack
Version: 0.4.4-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-r...@lists.debian.org
Usertags: ruby3.1

Hi,

We are about to start the ruby3.1 transition in unstable. While trying to
rebuild ruby-crack with ruby3.1 enabled, the build failed.

Relevant part of the build log (hopefully):
> /usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby3.1                          
>  │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-crack/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0
>  ruby3.1 -e gem\ \"crack\"
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.1 from debian/ruby-tests.rake                           
>  │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=/<<PKGBUILDDIR>>/debian/ruby-crack/usr/lib/ruby/vendor_ruby:. 
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-crack/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0
>  ruby3.1 -S rake -f debian/ruby-tests.rake
> /usr/bin/ruby3.1 -w -I"lib:test" 
> /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb 
> "test/hash_test.rb" "test/json_test.rb" "test/parser_test.rb" 
> "test/string_test.rb" "test/xml_test.rb" 
> /<<PKGBUILDDIR>>/test/hash_test.rb:10: warning: ambiguity between regexp and 
> two divisions: wrap regexp in parentheses or add a space after `/' operator
> /<<PKGBUILDDIR>>/test/hash_test.rb:11: warning: ambiguity between regexp and 
> two divisions: wrap regexp in parentheses or add a space after `/' operator
> /<<PKGBUILDDIR>>/test/hash_test.rb:12: warning: ambiguity between regexp and 
> two divisions: wrap regexp in parentheses or add a space after `/' operator
> /<<PKGBUILDDIR>>/test/hash_test.rb:22: warning: ambiguity between regexp and 
> two divisions: wrap regexp in parentheses or add a space after `/' operator
> /<<PKGBUILDDIR>>/test/hash_test.rb:23: warning: ambiguity between regexp and 
> two divisions: wrap regexp in parentheses or add a space after `/' operator
> /<<PKGBUILDDIR>>/test/hash_test.rb:24: warning: ambiguity between regexp and 
> two divisions: wrap regexp in parentheses or add a space after `/' operator
> Run options: --seed 8278
> 
> # Running:
> 
> EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE.EEEDEPRECATED: global use of must_equal 
> from /<<PKGBUILDDIR>>/test/xml_test.rb:131. Use _(obj).must_equal instead. 
> This will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:429. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:430. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_include from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:167. Use _(obj).must_include instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:178. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:34. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:48. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:366. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:402. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:490. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:17. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:331. This will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:512. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:120. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:149. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:149. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:149. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:149. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:149. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:481. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:23. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:115. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:241. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:471. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_include from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:172. Use _(obj).must_include instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_include from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:173. Use _(obj).must_include instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:355. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:355. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:355. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:355. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:355. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:355. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:355. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:355. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:125. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:183. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:188. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: Use assert_nil if expecting nil from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. This will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:280. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:193. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_include from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:162. Use _(obj).must_include instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_include from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:413. Use _(obj).must_include instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_include from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:414. Use _(obj).must_include instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:417. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:418. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:454. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:136. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:156. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:156. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:156. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:156. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:156. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:389. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:6. Use _(obj).must_equal instead. This will 
> fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:58. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:69. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:218. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> ..DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:485. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:377. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:95. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:99. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:103. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:104. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:84. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:108. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/xml_test.rb:109. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/hash_test.rb:10. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/hash_test.rb:11. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/hash_test.rb:12. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/hash_test.rb:22. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/hash_test.rb:23. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_match from 
> /<<PKGBUILDDIR>>/test/hash_test.rb:24. Use _(obj).must_match instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/parser_test.rb:20. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/parser_test.rb:5. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/string_test.rb:10. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/string_test.rb:28. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/string_test.rb:14. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/string_test.rb:24. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/string_test.rb:6. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/string_test.rb:18. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/string_test.rb:19. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> DEPRECATED: global use of must_equal from 
> /<<PKGBUILDDIR>>/test/string_test.rb:20. Use _(obj).must_equal instead. This 
> will fail in Minitest 6.
> .
> 
> Finished in 0.374658s, 245.5574 runs/s, 336.3068 assertions/s.
> 
>   1) Error:
> JSON Parsing#test_0008_decode json ({"returnTo":[1,"\"a\",", "b"]}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>   2) Error:
> JSON Parsing#test_0014_decode json ({"a": "2007-01-01 01:12:34 Z"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>   3) Error:
> JSON Parsing#test_0018_decode json ({"regex": /foo.*/}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>   4) Error:
> JSON Parsing#test_0020_decode json ({"regex": /foo.*/mix}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>   5) Error:
> JSON Parsing#test_0031_decode json ({"foo":"bar\u0000baz"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>   6) Error:
> JSON Parsing#test_0033_decode json (bar\u0000baz):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>   7) Error:
> JSON Parsing#test_0036_is not vulnerable to YAML deserialization exploits:
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:56:in `block (2 levels) in <top 
> (required)>'
> 
>   8) Error:
> JSON Parsing#test_0039_be able to parse a JSON response from a Twitter search 
> about 'internet explorer':
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:80:in `block (2 levels) in <top 
> (required)>'
> 
>   9) Error:
> JSON Parsing#test_0006_decode json ({"returnTo":{"\/categories":1}}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  10) Error:
> JSON Parsing#test_0004_decode json ({returnTo:{"\/categories":"\/"}}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  11) Error:
> JSON Parsing#test_0016_decode json ({"a": "2007-01-01 01:12:34"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  12) Error:
> JSON Parsing#test_0007_decode json ({"returnTo":[1,"a"]}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  13) Error:
> JSON Parsing#test_0010_decode json ({"a": "a's, b's and c's", "b": "5,000"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  14) Error:
> JSON Parsing#test_0015_decode json ({"a": "2007-01-01T01:12:34Z"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  15) Error:
> JSON Parsing#test_0012_decode json ({"first_date": "2016-01-25", 
> "second_date": "2014-01-26"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  16) Error:
> JSON Parsing#test_0002_decode json ({"html": "\u003Cdiv\u003E"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  17) Error:
> JSON Parsing#test_0028_decode json (false):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  18) Error:
> JSON Parsing#test_0035_decode json ({"foo":"bar\x00baz"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  19) Error:
> JSON Parsing#test_0005_decode json ({"return\"To\":":{"\/categories":"\/"}}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  20) Error:
> JSON Parsing#test_0011_decode json ({"a": "2007-01-01"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  21) Error:
> JSON Parsing#test_0026_decode json (null):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  22) Error:
> JSON Parsing#test_0032_decode json (bar\u0000):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  23) Error:
> JSON Parsing#test_0001_decode json ({"data": "G\u00fcnter"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  24) Error:
> JSON Parsing#test_0029_decode json ("http:\/\/test.host\/posts\/1"):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  25) Error:
> JSON Parsing#test_0034_decode json ({"foo":"bar\x00"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  26) Error:
> JSON Parsing#test_0027_decode json (true):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  27) Error:
> JSON Parsing#test_0009_decode json ({"a": "'", "b": "5,000"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  28) Error:
> JSON Parsing#test_0030_decode json ({"foo":"bar\u0000"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  29) Error:
> JSON Parsing#test_0040_does not raise SystemStackError when parsing large 
> JSON files:
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:89:in `block (2 levels) in <top 
> (required)>'
> 
>  30) Error:
> JSON Parsing#test_0003_decode json ({"returnTo":{"\/categories":"\/"}}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  31) Error:
> JSON Parsing#test_0017_decode json ({"bio": "1985-01-29: birthdate"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  32) Error:
> JSON Parsing#test_0024_decode json (""):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  33) Error:
> JSON Parsing#test_0038_be able to parse a JSON response from a Twitter search 
> about 'firefox':
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:71:in `block (2 levels) in <top 
> (required)>'
> 
>  34) Error:
> JSON Parsing#test_0019_decode json ({"regex": /foo.*/i}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  35) Error:
> JSON Parsing#test_0022_decode json ({}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  36) Error:
> JSON Parsing#test_0023_decode json (1):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  37) Error:
> JSON Parsing#test_0013_decode json ({"first_date": "2016-01-25", "non_date": 
> "Abc", "second_date": "2014-01-26"}):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  38) Error:
> JSON Parsing#test_0025_decode json ("\""):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
>  39) Error:
> JSON Parsing#test_0021_decode json ([]):
> Crack::ParseError: Invalid JSON string
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:18:in `rescue in parse'
>     /<<PKGBUILDDIR>>/lib/crack/json.rb:14:in `parse'
>     /<<PKGBUILDDIR>>/test/json_test.rb:50:in `block (3 levels) in <top 
> (required)>'
> 
> 92 runs, 126 assertions, 0 failures, 39 errors, 0 skips
> rake aborted!
> Command failed with status (1): [ruby -w -I"lib:test" 
> /usr/lib/ruby/gems/3.1.0/gems/rake-13.0.6/lib/rake/rake_test_loader.rb 
> "test/hash_test.rb" "test/json_test.rb" "test/parser_test.rb" 
> "test/string_test.rb" "test/xml_test.rb" ]
> 
> Tasks: TOP => default => test
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.1" failed.


The full build log is available from:
https://people.debian.org/~terceiro/ruby3.1/17/ruby-crack/ruby-crack_0.4.4-2+rebuild1663007460_amd64-2022-09-12T18:31:01Z.build

To reproduce this, you need ruby-all-dev >= 1:3.0+2.  Depending on when you
read this, this might mean installing ruby-all-dev from experimental, or ir the
transition has alraedy started in unstable, a normal build on unstable should
do it.  If you fail to reproduce, please provide a build log and diff it with
mine so that we can identify if something relevant changed in the meantime.

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

Attachment: signature.asc
Description: PGP signature

Reply via email to