diff -Naur ruby-1.9.2-p290.orig/tool/rbinstall.rb ruby-1.9.2-p290/tool/rbinstall.rb --- ruby-1.9.2-p290.orig/tool/rbinstall.rb 2011-01-16 14:18:57.000000000 +0100 +++ ruby-1.9.2-p290/tool/rbinstall.rb 2011-08-29 11:20:23.365904481 +0200 @@ -492,36 +492,7 @@ end install?(:ext, :comm, :gem) do - directories = [] - IO.foreach(File.join(srcdir, "lib/rubygems.rb")) do |line| - if /^\s*DIRECTORIES\s*=\s*%w\[(.*?)\]/ =~ line - directories = $1.split - break - end - end - gpath = CONFIG["sitelibdir"].sub(%r'/site_ruby/(?=[^/]+)', '/gems/') - prepare "default gems", gpath, directories - - destdir = File.join(gpath, directories.grep(/^spec/)[0]) - default_gems = [ - ['rake', 'rake.rb'], - ['rdoc', 'rdoc.rb'], - ['minitest', 'minitest/unit.rb'], - ] - default_gems.each do |name, src| - src = File.join(srcdir, "lib", src) - version = open(src) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~ s}} or next - version = version.split(%r"=\s*", 2)[1].strip[/\A([\'\"])(.*?)\1/, 2] - puts "#{" "*30}#{name} #{version}" - gemspec = <<-GEMSPEC -Gem::Specification.new do |s| - s.name = #{name.dump} - s.version = #{version.dump} - s.summary = "This #{name} is bundled with Ruby" -end - GEMSPEC - open_for_install(File.join(destdir, "#{name}-#{version}.gemspec"), $data_mode) { gemspec } - end + # gems are unbundled end parse_args()