Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93487 - actionmailer 0.9.1: gem has "undefined method `as_href' for nil:NilClass"
Summary: actionmailer 0.9.1: gem has "undefined method `as_href' for nil:NilClass"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
: 106624 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-21 16:56 UTC by Joerg Plate
Modified: 2005-09-22 19:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Plate 2005-05-21 16:56:36 UTC
see Summary...


Reproducible: Always
Steps to Reproduce:
1.emerge actionmailer


Actual Results:  
>>> Install actionmailer-0.9.1 into /var/tmp/portage/actionmailer-0.9.1/image/
category dev-ruby
Attempting local installation of '/usr/portage/distfiles/actionmailer-0.9.1'
Successfully installed actionmailer, version 0.9.1
Installing RDoc documentation for actionmailer-0.9.1...
ERROR:  While executing gem ... (NoMethodError)
    undefined method `as_href' for nil:NilClass

!!! ERROR: dev-ruby/actionmailer-0.9.1 failed.
!!! Function gems_src_install, Line 53, Exitcode 1
Comment 1 Rob Cakebread (RETIRED) gentoo-dev 2005-05-21 18:39:25 UTC
What version of rubygems do you have emerged?
Does it fail if you install it without the ebuild:
gem update actionmailer
Comment 2 Joerg Plate 2005-05-21 19:56:56 UTC
rubygems is 0.8.10 (which i just removed and installed it again).

activerecord-1.10.1 has the same problem.

i'll try to install it with gem if you promise that "gem uninstall" works
and it doesn't pollute the system so that ebuilds fail...

1> gem install actionmailer
Attempting local installation of 'actionmailer'
Local gem file not found: actionmailer*.gem
Attempting remote installation of 'actionmailer'
Successfully installed actionmailer-0.9.1
Installing RDoc documentation for actionmailer-0.9.1...
ERROR:  While executing gem ... (NoMethodError)
    undefined method `as_href' for nil:NilClass
Comment 3 David Baird 2005-07-12 08:38:30 UTC
I am having the same problem with activerecord-1.9.1 and rubygems-0.8.10.
Comment 4 David Baird 2005-07-19 15:59:17 UTC
Possible fix:

emerge -C rdoc
emerge activerecord actionmailer

Without dev-ruby/rdoc-0.9.0 installed, I was able to emerge activerecord,
actionmailer (and everything else that rails wants) on both AMD64 and x86.  With
rdoc, this fails on x86.
Comment 5 b serviss 2005-07-22 20:25:14 UTC
(In reply to comment #4) 
> Possible fix: 
>  
> emerge -C rdoc 
 
Looking at the RDoc homepage ( http://sourceforge.net/projects/rdoc/ ), this 
project has been incorporated into Ruby Core. 
Could this be causing the problem? 
 
Comment 6 Caleb Tennis (RETIRED) gentoo-dev 2005-09-22 17:48:33 UTC
*** Bug 106624 has been marked as a duplicate of this bug. ***
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2005-09-22 17:58:10 UTC
I've committed a fix to gems.eclass which should make you unmerge dev-ruby/rdoc before installing any 
gems package (since ruby 1.8.2 is a prerequisite anyway)
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2005-09-22 19:07:39 UTC
believe it to be fixed now