Re: About apt-listbugs and ruby 1.9.x
On 01/04/2012 02:00 PM, Francesco Poli wrote:
As far as the test-unit library is concerned, it is used in a test
suite currently run at package build time.
It was mentioned as one of the libraries dropped from ruby 1.9.x in
http://lists.debian.org/debian-ruby/2011/06/msg00050.html
No further investigation has been carried out on this front yet.
test-unit was bundled with Ruby 1.8. With Ruby 1.9, an alternate
library, minitest, is bundled instead. You can still get test/unit on
1.9 if you install the gem. The reverse is also true: you can use
minitest on 1.8 simply by installing the gem.
I see that Sam Ruby has offered help:
http://lists.debian.org/debian-ruby/2012/01/msg00012.html
but he seems to be unable to reproduce the issue:
http://lists.debian.org/debian-ruby/2012/01/msg00023.html
I think that this may be explained by the fact that apt-listbugs
currently forces the use of ruby 1.8.x, through dependencies and with
the shebang (#!/usr/bin/ruby1.8).
You'll probably see the crash, as soon as you modify that shebang so
that apt-listbugs gets interpreted by ruby 1.9.x
I should be able to get the same results by typing "ruby apt-listbugs"?
My first attempt:
$ ruby /usr/sbin/apt-listbugs
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require':
cannot load such file -- gettext (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/sbin/apt-listbugs:256:in `<main>'
This library can be installed:
$ sudo apt-get install libgettext-ruby1.9.1
After installation, it runs, albeit with a few deprecation warnings:
$ ruby /usr/sbin/apt-listbugs
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': iconv
will be deprecated in the future, use String#encode instead.
/usr/lib/ruby/1.9.1/gettext/runtime/locale_path.rb:20: Use RbConfig
instead of obsolete and deprecated Config.
NOTE: Gem.all_load_paths is deprecated with no replacement. It will
be removed on or after 2011-10-01.
Gem.all_load_paths called from
/usr/lib/ruby/1.9.1/gettext/runtime/locale_path.rb:56.
NOTE: Gem.all_partials is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem.all_partials called from /usr/lib/ruby/1.9.1/rubygems.rb:258.
NOTE: Gem.all_partials is deprecated with no replacement. It will be
removed on or after 2011-10-01.
Gem.all_partials called from /usr/lib/ruby/1.9.1/rubygems.rb:258.
E: You need to specify a command.
Usage: apt-listbugs [options] <command> [arguments]
Options:
- Sam Ruby
Reply to: