Bug 27 - ruby-gtk2 is broken because gtk.so gets loaded before gtk.rb
Summary: ruby-gtk2 is broken because gtk.so gets loaded before gtk.rb
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Rémy CLOUARD (shikamaru)
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2011-02-15 10:06 CET by Rémy CLOUARD (shikamaru)
Modified: 2011-03-14 23:25 CET (History)
1 user (show)

See Also:
Source RPM: ruby-gtk2-0.90.7-1.mga1.src.rpm
CVE:
Status comment:


Attachments

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


Note You need to log in before you can comment on or make changes to this bug.