Source: ruby-awesome-print
Version: 1.8.0-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-r...@lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-awesome-print 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:
>         tried to create Proc object without a block
>       # ./lib/awesome_print/formatters/base_formatter.rb:113:in `new'
>       # ./lib/awesome_print/formatters/base_formatter.rb:113:in `indented'
>       # ./lib/awesome_print/formatters/object_formatter.rb:44:in `block in 
> format'
>       # ./lib/awesome_print/formatters/object_formatter.rb:31:in `map'
>       # ./lib/awesome_print/formatters/object_formatter.rb:31:in `format'
>       # ./lib/awesome_print/formatter.rb:83:in `awesome_object'
>       # ./lib/awesome_print/formatter.rb:46:in `awesome_self'
>       # ./lib/awesome_print/formatter.rb:28:in `format'
>       # ./lib/awesome_print/inspector.rb:116:in `unnested'
>       # ./lib/awesome_print/inspector.rb:75:in `awesome'
>       # ./lib/awesome_print/core_ext/kernel.rb:10:in `ai'
>       # ./spec/objects_spec.rb:156:in `block (3 levels) in <top (required)>'
> 
> Finished in 0.21808 seconds (files took 0.74765 seconds to load)
> 202 examples, 60 failures, 55 pending
> 
> Failed examples:
> 
> rspec ./spec/ext/ostruct_spec.rb:13 # AwesomePrint Ostruct extension plain 
> multiline
> rspec ./spec/formats_spec.rb:16 # AwesomePrint Array plain multiline
> rspec ./spec/formats_spec.rb:33 # AwesomePrint Array plain multiline without 
> index
> rspec ./spec/formats_spec.rb:50 # AwesomePrint Array plain multiline indented
> rspec ./spec/formats_spec.rb:67 # AwesomePrint Array plain multiline indented 
> without index
> rspec ./spec/formats_spec.rb:88 # AwesomePrint Array colored multiline 
> (default)
> rspec ./spec/formats_spec.rb:105 # AwesomePrint Array colored multiline 
> indented
> rspec ./spec/formats_spec.rb:134 # AwesomePrint Nested Array plain multiline
> rspec ./spec/formats_spec.rb:144 # AwesomePrint Nested Array plain multiline 
> without index
> rspec ./spec/formats_spec.rb:165 # AwesomePrint Limited Output Array plain 
> limited output large
> rspec ./spec/formats_spec.rb:179 # AwesomePrint Limited Output Array plain 
> limited output small
> rspec ./spec/formats_spec.rb:191 # AwesomePrint Limited Output Array plain 
> limited output with 10 lines
> rspec ./spec/formats_spec.rb:208 # AwesomePrint Limited Output Array plain 
> limited output with 11 lines
> rspec ./spec/formats_spec.rb:233 # AwesomePrint Limited Output Hash plain 
> limited output
> rspec ./spec/formats_spec.rb:258 # AwesomePrint Hash plain multiline
> rspec ./spec/formats_spec.rb:274 # AwesomePrint Hash new hash syntax
> rspec ./spec/formats_spec.rb:290 # AwesomePrint Hash plain multiline indented
> rspec ./spec/formats_spec.rb:306 # AwesomePrint Hash plain single line
> rspec ./spec/formats_spec.rb:310 # AwesomePrint Hash colored multiline 
> (default)
> rspec ./spec/formats_spec.rb:326 # AwesomePrint Hash colored with new hash 
> syntax
> rspec ./spec/formats_spec.rb:342 # AwesomePrint Hash colored multiline 
> indented
> rspec ./spec/formats_spec.rb:358 # AwesomePrint Hash colored single line
> rspec ./spec/formats_spec.rb:371 # AwesomePrint Nested Hash plain multiline
> rspec ./spec/formats_spec.rb:379 # AwesomePrint Nested Hash plain single line
> rspec ./spec/formats_spec.rb:390 # AwesomePrint Hash with several keys plain 
> multiline
> rspec ./spec/formats_spec.rb:410 # AwesomePrint Hash with several keys plain 
> multiline with sorted keys
> rspec ./spec/formats_spec.rb:429 # AwesomePrint Negative options[:indent] 
> hash keys must be left aligned
> rspec ./spec/formats_spec.rb:441 # AwesomePrint Negative options[:indent] 
> nested hash keys should be indented (array of hashes)
> rspec ./spec/formats_spec.rb:460 # AwesomePrint Negative options[:indent] 
> nested hash keys should be indented (hash of hashes)
> rspec ./spec/formats_spec.rb:555 # AwesomePrint Set plain multiline
> rspec ./spec/formats_spec.rb:559 # AwesomePrint Set plain multiline indented
> rspec ./spec/formats_spec.rb:567 # AwesomePrint Set colored multiline 
> (default)
> rspec ./spec/formats_spec.rb:605 # AwesomePrint Struct plain multiline
> rspec ./spec/formats_spec.rb:617 # AwesomePrint Struct plain multiline 
> indented
> rspec ./spec/formats_spec.rb:629 # AwesomePrint Struct plain single line
> rspec ./spec/formats_spec.rb:635 # AwesomePrint Struct colored multiline 
> (default)
> rspec ./spec/formats_spec.rb:654 # AwesomePrint Inherited from standard Ruby 
> classes inherited from Array should be displayed as Array
> rspec ./spec/formats_spec.rb:674 # AwesomePrint Inherited from standard Ruby 
> classes inherited from Hash should be displayed as Hash
> rspec ./spec/formats_spec.rb:708 # AwesomePrint Inherited from standard Ruby 
> classes should handle a class that defines its own #send method
> rspec ./spec/formats_spec.rb:717 # AwesomePrint Inherited from standard Ruby 
> classes should handle a class defines its own #method method (ex. 
> request.method)
> rspec ./spec/methods_spec.rb:93 # Object methods object.methods index: should 
> handle object.methods
> rspec ./spec/methods_spec.rb:98 # Object methods object.methods no index: 
> should handle object.methods
> rspec ./spec/methods_spec.rb:105 # Object methods object.public_methods 
> index: should handle object.public_methods
> rspec ./spec/methods_spec.rb:110 # Object methods object.public_methods no 
> index: should handle object.public_methods
> rspec ./spec/methods_spec.rb:117 # Object methods object.private_methods 
> index: should handle object.private_methods
> rspec ./spec/methods_spec.rb:122 # Object methods object.private_methods no 
> index: should handle object.private_methods
> rspec ./spec/methods_spec.rb:446 # Methods arrays appending garbage to 
> methods array should not raise error
> rspec ./spec/misc_spec.rb:52 # AwesomePrint Misc format ENV as hash
> rspec ./spec/misc_spec.rb:89 # AwesomePrint HTML output wraps multiline ap 
> output with <pre> tag with colorized <kbd>
> rspec ./spec/misc_spec.rb:100 # AwesomePrint HTML output wraps hash ap output 
> with only an outer <pre> tag
> rspec ./spec/misc_spec.rb:129 # AwesomePrint AwesomePrint.defaults should 
> properly merge the defaults
> rspec ./spec/misc_spec.rb:222 # AwesomePrint Console should return the actual 
> object when *not* running under console
> rspec ./spec/misc_spec.rb:227 # AwesomePrint Console should return nil when 
> running under console
> rspec ./spec/misc_spec.rb:234 # AwesomePrint Console handles NoMethodError on 
> IRB implicit #ai
> rspec ./spec/objects_spec.rb:9 # Objects Formatting an object attributes
> rspec ./spec/objects_spec.rb:35 # Objects Formatting an object instance 
> variables
> rspec ./spec/objects_spec.rb:57 # Objects Formatting an object attributes and 
> instance variables
> rspec ./spec/objects_spec.rb:89 # Objects Formatting an object without the 
> plain options print the colorized values
> rspec ./spec/objects_spec.rb:114 # Objects Formatting an object with multine 
> as false show inline values
> rspec ./spec/objects_spec.rb:135 # Objects Formatting an object without the 
> sort_vars option does not sort instance variables
> 
> /usr/bin/ruby3.0 
> -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib
>  /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec 
> --pattern ./spec/\*\*/\*_spec.rb failed
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-awesome-print/ruby-awesome-print_1.8.0-2+rebuild1633375442_amd64.build.txt

Attachment: signature.asc
Description: PGP signature

Reply via email to