[DRE-maint] Bug#720226: ruby-activeresource-2.3: FTBFS with ruby2.0: ERROR: Test "ruby2.0" failed: `<class:Connection>': undefined method `silence_warnings' for ActiveResource::Connection:Class (NoMethodError)

David Suárez david.sephirot at gmail.com
Mon Aug 19 19:02:53 UTC 2013


Source: ruby-activeresource-2.3
Version: 2.3.14-3
Severity: important
Tags: jessie sid
User: debian-ruby at lists.debian.org
Usertags: ruby2-ftbfs-20130818 ruby2-ftbfs
Justification: FTBFS on amd64 with ruby2.0

Hi,

During a rebuild of all packages that build depends on gem2deb
using the new ruby2.0 interpreter, your package failed to build
on amd64.

Relevant part (hopefully):
>  fakeroot debian/rules binary
> dh binary --buildsystem=ruby --with ruby
>    dh_testroot -O--buildsystem=ruby
>    dh_prep -O--buildsystem=ruby
>    dh_auto_install -O--buildsystem=ruby
> /usr/lib/ruby/vendor_ruby/gem2deb.rb:17: warning: setting Encoding.default_external
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:31: warning: method redefined; discarding old visit_String
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:4: warning: previous definition of visit_String was here
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:39: warning: method redefined; discarding old register
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:12: warning: previous definition of register was here
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:43: warning: method redefined; discarding old format_time
> /usr/lib/ruby/1.9.1/rubygems/psych_tree.rb:16: warning: previous definition of format_time was here
> /usr/lib/ruby/1.9.1/rubygems/syck_hack.rb:115: warning: method redefined; discarding old to_s
> /usr/lib/ruby/1.9.1/rubygems/syck_hack.rb:44: warning: previous definition of to_s was here
>   Entering dh_ruby --install
> install -d /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource.rb
> install -D -m644 /«PKGBUILDDIR»/lib/activeresource.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/activeresource.rb
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource/custom_methods.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource/custom_methods.rb
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource/version.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource/version.rb
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource/formats/json_format.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource/formats/json_format.rb
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource/formats/xml_format.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource/formats/xml_format.rb
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource/connection.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource/connection.rb
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource/formats.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource/formats.rb
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource/base.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource/base.rb
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource/validations.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource/validations.rb
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource/http_mock.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource/http_mock.rb
> install -D -m644 /«PKGBUILDDIR»/lib/active_resource/exceptions.rb /«PKGBUILDDIR»/debian/ruby-activeresource-2.3/usr/lib/ruby/vendor_ruby/active_resource/exceptions.rb
> dh_installchangelogs -pruby-activeresource-2.3 /«PKGBUILDDIR»/CHANGELOG upstream
> /usr/bin/ruby1.9.1 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
> /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
> Run options: 
> 
> # Running tests:
> 
> .....................................................................................................................................................
> 
> Finished tests in 1.220658s, 122.0653 tests/s, 393.2305 assertions/s.
> 
> 149 tests, 480 assertions, 0 failures, 0 errors, 0 skips
> /usr/bin/ruby2.0 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
> /«PKGBUILDDIR»/lib/active_resource/http_mock.rb:296:in `<class:Connection>': undefined method `silence_warnings' for ActiveResource::Connection:Class (NoMethodError)
> 	from /«PKGBUILDDIR»/lib/active_resource/http_mock.rb:294:in `<module:ActiveResource>'
> 	from /«PKGBUILDDIR»/lib/active_resource/http_mock.rb:3:in `<top (required)>'
> 	from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
> 	from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
> 	from /«PKGBUILDDIR»/test/abstract_unit.rb:8:in `<top (required)>'
> 	from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
> 	from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
> 	from /«PKGBUILDDIR»/test/authorization_test.rb:1:in `<top (required)>'
> 	from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
> 	from /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
> 	from -e:1:in `block in <main>'
> 	from -e:1:in `each'
> 	from -e:1:in `<main>'
> ERROR: Test "ruby2.0" failed: 
> dh_auto_install: dh_ruby --install /«PKGBUILDDIR»/debian/ruby-activeresource-2.3 returned exit code 1
> make: *** [binary] Error 1

The full build log is available from:
  http://aws-logs.debian.net/ftbfs-logs/ruby2.0/ruby-activeresource-2.3_2.3.14-3_unstable_ruby2.log

This build is part of an effort to add gem2deb support for ruby2.0.
Information about is available at https://wiki.debian.org/Teams/Ruby/Jessie.

About the rebuild: The rebuild was done on EC2 VM instances from Amazon Web Services,
using a clean, minimal and up-to-date chroot, plus gem2deb and ruby2.0 packages from
the repository at http://people.debian.org/~terceiro/packages/. The gem2deb version
in that repository does not pull ruby1.8 as a dependency anymore, and builds packages
against ruby1.9.1 and ruby2.0. Every failed build was retried once to eliminate random
failures.

The version of gem2deb used for this rebuild, as well as ruby2.0,
will be uploaded to unstable soon.



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