Issue #7698 has been updated by kou (Kouhei Sutou).


This can be fixed by the following patch. This is caused by #6904 change. Should this problem be fixed in RubyGems?

Index: lib/rubygems/ext/builder.rb
===================================================================
--- lib/rubygems/ext/builder.rb	(revision 38833)
+++ lib/rubygems/ext/builder.rb	(working copy)
@@ -19,6 +19,7 @@
     mf = Gem.read_binary 'Makefile'
     mf = mf.gsub(/^RUBYARCHDIR\s*=\s*\$[^$]*/, "RUBYARCHDIR = #{dest_path}")
     mf = mf.gsub(/^RUBYLIBDIR\s*=\s*\$[^$]*/, "RUBYLIBDIR = #{dest_path}")
+    mf = mf.gsub(/\s*\S+\.time$/, "")
 
     File.open('Makefile', 'wb') {|f| f.print mf}
 

----------------------------------------
Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension libraries
https://bugs.ruby-lang.org/issues/7698#change-35433

Author: mrkn (Kenta Murata)
Status: Open
Priority: High
Assignee: kou (Kouhei Sutou)
Category: lib
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-01-14 trunk 38812) [x86_64-linux]


The current rubygem included in ruby-head has an incompatibility about installation of extension libraries.
This incompatibility makes `make install` to be failed because the current gem doesn't separate build, source and install directories.

This is reported as a bug of bigdecimal's gemspec in #7344 firstly, but Tadashi Saito pointed out it also can be reproduced in other gems including extension libraries, such as decimal.gem.
I think this incompatibility will make gem-developers to be in trouble after ruby-2.0 is released.
So this should be resolved before ruby-2.0 is released.



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