[DRE-maint] Bug#888151: ruby-logging: FTBFS on ruby2.5: warning: constant ::Fixnum is deprecated

Chris West (Faux) debian at fau.xxx
Tue Jan 23 17:11:08 UTC 2018


Source: ruby-logging
Version: 2.0.0-1
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:


/usr/lib/ruby/vendor_ruby/test/unit/autorunner.rb:62:in `run'
/usr/lib/ruby/vendor_ruby/test/unit.rb:502:in `block (2 levels) in <top (required)>'
F
===============================================================================
Failure:
  </INFO  TestLogger : <Array> \[1,\ 2,\ 3,\ 4\]/> was expected to be =~
  <"/build/ruby-logging-2.0.0/lib/logging/appender.rb:141: warning: constant ::Fixnum is deprecated\n">.
test_append(TestLogging::TestAppenders::TestSyslog)
/build/ruby-logging-2.0.0/test/appenders/test_syslog.rb:55:in `test_append'
     52:       Process.waitpid(pid)
     53: 
     54:       if defined?(::Syslog::LOG_PERROR)
  => 55:         assert_match(%r/INFO  TestLogger : <Array> #{Regexp.escape [1,2,3,4].to_s}/, stderr[0].gets)
     56:         assert_match(%r/DEBUG  TestLogger : the big log message/, stderr[0].gets)
     57:         assert_match(%r/WARN  TestLogger : this is your last warning/, stderr[0].gets)
     58:       end
===============================================================================
Thread.exclusive is deprecated, use Thread::Mutex
/build/ruby-logging-2.0.0/lib/logging/diagnostic_context.rb:384:in `clear_diagnostic_contexts'

..

Finished in 8.999016755 seconds.
------
176 tests, 1093 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
98.8636% passed
------
19.56 tests/s, 121.46 assertions/s
ERROR: Test "ruby2.5" failed. Exiting.
dh_auto_install: dh_ruby --install /build/ruby-logging-2.0.0/debian/ruby-logging returned exit code 1
make: *** [binary] Error 1
debian/rules:18: recipe for target 'binary' failed
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

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

Please fix it!

Cheers,
Chris.



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