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

Bug 184373

Summary: dev-java/jruby-1.0 doesn't install gems correctly
Product: Gentoo Linux Reporter: mikael lammentausta <mikael.lammentausta>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: minor CC: nichoj
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description mikael lammentausta 2007-07-06 02:55:53 UTC
I'm having some trouble with the latest JRuby ebuild. The vanilla JRuby-1.0 package (bin unzipped under /opt) works so the trouble is in the ebuild. /usr/bin/jruby is the script installed by the latest ebuild (1.0.0)

 $ /usr/bin/jruby /usr/bin/gem install gen
 yaml:290:in `require': undefined method `yaml_as' for Kernel::YAML::Omap:Class (NoMethodError)

Then..

 $ /opt/jruby-1.0/bin/jruby /usr/bin/gem install gen
Bulk updating Gem source index for: http://gems.rubyforge.org
Install required dependency glue? [Yn]  Y
Install required dependency facets? [Yn]  Y
Successfully installed gen-0.41.0
Successfully installed glue-0.41.0
Successfully installed facets-1.4.5
Installing ri documentation for gen-0.41.0...
Installing ri documentation for glue-0.41.0...
While generating documentation for glue-0.41.0
... MESSAGE:   java.lang.ArrayIndexOutOfBoundsException: null
... RDOC args: --ri --op /opt/jruby-1.0/lib/ruby/gems/1.8/doc/glue-0.41.0/ri --quiet lib
(continuing with the rest of the installation)
Installing ri documentation for facets-1.4.5...
Installing RDoc documentation for gen-0.41.0...
Installing RDoc documentation for glue-0.41.0...
While generating documentation for glue-0.41.0
... MESSAGE:   java.lang.ArrayIndexOutOfBoundsException: null
... RDOC args: --op /opt/jruby-1.0/lib/ruby/gems/1.8/doc/glue-0.41.0/rdoc --quiet lib
(continuing with the rest of the installation)
Installing RDoc documentation for facets-1.4.5...

This one is a major bug, although can be overridded by using the CRuby's gem install command, since since the removal of jgem, the Gentoo JRuby has symlinked to CRuby's gem path.


Reproducible: Always

Steps to Reproduce:
1. emerge rubygems jruby
2. /usr/bin/jruby /usr/bin/gem install <any gem>
3.

Actual Results:  
Install failed.

Expected Results:  
Install succeeded.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-06 07:12:36 UTC

*** This bug has been marked as a duplicate of bug 181856 ***