Bug 1041391

Summary: doesn't add %{gem_extdir_mri} to ruby's path
Product: [Fedora] Fedora Reporter: Björn 'besser82' Esser <besser82>
Component: rubygemsAssignee: Mamoru TASAKA <mtasaka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: mastahnke, mtasaka, skottler, vanmeeuwen+fedora, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygems-2.1.11-114.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-22 05:43:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Björn 'besser82' Esser 2013-12-12 15:44:50 UTC
Description of problem:

  When requiring a rubygem, which is loaded by it's compiled extension like
  require("gem.so"), the gem.so isn't found by ruby...

  This doesn't happend when a ruby-native (gem.rb) from that gem is required
  prior to the c-compiled-so.


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

  rubygems-2.1.11-113.fc20


How reproducible:

  100%


Steps to Reproduce:

  1. take a gem with a *.so in %{gem_extdir_mri} like rubygem-zoom
  2. ruby -e 'require("rubygems"); require("zoom.so")'
  3. KABOOM!!!


Actual results:

  /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require':
  cannot load such file -- zoom (LoadError)
	from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:
        in `require` from -e:1:in `<main>'


Expected results:

  The c-compiled gem should be loaded without an error, like with
    rubygems-2.0.12-109.fc20.noarch


Additional info:

  me && vondruch have tried an can confirm.

Comment 1 Vít Ondruch 2013-12-12 15:48:52 UTC
Thanks for reporting. It seems that RubyGems 2.1 is missing one patch. Will fix that soon.

Comment 2 Fedora Update System 2013-12-13 06:42:16 UTC
rubygems-2.1.11-114.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/rubygems-2.1.11-114.fc20

Comment 3 Vít Ondruch 2013-12-13 08:48:30 UTC
Mamoru, thank you for fixing this. I thought I'll fix it (I already had scratch build, but had to leave prior pushing it), but you beat me :)

Comment 4 Fedora Update System 2013-12-13 17:54:46 UTC
Package rubygems-2.1.11-114.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rubygems-2.1.11-114.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23328/rubygems-2.1.11-114.fc20
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-12-22 05:43:21 UTC
rubygems-2.1.11-114.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.