Issue #7897 has been updated by mrkn (Kenta Murata).


I'm sorry, the previous patch is wrong.
The following is right.

diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index 0865a6d..e5a5e0e 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -4,6 +4,7 @@
 # See LICENSE.txt for permissions.
 #++

+require 'fileutils'
 require 'rubygems/exceptions'
 require 'rubygems/package'
 require 'rubygems/ext'
@@ -672,6 +673,7 @@ TEXT

       begin
         Dir.chdir extension_dir do
+          FileUtils.mkdir_p(dest_path)
           results = builder.build(extension, gem_dir, dest_path,
                                   results, @build_args)

----------------------------------------
Bug #7897: rubygems 2.0 has an incompatibility about installation of extension libraries if gem package does not contain lib directory
https://bugs.ruby-lang.org/issues/7897#change-36705

Author: mrkn (Kenta Murata)
Status: Open
Priority: Urgent
Assignee: drbrain (Eric Hodel)
Category: lib
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-08 trunk 39161) [x86_64-darwin11.4.2]


Hi,

rubygems 2.0 has an incompatibility about installation of extension libraries.

If a gem package does not contain lib directory,
an extension library file is copied as a file named "lib".

You can reproduce this problem by installing msgpack version 0.4.7.



-- 
http://bugs.ruby-lang.org/