Browse files

Remove siteconf temp file once unused

Clean up the sitearch temp file before running any make commands to prevent
the temp file being copied into the gem installation.
  • Loading branch information...
1 parent 75571d4 commit 441e1fc2315b966dc62afed410e2eefaa5315866 @domcleal domcleal committed with drbrain Jul 9, 2013
Showing with 2 additions and 0 deletions.
  1. +1 −0 lib/rubygems/ext/ext_conf_builder.rb
  2. +1 −0 test/rubygems/test_gem_ext_ext_conf_builder.rb
View
1 lib/rubygems/ext/ext_conf_builder.rb
@@ -35,6 +35,7 @@ def self.build(extension, directory, dest_path, results)
run cmd, results
ENV["DESTDIR"] = nil
+ siteconf.unlink
make dest_path, results
View
1 test/rubygems/test_gem_ext_ext_conf_builder.rb
@@ -34,6 +34,7 @@ def test_class_build
assert_equal "creating Makefile\n", output[1]
assert_contains_make_command '', output[2]
assert_contains_make_command 'install', output[4]
+ assert_empty Dir.glob(File.join(@ext, 'siteconf*.rb'))
end
def test_class_build_rbconfig_make_prog

0 comments on commit 441e1fc

Please sign in to comment.