Permalink
Browse files

Import r39590 from ruby trunk

It is impossible to predict which file will be installed to where, by
the arguments, so use intermediate destination directory always.

Patch by nobu
  • Loading branch information...
drbrain committed Mar 11, 2013
1 parent 3a7934d commit 082c2435de29edbb305ea2819691c56bc3b5f685
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rubygems/ext/ext_conf_builder.rb
@@ -13,7 +13,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
FileEntry = FileUtils::Entry_ # :nodoc:
def self.build(extension, directory, dest_path, results)
- tmp_dest = Dir.mktmpdir(".gem.", ".") if File.identical?(dest_path, ".")
+ tmp_dest = Dir.mktmpdir(".gem.", ".")
Tempfile.open %w"siteconf .rb", "." do |siteconf|
siteconf.puts "require 'rbconfig'"

0 comments on commit 082c243

Please sign in to comment.