Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 238927 - <=dev-ruby/rubygems-1.3.0 ebuilds want to clobber /usr/bin/ruby19 if ruby-1.9* is installed
Summary: <=dev-ruby/rubygems-1.3.0 ebuilds want to clobber /usr/bin/ruby19 if ruby-1.9...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-28 10:28 UTC by Daniel Anderson
Modified: 2008-10-21 22:02 UTC (History)
0 users

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


Attachments
Suggested fix for rubygems ebuilds (rubygems-1.3.0-r1.patch,32 bytes, patch)
2008-09-28 10:29 UTC, Daniel Anderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Anderson 2008-09-28 10:28:05 UTC
rubygems ebuilds want to clobber the ruby19 interpreter.  Forcing RUBY=/usr/bin/ruby18 seems to fix the issue (note the attached patch).

Reproducible: Always

Steps to Reproduce:
1. Set FEATURES="collision-protect" (so the ebuild bails out and gives you a message saying what will be overwritten)
2. Install ruby-1.9 (in the overlay)
3. emerge rubygems (1.3.0 to at least as low as 1.1.1)

Actual Results:  
* checking 95 files for package collisions
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * package dev-ruby/rubygems-1.2.0 NOT merged
 * 
 * Detected file collision(s):
 * 
 *      /usr/bin/ruby19
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-lang/ruby-1.9.0.2
 *      /usr/bin/ruby19

 * Messages for package dev-ruby/rubygems-1.2.0:

 * Skipping make test/check due to ebuild restriction.
 * RUBYOPT=
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * package dev-ruby/rubygems-1.2.0 NOT merged
 * 
 * Detected file collision(s):
 * 
 *      /usr/bin/ruby19
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-lang/ruby-1.9.0.2
 *      /usr/bin/ruby19

Expected Results:  
Install without clobbering the ruby19 interpreter.
Comment 1 Daniel Anderson 2008-09-28 10:29:58 UTC
Created attachment 166669 [details, diff]
Suggested fix for rubygems ebuilds
Comment 2 Daniel Anderson 2008-10-21 22:02:57 UTC
Um... as someone pointed out on the #gentoo-ruby IRC channel, someone managed the fixes in before me and apparently I didn't notice them in two of the ebuilds.  The problem exists for versions <= 1.2.0, but the newer ones (at least in the ruby overlay) should be fine.