Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 160809

Summary: sci-geosciences/grass and dev-ruby/rubygems collision in /usr/bin/gem
Product: Gentoo Linux Reporter: Jean-Luc Léger <reiga>
Component: Current packagesAssignee: Steve Arnold <nerdboy>
Status: RESOLVED FIXED    
Severity: normal CC: maris.gis, ruby, sci-geosciences
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jean-Luc Léger 2007-01-08 00:20:33 UTC
After installing the new version of grass, I was surprised to see that the command 'gem' (from ruby) was not responding the way it did before. Of course, since it had been replaced by another program from grass.


Reproducible: Always

Steps to Reproduce:
1. emerge dev-ruby/rubygems
2. emerge sci-geosciences/grass
3. equery b /usr/bin/gem

Actual Results:  
> equery b /usr/bin/gem
[ Searching for file(s) /usr/bin/gem in *... ]
sci-geosciences/grass-6.2.0 (/usr/bin/gem)
dev-ruby/rubygems-0.9.0-r2 (/usr/bin/gem)


Expected Results:  
well, I expect to have the 2 programs at different places or with a different name.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-08 00:22:52 UTC
(In reply to comment #0)
> After installing the new version of grass, I was surprised to see that the
> command 'gem' (from ruby) was not responding the way it did before. 

Hint: stick collision-protect to your FEATURES ;)
Comment 2 Nguyen Thai Ngoc Duy (RETIRED) gentoo-dev 2007-01-26 15:49:37 UTC
What should be the solution for this? Rename either grass' gem or rubygems' gem, or block each other?
Comment 3 Jean-Luc Léger 2007-01-26 19:31:41 UTC
(In reply to comment #2)
> What should be the solution for this? Rename either grass' gem or rubygems'
> gem, or block each other?
> 

not block each other, because I need both grass and rubygems.

this problem is discussed in the grass ML : 
http://www.nabble.com/GRASS-GEM-and-Ruby-GEM-name-collision-t2940004.html
Comment 4 MarisN 2007-01-28 21:08:43 UTC
*** Bug 159969 has been marked as a duplicate of this bug. ***
Comment 5 Steve Arnold archtester gentoo-dev 2007-01-29 02:02:51 UTC
The Grass Extension Manager (gem) is now installed to /usr/grass62/bin, along with all the other grass binaries.  Only the grass62 startup script remains in /usr/bin.  Since Grass tries to manage its own environment, ie, the above Grass bin directory should *not* be in your path, the Ruby gem binary should always be found first.