Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96862 - ruby.eclass copies documentation incorrectly under Mac OS X
Summary: ruby.eclass copies documentation incorrectly under Mac OS X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Mac OSX (show other bugs)
Hardware: PPC OS X
: High blocker
Assignee: Gentoo for Mac OS X
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 96866
  Show dependency tree
 
Reported: 2005-06-23 07:30 UTC by Douglas Creager
Modified: 2006-04-12 10:53 UTC (History)
1 user (show)

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


Attachments
Proposed fix (ruby-eclass.patch,418 bytes, patch)
2005-06-23 07:32 UTC, Douglas Creager
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Creager 2005-06-23 07:30:32 UTC
The ruby.eclass file assumes that it has a GNU version of the cp command.  Therefore, trying to install a 
ruby package that contains examples documentation will fail when ebuild tries to execute "cp -a".  
(Rubygems is an example of such a package.)

Reproducible: Always
Steps to Reproduce:
1. emerge rubygems

Actual Results:  
Failure during the install phase of the ebuild:

 * running dodoc for ruby ;)
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory



Expected Results:  
Correctly installed and merged the package.
Comment 1 Douglas Creager 2005-06-23 07:32:38 UTC
Created attachment 61783 [details, diff]
Proposed fix

This modification to ruby.eclass is more portable.  It's not techinically
equivalent, but I doubt that any ruby documentation will contain hard links. ;)
Comment 2 Hasan Khalil (RETIRED) gentoo-dev 2005-06-27 18:40:00 UTC
Ruby herd: What do you think?
Comment 3 Caleb Tennis (RETIRED) gentoo-dev 2005-06-28 05:44:48 UTC
Is this not a problem in a whole bunch of ebuilds, moreso than just ruby?  I 
would think a more global approach might be a slightly better way to tackle it, 
but from a purely local point I think it's fine. 
Comment 4 Hasan Khalil (RETIRED) gentoo-dev 2005-07-07 17:56:24 UTC
(In reply to comment #3)
> Is this not a problem in a whole bunch of ebuilds, moreso than just ruby?  I 
> would think a more global approach might be a slightly better way to tackle it, 

Currently, the official stance is to correct any instances of this problem using the proposed fix (see 
patch).

> but from a purely local point I think it's fine.

Fixed in CVS. Thanks. :)