diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-10 14:27:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-03-10 14:27:56 +0000 |
commit | 4cbb8ea83650af5de9f058955f6ef7f713b0977f (patch) | |
tree | 8c757ac9f35633bf9e5d749077e2a43facb310f1 | |
parent | 9a4f037502254f50475f0b48d37fe84d5e8e4813 (diff) | |
download | ruby-4cbb8ea83650af5de9f058955f6ef7f713b0977f.tar.gz |
ext_conf_builder.rb: use intermediate destdir always
* lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):
it is impossible to predict which file will be installed to where,
by the arguments, so use intermediate destination directory always.
[Bug #7698]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 14 | ||||
-rw-r--r-- | lib/rubygems/ext/ext_conf_builder.rb | 2 |
2 files changed, 15 insertions, 1 deletions
@@ -1,3 +1,17 @@ +Sun Mar 10 23:27:54 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build): + it is impossible to predict which file will be installed to where, + by the arguments, so use intermediate destination directory always. + [Bug #7698] + +Sun Mar 10 23:27:05 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build): + it is impossible to predict which file will be installed to where, + by the arguments, so use intermediate destination directory always. + [Bug #7698] + Sun Mar 10 17:00:22 2013 Tadayoshi Funaba <tadf@dotrb.org> * complex.c: edited rdoc. diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb index 39d772326a..a172afa7db 100644 --- a/lib/rubygems/ext/ext_conf_builder.rb +++ b/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, args=[]) - 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'" |