Bug 1565960

Summary: Missing rpm dependency - rubygem-json
Product: [Fedora] Fedora Reporter: ryan
Component: rubygem-rdocAssignee: Vít Ondruch <vondruch>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 27CC: luisroca, mo, mtasaka, pvalena, s, strzibny, vanmeeuwen+fedora, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-rdoc-6.0.3-2.fc28 rubygem-rdoc-5.1.0-3.fc26 rubygem-rdoc-5.1.0-3.fc27 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-15 02:39:48 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 ryan 2018-04-11 07:41:23 UTC
Description of problem:

If I install ruby I don't get the rubygem-json dependency installed. According to https://stdgems.org the json gem should be a part of a default ruby installation.


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

ruby-2.4.3-87.fc26.src.rpm

How reproducible:

Install ruby, start a ruby shell and try to require json.

Steps to Reproduce:
1. dnf install ruby -y
2. irb
3. require 'json'

Actual results:

LoadError: cannot load such file -- json

Expected results:

True. It should work.


Additional info:

Comment 1 Vít Ondruch 2018-04-11 10:34:54 UTC
Thx for the report.

This is interesting issue. Historically, we unbundled json from Ruby into independent package and json was optional package. However, if you install Ruby, it always get installed via transitive dependencies, specifically RDoc depends on it. Unfortunately, while RDoc still depends on json, it seems that RDoc upstream decided to drop the explicit dependency specification and hence it is now missing in the rubygem-rdoc.

Comment 2 Fedora Update System 2018-04-11 13:30:03 UTC
rubygem-rdoc-6.0.3-2.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-06bc836386

Comment 3 Fedora Update System 2018-04-11 13:40:34 UTC
rubygem-rdoc-5.1.0-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-d5e9118e82

Comment 4 Fedora Update System 2018-04-11 13:49:40 UTC
rubygem-rdoc-5.1.0-3.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-49c0409931

Comment 5 Fedora Update System 2018-04-11 22:04:41 UTC
rubygem-rdoc-5.1.0-3.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-49c0409931

Comment 6 Fedora Update System 2018-04-11 22:40:04 UTC
rubygem-rdoc-5.1.0-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-d5e9118e82

Comment 7 Fedora Update System 2018-04-11 22:59:24 UTC
rubygem-rdoc-6.0.3-2.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-06bc836386

Comment 8 Luis 2018-04-13 21:14:28 UTC
Description of problem: rdoc not found while on system when called from command line


rubygem-rdoc-5.1.0-3.fc27


How reproducible: 
Every time


Steps to Reproduce:
1. Check that rdoc is installed 
2. type `rdoc --help` in command line
3.

Actual results:
/usr/share/rubygems/rubygems.rb:271:in `find_spec_for_exe': can't find gem rdoc (>= 0.a) (Gem::GemNotFoundException)
[lroca@localhost ~]$ from /usr/share/rubygems/rubygems.rb:299:in `activate_bin_path'


Expected results:
Produce Help docs


Additional info:
x86_64

Comment 9 Fedora Update System 2018-04-15 02:39:48 UTC
rubygem-rdoc-6.0.3-2.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Vít Ondruch 2018-04-16 13:32:38 UTC
(In reply to Luis from comment #8)
I am not able to reproduce with "rdoc --help". What are the steps to reproduce?

Comment 11 Luis 2018-04-16 16:10:43 UTC
(In reply to Vít Ondruch from comment #10)
> (In reply to Luis from comment #8)
> I am not able to reproduce with "rdoc --help". What are the steps to
> reproduce?

In f27, launch terminal, enter `rdoc --help`. Result: "Can't find gem rdoc".

Comment 12 Vít Ondruch 2018-04-17 05:24:25 UTC
I am doing this:

~~~
$ mock -r fedora-27-x86_64 --scrub all
$ mock -r fedora-27-x86_64 -i https://kojipkgs.fedoraproject.org//packages/rubygem-rdoc/5.1.0/3.fc27/noarch/rubygem-rdoc-5.1.0-3.fc27.noarch.rpm
$ mock -r fedora-27-x86_64 shell --unpriv
$ rdoc --help
~~~

And this works just fine. Must be something on your system.

Could you please provide "gem list" output? Or executing the rdoc command like this "RUBYOPT=-d rdoc --help" could give us some hint.

Comment 13 Luis 2018-04-19 16:03:24 UTC
It was my use of RVM which I have since `imploded` and removed all traces.

`rdoc -help` now works as expected.

Comment 14 Vít Ondruch 2018-04-20 07:27:44 UTC
Glad it worked for you. Thx for feedback.

Comment 15 Fedora Update System 2018-04-21 03:02:51 UTC
rubygem-rdoc-5.1.0-3.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2018-04-21 03:39:31 UTC
rubygem-rdoc-5.1.0-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.