Actions
Bug #10822
closedmake-snapshot breaks during download of bundled gems
Description
... snip ...
downloading config.sub ... done
Downloading bundled gem files...
/usr/share/rubygems/rubygems/defaults/operating_system.rb:9:in `previous_but_one_dir_to': undefined method `split' for nil:NilClass (NoMethodError)
from /usr/share/rubygems/rubygems/defaults/operating_system.rb:30:in `default_locations'
from /usr/share/rubygems/rubygems/defaults/operating_system.rb:47:in `default_dirs'
from /usr/share/rubygems/rubygems/defaults/operating_system.rb:70:in `default_dir'
from /usr/share/rubygems/rubygems/basic_specification.rb:33:in `default_specifications_dir'
from /usr/share/rubygems/rubygems/specification.rb:770:in `load_defaults'
from /usr/share/rubygems/rubygems.rb:1239:in `<top (required)>'
from /tmp/ruby-snapshot20150203-18908-5qkpah/ruby-2.3.0-r49483/tool/downloader.rb:41:in `require'
from /tmp/ruby-snapshot20150203-18908-5qkpah/ruby-2.3.0-r49483/tool/downloader.rb:41:in `download'
from -e:4:in `<main>'
/tmp/GmEfPzNs:1423: recipe for target 'update-gems' failed
make: *** [update-gems] Error 1
prerequisites failed
This is due to Ruby picking up rbconfig.rb from the current checkout, since $(RUNRUBY) adds the current directory on the load path [1]. I don't think this is right in this case.
You can reproduce this issue with Fedora's operating_system.rb [2].
[1] https://github.com/ruby/ruby/blob/trunk/common.mk#L920
[2] http://pkgs.fedoraproject.org/cgit/ruby.git/tree/operating_system.rb
Actions
Like0
Like0Like0Like0