[DRE-maint] Bug#720250: ruby-image-science: FTBFS with ruby2.0: ERROR: Test "ruby2.0" failed: /usr/lib/ruby/vendor_ruby/inline.rb:149:in `directory': unsupported ruby version: 2.0.0 (RuntimeError)

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


Source: ruby-image-science
Version: 1.2.2-1.1
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-image-science/usr/bin
> install -D -m755 /«PKGBUILDDIR»/bin/image_science_thumb /«PKGBUILDDIR»/debian/ruby-image-science/usr/bin/image_science_thumb
> install -d /«PKGBUILDDIR»/debian/ruby-image-science/usr/lib/ruby/vendor_ruby
> install -D -m644 /«PKGBUILDDIR»/lib/image_science.rb /«PKGBUILDDIR»/debian/ruby-image-science/usr/lib/ruby/vendor_ruby/image_science.rb
> Rewriting shebang line of /«PKGBUILDDIR»/debian/ruby-image-science/usr/bin/image_science_thumb
> /usr/bin/ruby1.9.1 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
> Warning: you should require 'minitest/autorun' instead.
> From /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
>   /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
>   /«PKGBUILDDIR»/test/test_image_science.rb:16:in `<top (required)>'
>   /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
>   /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
>   -e:1:in `block in <main>'
>   -e:1:in `each'
>   -e:1:in `<main>'
> MiniTest::Unit::TestCase is now Minitest::Test. From /«PKGBUILDDIR»/test/test_image_science.rb:20:in `<top (required)>'
> /usr/bin/ruby2.0 -I/usr/lib/ruby/vendor_ruby /usr/lib/ruby/vendor_ruby/gem2deb/test_runner.rb
> Warning: you should require 'minitest/autorun' instead.
> From /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
>   /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
>   /«PKGBUILDDIR»/test/test_image_science.rb:16:in `<top (required)>'
>   /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
>   /usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
>   -e:1:in `block in <main>'
>   -e:1:in `each'
>   -e:1:in `<main>'
> /usr/lib/ruby/vendor_ruby/inline.rb:149:in `directory': unsupported ruby version: 2.0.0 (RuntimeError)
> 	from /usr/lib/ruby/vendor_ruby/inline.rb:393:in `so_name'
> 	from /usr/lib/ruby/vendor_ruby/inline.rb:516:in `load_cache'
> 	from /usr/lib/ruby/vendor_ruby/inline.rb:842:in `inline'
> 	from /«PKGBUILDDIR»/debian/ruby-image-science/usr/lib/ruby/vendor_ruby/image_science.rb:87:in `<class:ImageScience>'
> 	from /«PKGBUILDDIR»/debian/ruby-image-science/usr/lib/ruby/vendor_ruby/image_science.rb:13: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/test_image_science.rb:18: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/tmp 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-image-science_1.2.2-1.1_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