Bug 2210326

Summary: Fix rdoc parsing of nil text tokens
Product: Red Hat Enterprise Linux 8 Reporter: Todd Zullinger <tmz>
Component: rubyAssignee: Jarek Prokop <jprokop>
Status: VERIFIED --- QA Contact: Lukáš Zachar <lzachar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, jaruga, jprokop, jwboyer, pvalena
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ruby-2.5-8090020230627084142.b46abd14 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Todd Zullinger 2023-05-26 15:28:05 UTC
With ruby < 2.6.0 / rdoc < 6.0.2, rdoc fails to parse valid ruby code, resulting in build failures.  An example is asciidoctor > 2.0.15 (though 2.0.20, currently)

While attempting to build asciidoctor-2.0.20 for Fedora and RHEL+EPEL releases, I ran into the following error on RHEL+EPEL 8:

    Installing ri documentation for asciidoctor-2.0.20
    Installing darkfish documentation for asciidoctor-2.0.20
    ERROR:  While executing gem ... (RDoc::Error)
        error generating Asciidoctor/Converter/ManPageConverter.html: no implicit conversion of nil into String (TypeError)

I have reported this upstream as well:

    https://github.com/asciidoctor/asciidoctor/issues/4462

I will submit a merge request to backport the small rdoc fix.

Comment 1 Jun Aruga 2023-05-29 10:13:13 UTC
Note the PR is <https://gitlab.com/redhat/centos-stream/rpms/ruby/-/merge_requests/15>.

Comment 6 Jarek Prokop 2023-07-10 07:30:39 UTC
Fix included with CVE backports in MR: https://gitlab.com/redhat/centos-stream/rpms/ruby/-/merge_requests/16