Bug 204083

Summary: devel/rubygem-json_pure: fails to finish installation due to error
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: freebsd-ruby (Nobody) <ruby>
Status: Closed Overcome By Events    
Severity: Affects Many People CC: mmoll, mose, swills
Priority: --- Keywords: needs-patch, needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (ruby)
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204302

Description O. Hartmann 2015-10-28 05:08:20 UTC
The port compiles so far but fails the final state of installing its documentation.

[...]
Successfully installed json_pure-1.8.3
Installing ri documentation for json_pure-1.8.3
Installing darkfish documentation for json_pure-1.8.3
ERROR:  While executing gem ... (RDoc::Error)
    error generating /usr/ports/devel/rubygem-json_pure/work/stage/usr/local/lib/ruby/gems/2.1/doc/json_pure-1.8.3/rdoc/Rakefile.html: Error while evaluating /usr/local/lib/ruby/gems/2.1/gems/rdoc-3.12.2/lib/rdoc/generator/template/darkfish/page.rhtml: undefined method `chomp' for nil:NilClass (RDoc::Error)
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/rubygem-json_pure

===>>> make stage failed for devel/rubygem-json_pure
===>>> Aborting update
Comment 1 Michael Moll freebsd_committer freebsd_triage 2015-11-02 09:55:40 UTC
I fail to reproduce this. Did it work for json_pure-1.8.2? Are you using any patches to your ports tree? What are the options you're using for lang/ruby21 and devel/ruby-gems?
Comment 2 mose 2015-11-21 01:54:57 UTC
I found a way to reproduce it. It only happens with rdoc 3.12.2 that is in devel/rubygem-rdoc3/

If you don't have that port installed, there is no problem (by default it uses the rdoc bundled in ruby which is on rdoc 4.1.0 version).
Comment 3 O. Hartmann 2016-01-05 06:51:12 UTC
devel/rubygem-rdoc3 seems to be required by www/redmine, which gets installed by some ports.
Comment 4 Steve Wills freebsd_committer freebsd_triage 2016-12-07 19:38:13 UTC
Indeed, this is because the rubygem-rdoc3 port is installed. Uninstall it is the only solution. Redmine no longer requires rdoc3 and now that rails3 is deprecated, nothing should be pulling in rdoc3 so it can go away soon too. Closing issue.