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

Bug 268866

Summary: Global gemrc doesn't know about prefixed path to /etc
Product: Gentoo/Alt Reporter: Sven Schwyn (svoop) <gentoo>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sven Schwyn (svoop) 2009-05-06 21:39:58 UTC
The path to the global gemrc file is hardcoded as "/etc" here...

Ruby 1.8 with rubygems-1.3.1:
{$EPREFIX}/usr/lib/ruby/site_ruby/1.8/rubygems/config_file.rb (line 44)

Ruby 1.9.1:
{$EPREFIX}/usr/lib/ruby19/1.9.1/rubygems/config_file.rb (line 44)

> rescue LoadError
>   '/etc'
> end

Reproducible: Always

Steps to Reproduce:



Expected Results:  
This hardcoded "/etc" will cause trouble if the patch suggested in bug #268857 is adopted.
Comment 1 Fabian Groffen gentoo-dev 2009-06-14 08:45:18 UTC
hmmm, does this mean ruby-1.9 includes rubygems?
Comment 2 Fabian Groffen gentoo-dev 2009-06-14 08:51:06 UTC
I fixed it for rubygems-1.3.3 now
Comment 3 Fabian Groffen gentoo-dev 2009-06-14 09:07:26 UTC
ruby 1.9.1 doesn't compile for me, so I can't fix it.
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-01-27 15:32:48 UTC
The ruby stuff has recently undergone some churn in gentoo. Please re-open with specific details if there is still a problem. Thanks for understanding.