Michael S. Gilbert dijo [Sun, Aug 09, 2009 at 11:58:04PM -0400]:
> > I tried testgem downloaded from 
> > http://bugs.gentoo.org/show_bug.cgi?id=278566.
> > 
> > % sudo gem install testgem-0.0.1.gem
> > Successfully installed testgem-0.0.1
> > 1 gem installed
> > Installing ri documentation for testgem-0.0.1...
> > File not found: lib
> > 
> > (I think that making document files causes this error.)
> > 
> > % ls /var/lib/gems/1.8/bin/less
> > /var/lib/gems/1.8/bin/less
> > 
> > 
> > So, /usr/bin/less is not overwritten.
> > Debian's RubyGems is patched to replace the upstream's indiscriminate 
> > default
> > directory.
> 
> ok, but when you run 'less', does that run /usr/bin/less
> or /var/lib/gems/1.8/bin/less?  if it is the latter, then there is
> definately a problem here.

No, Debian's path does not include /var/lib/*/bin - The default paths,
set by /etc/profile, read:


if [ "`id -u`" -eq 0 ]; then
  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
  PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
fi

Requiring rubygems does not change it, even from within Ruby:

$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> system 'echo $PATH'
/usr/local/bin:/usr/bin:/bin:/usr/games
=> true

So I think this bug does not bite us.

-- 
Gunnar Wolf • gw...@gwolf.org • (+52-55)5623-0154 / 1451-2244



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to