[DRE-maint] Bug#575067: ohai: does not depend on ruby, but calls ruby

Tollef Fog Heen tfheen at debian.org
Tue Mar 23 09:03:45 UTC 2010


Package: ohai
Severity: grave

ohai either needs to call ruby$version or it needs to depend on ruby:

: root at korma ~ # ohai -l debug
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: Loading plugin os
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: Loading plugin ruby
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: Loading plugin languages
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- Begin ruby -e "require 'rbconfig'; puts \"host_vendor:#{::Config::CONFIG['host_vendor']},release_date:#{RUBY_RELEASE_DATE},bin_dir:#{::Config::CONFIG['bindir']},platform:#{RUBY_PLATFORM},target_cpu:#{::Config::CONFIG['target_cpu']},ruby_bin:#{::File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name'])},host_os:#{::Config::CONFIG['host_os']},target:#{::Config::CONFIG['target']},target_vendor:#{::Config::CONFIG['target_vendor']},host:#{::Config::CONFIG['host']},version:#{RUBY_VERSION},target_os:#{::Config::CONFIG['target_os']},host_cpu:#{::Config::CONFIG['host_cpu']},\"" STDOUT ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: 
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- End ruby -e "require 'rbconfig'; puts \"host_vendor:#{::Config::CONFIG['host_vendor']},release_date:#{RUBY_RELEASE_DATE},bin_dir:#{::Config::CONFIG['bindir']},platform:#{RUBY_PLATFORM},target_cpu:#{::Config::CONFIG['target_cpu']},ruby_bin:#{::File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name'])},host_os:#{::Config::CONFIG['host_os']},target:#{::Config::CONFIG['target']},target_vendor:#{::Config::CONFIG['target_vendor']},host:#{::Config::CONFIG['host']},version:#{RUBY_VERSION},target_os:#{::Config::CONFIG['target_os']},host_cpu:#{::Config::CONFIG['host_cpu']},\"" STDOUT ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- Begin ruby -e "require 'rbconfig'; puts \"host_vendor:#{::Config::CONFIG['host_vendor']},release_date:#{RUBY_RELEASE_DATE},bin_dir:#{::Config::CONFIG['bindir']},platform:#{RUBY_PLATFORM},target_cpu:#{::Config::CONFIG['target_cpu']},ruby_bin:#{::File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name'])},host_os:#{::Config::CONFIG['host_os']},target:#{::Config::CONFIG['target']},target_vendor:#{::Config::CONFIG['target_vendor']},host:#{::Config::CONFIG['host']},version:#{RUBY_VERSION},target_os:#{::Config::CONFIG['target_os']},host_cpu:#{::Config::CONFIG['host_cpu']},\"" STDERR ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: sh: ruby: command not found
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- End ruby -e "require 'rbconfig'; puts \"host_vendor:#{::Config::CONFIG['host_vendor']},release_date:#{RUBY_RELEASE_DATE},bin_dir:#{::Config::CONFIG['bindir']},platform:#{RUBY_PLATFORM},target_cpu:#{::Config::CONFIG['target_cpu']},ruby_bin:#{::File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name'])},host_os:#{::Config::CONFIG['host_os']},target:#{::Config::CONFIG['target']},target_vendor:#{::Config::CONFIG['target_vendor']},host:#{::Config::CONFIG['host']},version:#{RUBY_VERSION},target_os:#{::Config::CONFIG['target_os']},host_cpu:#{::Config::CONFIG['host_cpu']},\"" STDERR ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: Ran  (ruby -e "require 'rbconfig'; puts \"host_vendor:#{::Config::CONFIG['host_vendor']},release_date:#{RUBY_RELEASE_DATE},bin_dir:#{::Config::CONFIG['bindir']},platform:#{RUBY_PLATFORM},target_cpu:#{::Config::CONFIG['target_cpu']},ruby_bin:#{::File.join(::Config::CONFIG['bindir'], ::Config::CONFIG['ruby_install_name'])},host_os:#{::Config::CONFIG['host_os']},target:#{::Config::CONFIG['target']},target_vendor:#{::Config::CONFIG['target_vendor']},host:#{::Config::CONFIG['host']},version:#{RUBY_VERSION},target_os:#{::Config::CONFIG['target_os']},host_cpu:#{::Config::CONFIG['host_cpu']},\"") returned 127
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: Loading plugin kernel
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- Begin uname -s STDOUT ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: Linux
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- End uname -s STDOUT ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- Begin uname -s STDERR ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: 
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- End uname -s STDERR ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: Ran  (uname -s) returned 0
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- Begin uname -r STDOUT ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: 2.6.32-2-686
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- End uname -r STDOUT ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- Begin uname -r STDERR ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: 
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- End uname -r STDERR ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: Ran  (uname -r) returned 0
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- Begin uname -v STDOUT ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: #1 SMP Thu Feb 11 04:08:42 UTC 2010
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- End uname -v STDOUT ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- Begin uname -v STDERR ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: 
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- End uname -v STDERR ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: Ran  (uname -v) returned 0
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- Begin uname -m STDOUT ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: i686
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- End uname -m STDOUT ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- Begin uname -m STDERR ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: 
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: ---- End uname -m STDERR ----
[Tue, 23 Mar 2010 10:02:43 +0100] DEBUG: Ran  (uname -m) returned 0
/usr/lib/ruby/1.8/ohai/system.rb:121:in `join': can't convert nil into String (TypeError)
	from /usr/lib/ruby/1.8/ohai/system.rb:121:in `all_plugins'
	from /usr/lib/ruby/1.8/ohai/system.rb:118:in `each'
	from /usr/lib/ruby/1.8/ohai/system.rb:118:in `all_plugins'
	from /usr/lib/ruby/1.8/ohai/application.rb:89:in `run_application'
	from /usr/lib/ruby/1.8/ohai/application.rb:67:in `run'
	from /usr/bin/ohai:40

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Navn                      Versjon                   Beskrivelse
+++-=========================-=========================-==================================================================
un  ruby                      <ingen>                   (ingen beskrivelse tilgjengelig)
ii  libohai-ruby1.8           0.5.0-1                   Ruby 1.8 library to collect data about your operating system
ii  ohai                      0.5.0-1                   Detects data about your operating system and reports it in JSON

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=nb_NO.UTF-8, LC_CTYPE=nb_NO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- 
Tollef Fog Heen
Varnish Software
t: +47 21 54 41 73






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