Bug 1475253

Summary: ri cannot find documentation data for current ruby distribution
Product: [Fedora] Fedora Reporter: Francesco Giancane <francescogiancane8>
Component: rubygemsAssignee: Jeroen van Meeuwen <vanmeeuwen+fedora>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 26CC: mastahnke, mtasaka, s, vanmeeuwen+fedora, vondruch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-07-26 11:13:00 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:
Attachments:
Description Flags
sample outputs from ri String
none
tar of files failing.log and success.log none

Description Francesco Giancane 2017-07-26 09:46:38 UTC
Created attachment 1304672 [details]
sample outputs from ri String

Description of problem: The 'ri' command of the standard Ruby distribution fails, saying it is not possible to find documentation data. 

The standard Ruby distribution has been installed using dnf.

The problem is to be found in the ruby-doc sub package: documentation data is installed in the /usr/share/ri/system root folder, while it should be installed in /usr/share/ri/${RUBY_VERSION}/system root folder.

The ruby-doc SPECFILE should be modified accordingly in order to fix this issue.


Version-Release number of selected component (if applicable): 
[fgiancane8@saturno ~]$ dnf info ruby-doc
Ultima verifica della scadenza dei metadati: 11:29:52 fa il mer 26 lug 2017 00:04:47 CEST.
Pacchetti installati
Nome         : ruby-doc
Versione     : 2.4.1
Rilascio     : 79.fc26
Arch         : noarch
Dim.         : 24 M
Sorgente     : ruby-2.4.1-79.fc26.src.rpm
Repo         : @System
Dal repo     : fedora
Sommario     : Documentation for ruby
URL          : http://ruby-lang.org/
Licenza      : (Ruby or BSD) and Public Domain and MIT and CC0 and zlib and UCD
Descrizione  : This package contains documentation for ruby.

How reproducible: Always reproducible 


Steps to Reproduce:
1. Install standard Ruby distribution (sudo dnf install rubygems ruby ruby-doc 
2. Ask for documentation (e.g. ri String), verifying that nothing is found (see attachment)
3. Use the 'ri --list-doc-dirs' to verify the documentation search path.
4. Verify that the system entry of the previous command does not exist.
5. As a workaround, it is possible to create a dummy folder in /usr/share/ri, containing a symlink to the ruby-doc content, to replicate this structure:

/usr/share/ri/system

/usr/share/ri/2.4.0/system -> ../system

In this way ri happily finds all the documentation required (and installed).

Actual results:
ri cannot find any standard documentation installed in the search path, even if available.


Expected results:
ri should find and report installed documentation in the search path as available.


Additional info:
The example output of 'ri String' command is redirected onto the files attached. Failing.log is when ri does not find any doc, success.log is when it is found, just after creating the dummy folder with the symbolic link.

Comment 1 Francesco Giancane 2017-07-26 09:51:44 UTC
Created attachment 1304674 [details]
tar of files failing.log and success.log

Comment 2 Mamoru TASAKA 2017-07-26 11:13:00 UTC

*** This bug has been marked as a duplicate of bug 1458131 ***