When reformatting all my gem docs after switching from hanna to darkfish, I encountered this problem with rcairo-1.8.0-r1. It appears that rdoc-2.4.3 requires a directory to exist under ruby/gems/1.8/gems. $ sudo gem rdoc rcairo Installing ri documentation for rcairo-1.8.0... ERROR: While executing gem ... (Errno::ENOENT) No such file or directory - /usr/lib/ruby/gems/1.8/gems/rcairo-1.8.0 $ sudo mkdir /usr/lib/ruby/gems/1.8/gems/rcairo-1.8.0 $ sudo gem rdoc rcairo Installing ri documentation for rcairo-1.8.0... Updating ri class cache with 6264 classes... Installing RDoc documentation for rcairo-1.8.0... $ rdoc --version rdoc 2.4.3 $ gem --version 1.3.4 As you can see the work around is to create the /usr/lib/ruby/gems/1.8/gems/rcairo-1.8.0 directory. Reproducible: Always Steps to Reproduce: 1. emerge -1 rcairo 2. gem rdoc rcairo
We no longer install rcairo as a gem so this most likely causes the error. Did you check that the documentation actually gets generated? I can see how creating the empty directory would make the error go away, but I would be surprised if rdoc could actually find the code to create the documentation.
The documentation is not being generated. I'm wondering if the real cause is because the gem specification is being installed? royw@royw-gentoo /usr/lib/ruby/gems/1.8/specifications $ equery belongs rcairo-1.8.0.gemspec * Searching for rcairo-1.8.0.gemspec ... dev-ruby/rcairo-1.8.0-r1 (/usr/lib/ruby/gems/1.8/specifications/rcairo-1.8.0.gemspec)
(In reply to comment #2) > The documentation is not being generated. That makes sense. > I'm wondering if the real cause is because the gem specification is being > installed? Most likely, yes. But if we don't do that then software depending on the gem version won't get installed properly. I'll leave it up to Diego for now to figure out if we want to support this particular functionality when using a fake gemspec, and if so, how. :-)
Thank you. Just for completeness, this issue arose when I was attempting to regenerate all of my rdocs when I was switching template systems (from hanna to darkfish) using "gem rdoc --all". When this problem is hit, the regeneration aborts.
This should be fixed with rcairo-1.8.1-r1 which installs its files in the gems directory.