Bug 1190847 - the rhc command doesn't work at all on F21
Summary: the rhc command doesn't work at all on F21
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rubygem-rhc
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Guillermo Gómez
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-09 18:38 UTC by Vratislav Podzimek
Modified: 2015-02-21 04:24 UTC (History)
3 users (show)

Fixed In Version: rubygem-rhc-1.34.2-1.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-21 04:24:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vratislav Podzimek 2015-02-09 18:38:15 UTC
Description of problem:
$ rhc --version
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'


Version-Release number of selected component (if applicable):
rubygem-rhc-1.32.2-1.fc21.noarch

How reproducible:
100 %

Steps to Reproduce:
1. $ rhc --version

Actual results:
Java exception

Expected results:
version printed out

Comment 1 Troy Dawson 2015-02-09 19:37:35 UTC
I am able to reproduce this command *only* if I install jruby and remove ruby.  Evidently rubygem-rhc will not work with jruby.

I believe we will have to specify 

  Requires: ruby

in the spec file.

Comment 2 Troy Dawson 2015-02-09 19:41:07 UTC
According to the ruby packaging guidelines, if a rubygem package specifically has to require ruby, it is permitted, to add "Requires: ruby" but you should comment why in the spec file.

https://fedoraproject.org/wiki/Packaging:Ruby?rd=Packaging/Ruby#Different_Interpreters_Compatibility

Comment 3 Fedora Update System 2015-02-19 21:49:13 UTC
rubygem-rhc-1.34.2-1.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/rubygem-rhc-1.34.2-1.fc21

Comment 4 Fedora Update System 2015-02-21 04:24:17 UTC
rubygem-rhc-1.34.2-1.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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