Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277630 - dev-ruby/rcairo-1.8.0-r1 "gem rdoc rcairo" fails due to missing directory
Summary: dev-ruby/rcairo-1.8.0-r1 "gem rdoc rcairo" fails due to missing directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-13 10:14 UTC by Roy Wright
Modified: 2010-08-08 12:54 UTC (History)
0 users

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 Roy Wright 2009-07-13 10:14:13 UTC
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
Comment 1 Hans de Graaff gentoo-dev Security 2009-07-14 16:40:24 UTC
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.
Comment 2 Roy Wright 2009-07-14 18:52:15 UTC
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)

Comment 3 Hans de Graaff gentoo-dev Security 2009-07-14 18:57:40 UTC
(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. :-)
Comment 4 Roy Wright 2009-07-14 19:17:26 UTC
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.
Comment 5 Hans de Graaff gentoo-dev Security 2010-08-08 12:54:08 UTC
This should be fixed with rcairo-1.8.1-r1 which installs its files in the gems directory.