Bug 1219502

Summary: jgrep missing dependency?
Product: [Fedora] Fedora Reporter: James Patterson <jamespatterson>
Component: rubygem-jgrepAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: lkundrak, lrintel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-jgrep-1.3.3-5.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-13 19:08:01 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:

Description James Patterson 2015-05-07 13:42:35 UTC
Description of problem:
# dnf install rubygem-jgrep

# date | jgrep -s a.b
Ignoring json-1.8.2 because its extensions are not built.  Try: gem pristine json --version 1.8.2
LoadError: no such file to load -- json/pure
  require at org/jruby/RubyKernel.java:1071
  require at /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54
     JSON at /usr/share/gems/gems/json-1.8.2/lib/json.rb:60
   (root) at /usr/share/gems/gems/json-1.8.2/lib/json.rb:54
  require at org/jruby/RubyKernel.java:1071
   (root) at /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:1
  require at /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54
  require at org/jruby/RubyKernel.java:1071
   (root) at /usr/share/gems/gems/jgrep-1.3.3/lib/jgrep.rb:6
   (root) at /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:1
     load at org/jruby/RubyKernel.java:1087
   (root) at /usr/bin/jgrep:23

# dnf install rubygen-json_pure

# date | jgrep -s a.b
Ignoring json-1.8.2 because its extensions are not built.  Try: gem pristine json --version 1.8.2
Error. Invalid JSON given
Error - undefined method `first' for nil:NilClass


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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 James Patterson 2015-05-07 14:01:42 UTC
jq works.

Comment 2 Lubomir Rintel 2015-05-07 14:20:09 UTC
That is because jruby is too stupid and doesn't work with native extensions.

Suggested fix: dnf -y install ruby && dnf -y remove jruby
Alternative fix: dnf -y install rubygem-json_pure

I'm going to add a dependency to Fedora 22 package.

Comment 3 Fedora Update System 2015-05-07 14:23:55 UTC
rubygem-jgrep-1.3.3-5.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/rubygem-jgrep-1.3.3-5.fc22

Comment 4 Fedora Update System 2015-05-10 23:39:27 UTC
Package rubygem-jgrep-1.3.3-5.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rubygem-jgrep-1.3.3-5.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-7939/rubygem-jgrep-1.3.3-5.fc22
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-07-13 19:08:01 UTC
rubygem-jgrep-1.3.3-5.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.