Bug 204302 - misc/rubygem-mime-types1: darkfish/page.rhtml: undefined method `chomp' for nil:NilClass (RDoc::Error)
Summary: misc/rubygem-mime-types1: darkfish/page.rhtml: undefined method `chomp' for n...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-ruby (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-05 05:57 UTC by O. Hartmann
Modified: 2016-12-07 19:37 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (ruby)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2015-11-05 05:57:09 UTC
The port misc/rubygem-mime-types1 fails to build on most recent CURRENT:

===>  Staging for rubygem-mime-types1-1.25.1
===>   Generating temporary packing list
(cd /usr/ports/misc/rubygem-mime-types1/work/mime-types-1.25.1; /usr/bin/env LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 RB_USER_INSTALL=yes /usr/local/bin/gem21 install -l --no-update-sources --install-dir /usr/ports/misc/rubygem-mime-types1/work/stage/usr/local/lib/ruby/gems/2.1 --ignore-dependencies --bindir=/usr/ports/misc/rubygem-mime-types1/work/stage/usr/local/bin --rdoc --ri mime-types-1.25.1.gem -- --build-args )
Successfully installed mime-types-1.25.1
Installing ri documentation for mime-types-1.25.1
Installing darkfish documentation for mime-types-1.25.1
ERROR:  While executing gem ... (RDoc::Error)
    error generating /usr/ports/misc/rubygem-mime-types1/work/stage/usr/local/lib/ruby/gems/2.1/doc/mime-types-1.25.1/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
Comment 1 gessel 2015-12-17 17:34:10 UTC
===>>> All >> rubygem-actionmailer-3.2.22 >> rubygem-mail25-2.5.4_1,2 >> rubygem-mime-types1-1.25.1 (79/145)

===>  Cleaning for rubygem-mime-types1-1.25.1
===>  License ART20 GPLv2 GPLv3 MIT accepted by the user
===>   rubygem-mime-types1-1.25.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by rubygem-mime-types1-1.25.1 for building
===>  Extracting for rubygem-mime-types1-1.25.1
=> SHA256 Checksum OK for rubygem/mime-types-1.25.1.gem.
===>   rubygem-mime-types1-1.25.1 depends on file: /usr/local/bin/gem21 - found
===>   rubygem-mime-types1-1.25.1 depends on file: /usr/local/bin/ruby21 - found
Unpacked gem: '/var/ports/usr/ports/misc/rubygem-mime-types1/work/mime-types-1.25.1'
===>  Patching for rubygem-mime-types1-1.25.1
===>   rubygem-mime-types1-1.25.1 depends on file: /usr/local/bin/ruby21 - found
===>   rubygem-mime-types1-1.25.1 depends on file: /usr/local/bin/gem21 - found
===>   rubygem-mime-types1-1.25.1 depends on file: /usr/local/bin/ruby21 - found
===>  Configuring for rubygem-mime-types1-1.25.1
===>  Building for rubygem-mime-types1-1.25.1
  Successfully built RubyGem
  Name: mime-types
  Version: 1.25.1
  File: mime-types-1.25.1.gem
===>  Staging for rubygem-mime-types1-1.25.1
===>   Generating temporary packing list
(cd /var/ports/usr/ports/misc/rubygem-mime-types1/work/mime-types-1.25.1; /usr/bin/env LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_CTYPE=UTF-8 RB_USER_INSTALL=yes /usr/local/bin/gem21 install -l --no-update-sources --install-dir /var/ports/usr/ports/misc/rubygem-mime-types1/work/stage/usr/local/lib/ruby/gems/2.1 --ignore-dependencies --bindir=/var/ports/usr/ports/misc/rubygem-mime-types1/work/stage/usr/local/bin --rdoc --ri mime-types-1.25.1.gem -- --build-args )
Successfully installed mime-types-1.25.1
Installing ri documentation for mime-types-1.25.1
Installing darkfish documentation for mime-types-1.25.1
ERROR:  While executing gem ... (RDoc::Error)
    error generating /var/ports/usr/ports/misc/rubygem-mime-types1/work/stage/usr/local/lib/ruby/gems/2.1/doc/mime-types-1.25.1/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/misc/rubygem-mime-types1

===>>> make stage failed for misc/rubygem-mime-types1
===>>> Aborting update

===>>> Update for rubygem-mime-types1-1.25.1 failed
===>>> Aborting update

===>>> Update for rubygem-mail25-2.5.4_1,2 failed
===>>> Aborting update

===>>> Update for mail/rubygem-actionmailer failed
===>>> Aborting update

FreeBSD 10.1-RELEASE (AMD10.1) #0 r292130: Sat Dec 12 22:37:08 PST 2015
ruby-2.1.7,1
ruby21-gems-2.5.0
Comment 2 gessel 2015-12-17 17:50:25 UTC
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 /var/ports/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
Comment 3 Michael Moll freebsd_committer freebsd_triage 2015-12-17 17:58:36 UTC
please see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204083#c2 - does deinstalling that rdoc package resolve this?
Comment 4 gessel 2015-12-17 18:18:50 UTC
Following this:  https://github.com/rails/rails/issues/9590

I executed 
# rdoc --exclude='.dat' activesupport/lib

But then also (before testing, sorry):

# gem install rubygems-update
# update_rubygems 

This seems to have resolved the issue building documentation.
Comment 5 O. Hartmann 2015-12-20 09:05:08 UTC
Thanks. The problem seems to be solved by the method shown above. I have no idea how to prevent a crash of an update when done automatically, so far.

Kind regards,

oh
Comment 6 darkart 2016-01-06 18:46:45 UTC
I was able to get past this error by uninstalling rubygem-rdoc3-3.12.2 and installing rubygem-rdoc-4.2.1.  Note that some ports call for rubygem-rdoc3 - for my needs I was able to adjust the Makefiles to use rubygem-rdoc in place of rubygem-rdoc4.
Comment 7 Steve Wills freebsd_committer freebsd_triage 2016-12-07 19:37:18 UTC
Indeed, this is because the rubygem-rdoc3 port is installed. Uninstall it is the only solution. Now that rails3 is deprecated, nothing should be pulling in rdoc3 so it can go away soon too. Closing issue.