Description of problem: JRuby doesn't work Version-Release number of selected component (if applicable): jruby-1.7.2-5.fc21.noarch How reproducible: Always Steps to Reproduce: 1. start irb-jruby 2. 3. Actual results: OptoFactory.java:109:in `<clinit>': java.lang.NoClassDefFoundError: org/objectweb/asm/Opcodes from Ruby.java:4549:in `<init>' from Ruby.java:280:in `newInstance' from Main.java:262:in `internalRun' from Main.java:221:in `run' from Main.java:201:in `main' Expected results: JRuby's irb gets started Additional info: $ rpm -qa |grep objectweb objectweb-asm-5.0.2-2.fc21.noarch
Any comments?
(In reply to Aaron Lu from comment #1) > Any comments? Well, JRuby is currently not in best shape. There is some work remaining somebody should pick up to have JRuby in good condition again: https://lists.fedoraproject.org/pipermail/ruby-sig/2014-December/001711.html
(In reply to Vít Ondruch from comment #2) > (In reply to Aaron Lu from comment #1) > > Any comments? > > Well, JRuby is currently not in best shape. There is some work remaining > somebody should pick up to have JRuby in good condition again: > > https://lists.fedoraproject.org/pipermail/ruby-sig/2014-December/001711.html Good to know this, thanks.
*** Bug 1177915 has been marked as a duplicate of this bug. ***
Dan Allen (mojavelinux) recently pointed out to me the issue with jruby, and a patch. On Wed, Dec 31, 2014 at 3:38 AM, Dan Allen <dan.j.allen> wrote: > In fact, there are two errors in the /usr/bin/jruby script. First, it is > referring to asm3 jars, when it should be asm (without the number). Second, > there is a missing delimiter in the classpath. > > Here's what it is setting the classpath to: > > /usr/share/jruby/lib/jruby.jar/usr/share/java/bcmail.jar:/usr/share/java/bcprov.jar:/usr/share/java/bsf.jar:/usr/share/java/bytelist.jar:/usr/share/java/felix/org.osgi.core.jar:/usr/share/java/invokebinder.jar:/usr/share/java/jansi/jansi.jar:/usr/share/java/jcodings.jar:/usr/lib/java/jffi.jar:/usr/share/java/jna.jar:/usr/share/java/jnr-constants.jar:/usr/share/java/jnr-enxio.jar:/usr/share/java/jnr-ffi.jar:/usr/share/java/jnr-netdb.jar:/usr/share/java/jnr-posix.jar:/usr/share/java/jnr-unixsocket/jnr-unixsocket.jar:/usr/share/java/joda-time.jar:/usr/share/java/joni.jar:/usr/share/java/jzlib.jar:/usr/share/java/nailgun.jar:/usr/share/java/snakeyaml.jar:/usr/share/java/yydebug.jar:/usr/share/java/yecht.jar:/usr/share/java/jruby.jar:/usr/share/java/jruby-yecht.jar > > Here's what it should be: > > /usr/share/jruby/lib/jruby.jar:/usr/share/java/objectweb-asm/asm.jar:/usr/share/java/objectweb-asm/asm-util.jar:/usr/share/java/objectweb-asm/asm-debug-all.jar:/usr/share/java/objectweb-asm/asm-tree.jar:/usr/share/java/objectweb-asm/asm-util.jar:/usr/share/java/objectweb-asm/asm-xml.jar:/usr/share/java/objectweb-asm/asm-analysis.jar:/usr/share/java/objectweb-asm/asm.jar:/usr/share/java/objectweb-asm/asm-all.jar:/usr/share/java/objectweb-asm/asm-commons.jar:/usr/share/java/objectweb-asm/asm-commons.jar:/usr/share/java/objectweb-asm/asm-analysis.jar:/usr/share/java/objectweb-asm/asm-tree.jar:/usr/share/java/bcmail.jar:/usr/share/java/bcprov.jar:/usr/share/java/bsf.jar:/usr/share/java/bytelist.jar:/usr/share/java/felix/org.osgi.core.jar:/usr/share/java/invokebinder.jar:/usr/share/java/jansi/jansi.jar:/usr/share/java/jcodings.jar:/usr/lib/java/jffi.jar:/usr/share/java/jna.jar:/usr/share/java/jnr-constants.jar:/usr/share/java/jnr-enxio.jar:/usr/share/java/jnr-ffi.jar:/usr/share/java/jnr-netdb.jar:/usr/share/java/jnr-posix.jar:/usr/share/java/jnr-unixsocket/jnr-unixsocket.jar:/usr/share/java/joda-time.jar:/usr/share/java/joni.jar:/usr/share/java/jzlib.jar:/usr/share/java/nailgun.jar:/usr/share/java/snakeyaml.jar:/usr/share/java/yydebug.jar:/usr/share/java/yecht.jar:/usr/share/java/jruby.jar:/usr/share/java/jruby-yecht.jar > > Here's the patch for /usr/bin/jruby > > https://gist.github.com/mojavelinux/1716e8c158358cf68664 > > -Dan
With the exception of invokebinder (lacking perms), and joda-timezones / test-polyglot-ruby the dependencies from [1] have been updated in rawhide to the required versions. Next up would be to continue resolving the required dependencies and updating the spec to work in a rawhide build. Will try to get to it later this week if I have the cycles (anyone is free to pickup any of this in the meantime) -Mo [1] https://mmorsi.fedorapeople.org/jruby/jruby-deps
(In reply to Mo Morsi from comment #6) > With the exception of invokebinder (lacking perms) You have them now ;)
(In reply to Mo Morsi from comment #6) > > Next up would be to continue resolving the required dependencies and > updating the spec to work in a rawhide build. Will try to get to it later > this week if I have the cycles (anyone is free to pickup any of this in the > meantime) > > -Mo > > [1] https://mmorsi.fedorapeople.org/jruby/jruby-deps Would it be possible to commit current work-in-progress jruby spec to rawhide? I have a few packages which BuildRequire jruby, so I would be willing to put some effort into it (at least make it buildable in rawhide).
Sorry for the slow progress on this, am juggling a few things atm. The spec is very much still a work in progress so would rather not commit it but attached the current revision and supporting patches to this ticket. Feel free to make further revisions or start from scratch if that'd be simpler for you. Thanks for looking at it!
Created attachment 992760 [details] jruby.spec
Created attachment 992761 [details] jruby-remove-tasks-with-missing-deps.patch
Created attachment 992762 [details] jruby-fix-shebangs.patch
Created attachment 992763 [details] jruby-build-hack.patch
This message is a reminder that Fedora 21 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 21. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '21'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 21 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 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.