Bug 1556732

Summary: rdoc crashes when expression contains embedded comment: no implicit conversion of nil into String (TypeError)
Product: [Fedora] Fedora Reporter: Dan Callaghan <dcallagh>
Component: rubygem-rdocAssignee: Vít Ondruch <vondruch>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: mmorsi, strzibny, vondruch
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: rubygem-rdoc-6.0.2-1.fc29 rubygem-rdoc-6.0.2-1.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-30 13:16: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:
Bug Depends On: 1528846    
Bug Blocks: 1556412    

Description Dan Callaghan 2018-03-15 07:14:41 UTC
Description of problem:
This crash happens during the rdoc build of the rubygem-sup package which causes it to FTBFS (bug 1556412). See that bug for a complete stack trace.

This is also filed upstream as:

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

How reproducible:
somewhat easily

Steps to Reproduce:
see minimal reproducer in https://github.com/ruby/rdoc/issues/585#issuecomment-357513625

Actual results:
error generating Redwood/ThreadViewMode.html: no implicit conversion of nil into String (TypeError)

Expected results:
should produce docs successfully

Additional info:
According to the upstream issue, a fix is merged to master but not in any release yet:

Comment 1 Vít Ondruch 2018-03-19 11:41:57 UTC
Hi Dan,

Thx for the analysis and report of this issue. I'll try to get back to it, but meanwhile, I asked Ruby upstream to backport the fix.

Comment 2 Vít Ondruch 2018-03-22 11:14:51 UTC
SHould be resolved now, since I was able to scratch build rubygem-sup

Comment 3 Dan Callaghan 2018-03-22 22:50:40 UTC
Thanks! It is indeed fixed in rawhide.

But this bug actually exists in F28 as well, with rubygem-rdoc-5.1.0-3.fc28. Sorry, I should have filed it against F28 in the first place. Is it possible to backport this fix to F28?

Comment 4 Fedora Update System 2018-03-23 09:25:08 UTC
rubygem-rdoc-6.0.2-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c20ac1671a

Comment 5 Vít Ondruch 2018-03-23 09:27:43 UTC
I submitted the update and override for F28:

$ bodhi overrides save rubygem-rdoc-6.0.2-1.fc28 --notes "Needed by rubygem-sup"
  Submitter: vondruch
  Expiration Date: 2018-03-30 09:26:01
  Notes: Needed by rubygem-sup
  Expired: False

Use the following to ensure the override is active:

	$ koji wait-repo f28-build --build=rubygem-rdoc-6.0.2-1.fc28

Comment 6 Fedora Update System 2018-03-23 14:45:51 UTC
rubygem-rdoc-6.0.2-1.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-c20ac1671a

Comment 7 Dan Callaghan 2018-03-25 22:45:08 UTC

Comment 8 Fedora Update System 2018-03-30 13:16:00 UTC
rubygem-rdoc-6.0.2-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.