Bugs item #29190, was opened at 2011-05-09 06:22
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29190&group_id=126

Category: RubyGems installer (setup.rb)
Group: next
>Status: Closed
>Resolution: Rejected
Priority: 3
Submitted By: Jon Forums (jonforums)
Assigned to: Nobody (None)
Summary: 1.8.1 setup.rb install failure

Initial Comment:
While investigating installing 1.8.1 as the default RG for a 
RubyInstaller-built Ruby (trunk@31489) I get the following:

...
mkdir -p sandbox/rubygems
"C:/projects/rubyinstaller-git/sandbox/extract_utils/basic-bsdtar.exe" -xf 
"C:/projects/rubyinstaller-git/downloads/rubygems-1.8.1.tgz" > NUL 2>&1
cd sandbox/rubygems
ruby setup.rb install --no-ri --no-rdoc
C:/projects/rubyinstaller-git/sandbox/rubygems/lib/rubygems/gem_path_searcher.rb:160:in
 `<class:GemPathSearcher>': uninitialized constant 
Gem::GemPathSearcher::Deprecate (NameError)
        from 
C:/projects/rubyinstaller-git/sandbox/rubygems/lib/rubygems/gem_path_searcher.rb:5:in
 `<top (required)>'
        from 
C:/projects/rubyinstaller-git/sandbox/ruby19_mingw/lib/ruby/1.9.1/rubygems.rb:990:in
 `searcher'
        from 
C:/projects/rubyinstaller-git/sandbox/ruby19_mingw/lib/ruby/1.9.1/rubygems.rb:544:in
 `find_files'
        from 
C:/projects/rubyinstaller-git/sandbox/ruby19_mingw/lib/ruby/1.9.1/rubygems.rb:1165:in
 `load_plugins'
        from 
C:/projects/rubyinstaller-git/sandbox/rubygems/lib/rubygems/gem_runner.rb:85:in 
`<top (required)>'
        from 
C:/projects/rubyinstaller-git/sandbox/ruby19_mingw/lib/ruby/1.9.1/rubygems/custom_require.rb:42:in
 `require'
        from 
C:/projects/rubyinstaller-git/sandbox/ruby19_mingw/lib/ruby/1.9.1/rubygems/custom_require.rb:42:in
 `require'
        from setup.rb:25:in `<main>'


I've run out of time this morning to try a few patches for your review, but 
here's what I speculate:

1) Root cause appears to be a mismatch between Ruby trunk's rubygems.rb and 
RG's 1.8.1 rubygems.rb. Specifically, Ruby trunk's rubygems.rb does _not_ 
require 'rubygems/deprecate' as does 
https://github.com/rubygems/rubygems/blob/master/lib/rubygems.rb#L32 The Quick 
Wrong Fix of adding the require to gem_path_searcher.rb seems to confirm 
deprecate.rb is not being required for this scenario.

2) Observed on Win7 32-bit building Ruby trunk with ruby 1.9.2p192. I expect 
the same failure building ruby_1_8_7, ruby_1_9_2 on Windows or Linux due to the 
rubygems.rb mismatch.

3) Given (1) should require 'rubygems/deprecate' be refactored somewhere else 
in the RG code so as not to require a bump in trunk, ruby_1_9_2, and ruby_1_8_7?

----------------------------------------------------------------------

>Comment By: Ryan Davis (zenspider)
Date: 2011-05-11 17:51

Message:
tenderlove gave me proper repro steps so this is a dupe.

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29190&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to