FS#34437 - [rubyripper] GUI doesn't start anymore
Attached to Project:
Community Packages
Opened by Steffen Weber (boenki) - Sunday, 24 March 2013, 05:54 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 16 April 2013, 12:44 GMT
Opened by Steffen Weber (boenki) - Sunday, 24 March 2013, 05:54 GMT
Last edited by Dave Reisner (falconindy) - Tuesday, 16 April 2013, 12:44 GMT
|
Details
Description:
since todays update of ruby and dependant pkgs rubyrippers GUI doesn't start anymore [2013-03-24 06:46] Running 'pacman -Syu' [2013-03-24 06:46] synchronizing package lists [2013-03-24 06:46] starting full system upgrade [2013-03-24 06:46] upgraded ruby (1.9.3_p392-1 -> 2.0.0_p0-1) [2013-03-24 06:46] upgraded ruby-glib2 (1.2.2-1 -> 1.2.2-2) [2013-03-24 06:46] upgraded ruby-atk (1.2.2-1 -> 1.2.2-2) [2013-03-24 06:46] upgraded ruby-cairo (1.12.2-3 -> 1.12.2-4) [2013-03-24 06:46] upgraded ruby-gdkpixbuf2 (1.2.2-1 -> 1.2.2-2) [2013-03-24 06:46] upgraded ruby-pango (1.2.2-1 -> 1.2.2-2) [2013-03-24 06:46] upgraded ruby-gtk2 (1.2.2-1 -> 1.2.2-2) [2013-03-24 06:46] upgraded rubyripper (0.6.2-2 -> 0.6.2-3) [boenki ~]$ rrip_gui ruby-gettext is not found. Translations are disabled! The ruby-gtk2 library could not be found. Is it installed? |
This task depends upon
Closed by Dave Reisner (falconindy)
Tuesday, 16 April 2013, 12:44 GMT
Reason for closing: Not a bug
Additional comments about closing: Not a bug in rubyripper
Tuesday, 16 April 2013, 12:44 GMT
Reason for closing: Not a bug
Additional comments about closing: Not a bug in rubyripper
$ irb
irb(main):001:0> require "gtk2"
LoadError: /usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux/pango.so: undefined symbol: rb_cCairo_Context - /usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux/pango.so
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 /usr/lib/ruby/vendor_ruby/2.0.0/pango.rb:28:in `rescue in <top (required)>'
from /usr/lib/ruby/vendor_ruby/2.0.0/pango.rb:24: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 /usr/lib/ruby/vendor_ruby/2.0.0/gtk2/base.rb:14: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 /usr/lib/ruby/vendor_ruby/2.0.0/gtk2.rb:11: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 (irb):1
from /usr/bin/irb:12:in `<main>'
irb(main):002:0> require "cairo"
LoadError: cannot load such file -- cairo.so
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 /usr/lib/ruby/vendor_ruby/2.0.0/cairo.rb:46:in `rescue in <top (required)>'
from /usr/lib/ruby/vendor_ruby/2.0.0/cairo.rb:42: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 (irb):2
from /usr/bin/irb:12:in `<main>'
The cairo gem directly installed via "gem" works (and rrip_gui works as well), so this seems like a packaging bug with ruby-cairo. Reassigning.
sudo gem install --development cairo
sudo gem install --development pango
It still does not work for me:
% irb
irb(main):001:0> require "gtk2"
LoadError: /usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux/pango.so: undefined symbol: rb_cCairo_Context - /usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux/pango.so
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 /usr/lib/ruby/vendor_ruby/2.0.0/pango.rb:28:in `rescue in <top (required)>'
from /usr/lib/ruby/vendor_ruby/2.0.0/pango.rb:24: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 /usr/lib/ruby/vendor_ruby/2.0.0/gtk2/base.rb:14: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 /usr/lib/ruby/vendor_ruby/2.0.0/gtk2.rb:11: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 (irb):1
from /usr/bin/irb:12:in `<main>'
irb(main):002:0>
How did you install the gems?
The root of the problem here was nicely illustrated in the IRB backtrace I posted:
LoadError: cannot load such file -- cairo.so
cairo.so does not exist in community/ruby-cairo. Installing the gem causes the shared lib to be built and installed properly.
Makefile:238: warning: overriding recipe for target `install-so'
Makefile:182: warning: ignoring old recipe for target `install-so'
(These appear twice during a makepkg for ruby-cairo...)
install ext/cairo/cairo.so ${pkgdir}/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-linux/
to the package() routine of the PKGBUILD fixes the problem, but is obviously an ugly hack.
install ext/cairo/cairo.so ${pkgdir}/usr/lib/ruby/vendor_ruby/2.0.0/${arch}-linux/
Jeremy, thank you, I'll implement the suggestion.
Jeremy, added your name as a contributor to the PKGBUILD.
The updated package will appear in [community] shortly.
[boenki ~]$ pacman -Qs ruby-cairo
local/ruby-cairo 1.12.2-6
Ruby bindings for cairo
[boenki ~]$ rrip_gui
ruby-gettext is not found. Translations are disabled!
The ruby-gtk2 library could not be found. Is it installed?
Original title was
[rubyripper] gui does not start.
and that still does not work
But it was fixed after this bugreport
FS#34500- [ruby-cairo] cairo.so in wrong $arch% irb
irb(main):001:0> require "gtk2"
=> true
irb(main):002:0>
Applications like "rubyroom" from AUR work too.
If this is still a problem, I believe it's a problem with rubyripper.
>I just see this task is reopened:
>But it was fixed after this bugreport
>
FS#34500- [ruby-cairo] cairo.so in wrong $archI asked to reopen, because rubyripper did not start at that time. When I found the reason, I could not change my comment here, but opend
FS#34500instead.I'm sorry for the trouble. :)