Bug #7509

Error installing gem on clean system

Added by Vit Ondruch over 1 year ago. Updated over 1 year ago.

[ruby-core:50555]
Status:Closed
Priority:Normal
Assignee:Eric Hodel
Category:-
Target version:-
ruby -v:ruby 2.0.0dev (2012-12-04 trunk 38184) [x86_64-linux] Backport:

Description

=begin
I just built and installed fresh Ruby on clean system and I observe following error:

# gem install rdoc
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - /builddir/.gem/specs/rubygems.org%80/latest_specs.4.8

Creating the directory:

# mkdir /builddir/.gem/specs/rubygems.org%80/

Solves the issue for me, but I would expect RubyGems to create it if needed anyway.
=end

Associated revisions

Revision 38229
Added by Eric Hodel over 1 year ago

  • lib/rubygems/package.rb: Set rubygems_version before validation. Fixes issue with bundler.
  • test/rubygems/testgempackage.rb: Test for above.

  • lib/rubygems/remote_fetcher.rb: Only update the cache when we have
    permission. [ruby-trunk - Bug #7509]

  • lib/rubygems/source.rb (class Gem): ditto

  • test/rubygems/testgemremote_fetcher.rb: Test for above.

  • lib/rubygems/test_utilities.rb: ditto

  • lib/rubygems/specification.rb: Derive base_dir properly for default
    gems. [ruby-trunk - Bug #7496]

  • test/rubygems/testgemspecification.rb: Test for above.

  • lib/rubygems.rb: Untaint Dir.pwd when searching for gemdeps files
    for operation under $SAFE=1

History

#1 Updated by Eric Hodel over 1 year ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r38229.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


  • lib/rubygems/package.rb: Set rubygems_version before validation. Fixes issue with bundler.
  • test/rubygems/testgempackage.rb: Test for above.

  • lib/rubygems/remote_fetcher.rb: Only update the cache when we have
    permission. [ruby-trunk - Bug #7509]

  • lib/rubygems/source.rb (class Gem): ditto

  • test/rubygems/testgemremote_fetcher.rb: Test for above.

  • lib/rubygems/test_utilities.rb: ditto

  • lib/rubygems/specification.rb: Derive base_dir properly for default
    gems. [ruby-trunk - Bug #7496]

  • test/rubygems/testgemspecification.rb: Test for above.

  • lib/rubygems.rb: Untaint Dir.pwd when searching for gemdeps files
    for operation under $SAFE=1

Also available in: Atom PDF