[DRE-maint] Bug#888119: ruby-awesome-print: FTBFS on ruby2.5: test failure: colorization default

Chris West (Faux) debian at fau.xxx
Tue Jan 23 15:04:12 UTC 2018


Source: ruby-awesome-print
Version: 1.6.1-2
Severity: important
User: debian-ruby at lists.debian.org
Usertags: ruby2.5

Dear Maintainer,

This package fails to build against ruby2.5. Soon, there will
be a transition to ruby2.5, and this package will FTBFS in sid.

There may be some details on the wiki about common problems:
https://wiki.debian.org/Teams/Ruby/Ruby25Transition

Build log excerpt:

...

Finished in 0.16369 seconds (files took 0.1327 seconds to load)
135 examples, 0 failures

/usr/bin/ruby2.5 /usr/bin/gem2deb-test-runner

┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.5 from debian/ruby-tests.rake                            │
└──────────────────────────────────────────────────────────────────────────────┘

RUBYLIB=/build/ruby-awesome-print-1.6.1/debian/ruby-awesome-print/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-awesome-print/usr/share/rubygems-integration/all:/root/.gem/ruby/2.5.0:/var/lib/gems/2.5.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.5.0:/usr/share/rubygems-integration/2.5.0:/usr/share/rubygems-integration/all ruby2.5 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.5 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb
FF..FFFF./build/ruby-awesome-print-1.6.1/lib/awesome_print/formatter.rb:378: warning: constant ::Fixnum is deprecated
.....FFF.................................../build/ruby-awesome-print-1.6.1/lib/awesome_print/formatter.rb:378: warning: constant ::Fixnum is deprecated
./build/ruby-awesome-print-1.6.1/lib/awesome_print/formatter.rb:378: warning: constant ::Fixnum is deprecated
.../build/ruby-awesome-print-1.6.1/lib/awesome_print/formatter.rb:378: warning: constant ::Fixnum is deprecated
./build/ruby-awesome-print-1.6.1/lib/awesome_print/formatter.rb:378: warning: constant ::Fixnum is deprecated
.....FF................................................/build/ruby-awesome-print-1.6.1/lib/awesome_print/formatter.rb:378: warning: constant ::Fixnum is deprecated
...../build/ruby-awesome-print-1.6.1/lib/awesome_print/formatter.rb:378: warning: constant ::Fixnum is deprecated
F............/build/ruby-awesome-print-1.6.1/lib/awesome_print/formatter.rb:378: warning: constant ::Fixnum is deprecated
./build/ruby-awesome-print-1.6.1/lib/awesome_print/formatter.rb:378: warning: constant ::Fixnum is deprecated
....

Failures:

  1) AwesomePrint colorization default settings (no forced colors) colorizes tty processes by default
     Failure/Error: expect(@arr.ai(:multiline => false)).to eq(COLORIZED)

       expected: "[ \e[1;34m1\e[0m, \e[0;36m:two\e[0m, \e[0;33m\"three\"\e[0m, [ \e[1;31mnil\e[0m, [ \e[1;32mtrue\e[0m, \e[1;31mfalse\e[0m ] ] ]"
            got: "[ 1, \e[0;36m:two\e[0m, \e[0;33m\"three\"\e[0m, [ \e[1;31mnil\e[0m, [ \e[1;32mtrue\e[0m, \e[1;31mfalse\e[0m ] ] ]"

       (compared using ==)
     # ./spec/colors_spec.rb:33:in `block (4 levels) in <top (required)>'

  2) AwesomePrint colorization default settings (no forced colors) colorizes processes with ENV['ANSICON'] by default
     Failure/Error: expect(@arr.ai(:multiline => false)).to eq(COLORIZED)

       expected: "[ \e[1;34m1\e[0m, \e[0;36m:two\e[0m, \e[0;33m\"three\"\e[0m, [ \e[1;31mnil\e[0m, [ \e[1;32mtrue\e[0m, \e[1;31mfalse\e[0m ] ] ]"
            got: "[ 1, \e[0;36m:two\e[0m, \e[0;33m\"three\"\e[0m, [ \e[1;31mnil\e[0m, [ \e[1;32mtrue\e[0m, \e[1;31mfalse\e[0m ] ] ]"

       (compared using ==)
     # ./spec/colors_spec.rb:40:in `block (4 levels) in <top (required)>'

  3) AwesomePrint colorization forced colors override still colorizes tty processes
     Failure/Error: expect(@arr.ai(:multiline => false)).to eq(COLORIZED)

...

Finished in 0.15707 seconds (files took 0.10502 seconds to load)
135 examples, 12 failures

Failed examples:

rspec ./spec/colors_spec.rb:31 # AwesomePrint colorization default settings (no forced colors) colorizes tty processes by default
rspec ./spec/colors_spec.rb:36 # AwesomePrint colorization default settings (no forced colors) colorizes processes with ENV['ANSICON'] by default
rspec ./spec/colors_spec.rb:71 # AwesomePrint colorization forced colors override still colorizes tty processes
rspec ./spec/colors_spec.rb:76 # AwesomePrint colorization forced colors override colorizes processes with ENV['ANSICON'] set to 0
rspec ./spec/colors_spec.rb:86 # AwesomePrint colorization forced colors override colorizes dumb terminals
rspec ./spec/colors_spec.rb:96 # AwesomePrint colorization forced colors override colorizes subprocess
rspec ./spec/formats_spec.rb:92 # AwesomePrint Array colored multiline (default)
rspec ./spec/formats_spec.rb:109 # AwesomePrint Array colored multiline indented
rspec ./spec/formats_spec.rb:126 # AwesomePrint Array colored single line
rspec ./spec/methods_spec.rb:12 # Single method plain: should handle a method with no arguments
rspec ./spec/methods_spec.rb:17 # Single method color: should handle a method with no arguments
rspec ./spec/misc_spec.rb:97 # AwesomePrint HTML output wraps multiline ap output with <pre> tag with colorized <kbd>

/usr/bin/ruby2.5 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb failed
ERROR: Test "ruby2.5" failed. Exiting.


Full build log:
https://rbuild.fau.xxx/2018-01-23/ruby-awesome-print.log

Please fix it!

Cheers,
Chris.



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