[DRE-maint] Bug#888147: ruby-backports: FTBFS on ruby2.5: tests: encoding change

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


Source: ruby-backports
Version: 3.6.8-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:


51 tests, 170 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
------
63.57 tests/s, 211.91 assertions/s
/usr/bin/ruby2.5 /usr/bin/gem2deb-test-runner

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

RUBYLIB=/build/ruby-backports-3.6.8/debian/ruby-backports/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-backports/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 debian/ruby-tests.rb
/build/ruby-backports-3.6.8/test/_backport_guards_test.rb:51: warning: constant ::Fixnum is deprecated
/build/ruby-backports-3.6.8/test/lazy_test.rb:212: warning: assigned but unused variable - enum
/build/ruby-backports-3.6.8/test/lazy_test.rb:304: warning: assigned but unused variable - bug7696
Loaded suite /usr/lib/ruby/vendor_ruby/rake/rake_test_loader
Started
.F
===============================================================================
Failure: test__2_backports_wont_override_unnecessarily(AAA_TestBackportGuards)
/build/ruby-backports-3.6.8/test/_backport_guards_test.rb:30:in `teardown'
<"">(UTF-8) expected but was
<"/build/ruby-backports-3.6.8/lib/backports/tools/extreme_object.rb:4: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument\n" +
"/build/ruby-backports-3.6.8/lib/backports/tools/extreme_object.rb:8: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument\n" +
"/build/ruby-backports-3.6.8/lib/backports/1.8.7/fixnum/div.rb:1: warning: constant ::Fixnum is deprecated\n" +
"/build/ruby-backports-3.6.8/lib/backports/1.8.7/fixnum/fdiv.rb:1: warning: constant ::Fixnum is deprecated\n">(US-ASCII)

diff:
+ /build/ruby-backports-3.6.8/lib/backports/tools/extreme_object.rb:4: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument
+ /build/ruby-backports-3.6.8/lib/backports/tools/extreme_object.rb:8: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument
+ /build/ruby-backports-3.6.8/lib/backports/1.8.7/fixnum/div.rb:1: warning: constant ::Fixnum is deprecated
+ /build/ruby-backports-3.6.8/lib/backports/1.8.7/fixnum/fdiv.rb:1: warning: constant ::Fixnum is deprecated
  
? Encoding: UTF-8    
?            S  ASCII
===============================================================================
....F
===============================================================================
Failure: test_setlib_load_correctly_after_requiring_backports(AAA_TestBackportGuards)
/build/ruby-backports-3.6.8/test/_backport_guards_test.rb:30:in `teardown'
<"">(UTF-8) expected but was
<"/build/ruby-backports-3.6.8/lib/backports/1.9.2/stdlib/matrix.rb:973: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument\n" +
"/build/ruby-backports-3.6.8/lib/backports/1.9.2/stdlib/matrix.rb:1468: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument\n" +
"/build/ruby-backports-3.6.8/lib/backports/1.9.2/stdlib/matrix.rb:1481: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument\n">(US-ASCII)

diff:
+ /build/ruby-backports-3.6.8/lib/backports/1.9.2/stdlib/matrix.rb:973: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument
+ /build/ruby-backports-3.6.8/lib/backports/1.9.2/stdlib/matrix.rb:1468: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument
+ /build/ruby-backports-3.6.8/lib/backports/1.9.2/stdlib/matrix.rb:1481: warning: parentheses after method name is interpreted as an argument list, not a decomposed argument
  
? Encoding: UTF-8    
?            S  ASCII
===============================================================================
............................................

Finished in 0.500010822 seconds.
------
51 tests, 170 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
------
102.00 tests/s, 339.99 assertions/s
/usr/lib/ruby/vendor_ruby/rake/testtask.rb:130:in `block (3 levels) in define': Command failed with status (1) (RuntimeError)
	from /usr/lib/ruby/vendor_ruby/rake/file_utils.rb:57:in `sh'
	from /usr/lib/ruby/vendor_ruby/rake/file_utils.rb:105:in `ruby'
	from /usr/lib/ruby/vendor_ruby/rake/testtask.rb:117:in `block (2 levels) in define'
	from /usr/lib/ruby/vendor_ruby/rake/file_utils_ext.rb:59:in `verbose'
	from /usr/lib/ruby/vendor_ruby/rake/testtask.rb:111:in `block in define'
	from /usr/lib/ruby/vendor_ruby/rake/task.rb:251:in `block in execute'
	from /usr/lib/ruby/vendor_ruby/rake/task.rb:251:in `each'
	from /usr/lib/ruby/vendor_ruby/rake/task.rb:251:in `execute'
	from /usr/lib/ruby/vendor_ruby/rake/task.rb:195:in `block in invoke_with_call_chain'
	from /usr/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
	from /usr/lib/ruby/vendor_ruby/rake/task.rb:188:in `invoke_with_call_chain'
	from /usr/lib/ruby/vendor_ruby/rake/task.rb:181:in `invoke'
	from debian/ruby-tests.rb:5:in `<main>'
ERROR: Test "ruby2.5" failed. Exiting.
dh_auto_install: dh_ruby --install /build/ruby-backports-3.6.8/debian/ruby-backports returned exit code 1
debian/rules:6: recipe for target 'binary' failed
make: *** [binary] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

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

Please fix it!

Cheers,
Chris.



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