Bug 27

Summary: ruby-gtk2 is broken because gtk.so gets loaded before gtk.rb
Product: Mageia Reporter: Rémy CLOUARD (shikamaru) <shikamaru>
Component: RPM PackagesAssignee: Rémy CLOUARD (shikamaru) <shikamaru>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Normal CC: dmorganec
Version: CauldronKeywords: Triaged
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: ruby-gtk2-0.90.7-1.mga1.src.rpm CVE:
Status comment:

Description Rémy CLOUARD (shikamaru) 2011-02-15 10:06:59 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101230 Firefox/3.6.13
Build Identifier: 

Description of problem:
When running an application running the ruby-gtk2 library, it crashes. The problem is because the .so file gets loaded before the .rb, which happens because the so file is stored in /usr/lib/ruby/site_ruby/<architecture> and the .rb in /usr/lib/ruby/gems/1.8/gems/gtk2-0.90.7/lib

Fix would be to move the content of the lib/ directory to /usr/lib/ruby/site_ruby.

Better would be to move pure ruby to /usr/lib/ruby/vendor_ruby and so files to /usr/lib/ruby/vendor_ruby/<architecture>

Version-Release number of selected component (if applicable):
0.90.7-1

How reproducible:
always

Steps to Reproduce:
1. install an application using the ruby gtk2 bindings (ex: rubyripper)
2. try to launch the gui with rrip_gui
3. see it fail


Reproducible: 

Steps to Reproduce:
D Morgan 2011-02-20 19:56:29 CET

CC: (none) => dmorganec
Assignee: ahmadsamir3891 => bugsquad

Ahmad Samir 2011-02-21 02:40:04 CET

Keywords: (none) => Triaged
Assignee: bugsquad => shikamaru

Comment 1 Rémy CLOUARD (shikamaru) 2011-03-14 23:25:06 CET
fixed with ruby-gtk2-0.90.8-1.mga1

Status: NEW => RESOLVED
Resolution: (none) => FIXED