Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 106635

Summary: ruby gnomecanvas2 loads gnomecanvas2.so twice causing errors in applications
Product: Gentoo Linux Reporter: Vasco Flores <vasco.flores>
Component: [OLD] GNOMEAssignee: Gentoo Ruby Team <ruby>
Status: RESOLVED TEST-REQUEST    
Severity: minor CC: gnome
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vasco Flores 2005-09-19 21:13:58 UTC
as show here it's caused by the gnomecanvas2.so loading in gtk2 and then the so
itself, so gnome-art caused:

vasco bin # gnome-art
(eval):1: [BUG] rbgobj_define_class: Invalid gtype [CanvasPathDef]

ruby 1.8.2 (2004-12-25) [i686-linux]

Aborted

A similar error is described here https://launchpad.net/distros/ubuntu/+bugs/1795
so I tryed in /usr/lib/ruby/site_ruby/1.8/gnomecanvas2.rb :
require 'gtk2'
require 'libart2'
require 'gnomecanvas2.so'

if we comment the last require solves the problem and gnomecanvas is already
loaded and gnome-art ok.

I think the last version of ruby-gnome2 http://ruby-gnome2.sourceforge.jp/ and
the other packages solve the problem, but there is no ebuild for them...

thank you

Reproducible: Always
Steps to Reproduce:
1.emerging gnome-art 0.2 (with the ruby-gnome2 0.12 dependencies)
2.runing gnome-art in a console

Actual Results:  
vasco bin # gnome-art
(eval):1: [BUG] rbgobj_define_class: Invalid gtype [CanvasPathDef]

ruby 1.8.2 (2004-12-25) [i686-linux]

Aborted

Expected Results:  
opened a window with the gnome-art application

I dont know much about ruby, but the link I visited
https://launchpad.net/distros/ubuntu/+bugs/1795
and the commenting test I've done takes my out the doubts
Comment 1 Michael Kohl (RETIRED) gentoo-dev 2005-11-15 03:49:56 UTC
ruby-gnome2-0.14.1 has just been commited and should take care of this. Please
test and give me some feedback so I can close this bug, thanks!