Bug 1198676

Summary: jruby: missing add-on gems
Product: [Fedora] Fedora Reporter: Michal Srb <msrb>
Component: jrubyAssignee: Mo Morsi <mmorsi>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: filippo.rossoni, hhorak, mgoldman, mmorsi, msrb, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 12:55:50 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:
Embargoed:
Bug Depends On: 1225406    
Bug Blocks:    

Description Michal Srb 2015-03-04 15:37:04 UTC
Description of problem:

Standard jruby distribution tarball comes with bunch of JARs which we don't have in Fedora:

- we have "tesla-polyglot" package, but we don't build ruby module from some reason:
./lib/ruby/gems/shared/gems/ruby-maven-3.1.1.0.8/ext/ruby/tesla-polyglot-ruby-0.1.1.jar

- we could probably symlink our maven libs here:
./lib/ruby/gems/shared/gems/ruby-maven-libs-3.1.1/<a lot of maven jars>

- ???
./lib/ruby/gems/shared/gems/thread_safe-0.3.4-java/lib/thread_safe/jruby_cache_backend.jar

- JRuby's OpenSSL gem (https://github.com/jruby/jruby-openssl):
./lib/ruby/shared/jopenssl.jar

- https://rubygems.org/gems/json/versions/1.8.0-java
./lib/ruby/shared/json/ext/parser.jar
./lib/ruby/shared/json/ext/generator.jar

- https://rubygems.org/gems/krypt-provider-jdk/versions/0.0.2
./lib/ruby/shared/kryptproviderjdk.jar

- https://rubygems.org/gems/krypt-core/versions/0.0.2-universal-java
./lib/ruby/shared/kryptcore.jar


Version-Release number of selected component (if applicable):
jruby-1.7.19-1.fc23

How reproducible:
100%

Steps to Reproduce:
1. # yum install jruby
2. $ irb-jruby
irb(main):001:0> require 'openssl'

Actual results:
LoadError: no such file to load -- jopenssl/load
<...stacktrace...>

Expected results:
=> true

Comment 1 Filippo Rossoni 2015-05-10 23:15:00 UTC
this bug is also present on fedora 22

Comment 2 Michal Srb 2015-05-11 07:03:00 UTC
Thanks for pointing this out Filippo.

Comment 3 Michal Srb 2015-05-14 08:58:47 UTC
(In reply to Michal Srb from comment #0)

> - ???
> ./lib/ruby/gems/shared/gems/thread_safe-0.3.4-java/lib/thread_safe/
> jruby_cache_backend.jar

We have rubygem-thread_safe package in Fedora, we just don't build Jar extension (because JRuby is broken). It should be possible to build *.java classes manually, using good old-fashioned "javac".

Comment 4 Michal Srb 2015-05-25 14:53:57 UTC
Just for the record, latest jruby 1.7.20 doesn't include krypt, so kryptcore.jar and kryptproviderjdk.jar are no longer needed.

Comment 5 Fedora End Of Life 2016-07-19 12:55:50 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.