[DRE-maint] Bug#540610: Bug#540610: rubygems: integrity violation

Michael S. Gilbert michael.s.gilbert at gmail.com
Mon Aug 10 17:37:13 UTC 2009


On Mon, 10 Aug 2009 08:24:06 -0500, Gunnar Wolf wrote:
> 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.

ok, sounds like a non-issue to me then.

mike






More information about the Pkg-ruby-extras-maintainers mailing list