[DRE-maint] Bug#714472: ruby-graphviz: treats dot's output into stderr as error
Hleb Valoshka
375gnu at gmail.com
Sat Jun 29 17:58:11 UTC 2013
Package: ruby-graphviz
Version: 1.0.8-2
Severity: important
Dear Maintainer,
when I try to run script which uses ruby-graphviz it exits abnormally with
output like this:
/usr/lib/ruby/vendor_ruby/graphviz/utils.rb:76:in `output_from_command': Error
from "/usr/bin/dot" -q1 -Tpng -ohello_world.png
/tmp/graphviz.rb20130629-29282-1uhwdt2: (RuntimeError)
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading
configurations from ~/.fonts.conf is deprecated.
from /usr/lib/ruby/vendor_ruby/graphviz.rb:655:in `output'
from tst.rb:15:in `<main>'
The appropriate code is
def output_from_command(cmd) #:nodoc:
output, errors = output_and_errors_from_command(cmd)
if errors.nil? || errors.strip.empty?
output
else
raise "Error from #{cmd}:\n#{errors}"
end
end
It's obvious that return code shoul'd be checked instead.
BTW, I also filed this issue to upstream
(https://github.com/glejeune/Ruby-Graphviz/issues/72).
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.9-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=be_BY.UTF-8, LC_CTYPE=be_BY.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages ruby-graphviz depends on:
ii graphviz 2.26.3-15
ii ruby 1:1.9.3
ii ruby1.8 [ruby-interpreter] 1.8.7.358-7
ii ruby1.9.1 [ruby-interpreter] 1.9.3.194-8.1+b1
ruby-graphviz recommends no packages.
ruby-graphviz suggests no packages.
-- no debconf information
More information about the Pkg-ruby-extras-maintainers
mailing list