Issue #7698 has been updated by naruse (Yui NARUSE).


It also breaks a test.
http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20130301T010202Z.log.html.gz

  8) Error:
test_install_extension_and_script(TestGemInstaller):
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /home/chkbuild/build/20130301T010202Z/ruby/ruby -r./siteconf /home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2/extconf.rb
creating Makefile

make
make[1]: Entering directory `/home/chkbuild/build/20130301T010202Z/tmp/gem-install.20130301-11578-1y4vzyn'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/chkbuild/build/20130301T010202Z/tmp/gem-install.20130301-11578-1y4vzyn'

make install
make[1]: Entering directory `/home/chkbuild/build/20130301T010202Z/tmp/gem-install.20130301-11578-1y4vzyn'
installing default libraries
make[1]: Circular /home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2/lib/a.rb <- /home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2/lib/a.rb dependency dropped.
/usr/bin/install: `/home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2/lib/a.rb' and `/home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2/lib/a.rb' are the same file
make[1]: *** [/home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2/lib/a.rb] Error 1
make[1]: Leaving directory `/home/chkbuild/build/20130301T010202Z/tmp/gem-install.20130301-11578-1y4vzyn'


Gem files will remain installed in /home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2 for inspection.
Results logged to /home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2/./gem_make.out

    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/ext/builder.rb:55:in `run'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/ext/builder.rb:28:in `block in make'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/ext/builder.rb:26:in `each'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/ext/builder.rb:26:in `make'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/ext/ext_conf_builder.rb:33:in `block (2 levels) in build'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/ext/ext_conf_builder.rb:20:in `chdir'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/ext/ext_conf_builder.rb:20:in `block in build'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/tmpdir.rb:88:in `mktmpdir'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/ext/ext_conf_builder.rb:19:in `build'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/installer.rb:678:in `block (2 levels) in build_extensions'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/installer.rb:677:in `chdir'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/installer.rb:677:in `block in build_extensions'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/installer.rb:652:in `each'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/installer.rb:652:in `build_extensions'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/installer.rb:218:in `install'
    /home/chkbuild/build/20130301T010202Z/ruby/test/rubygems/test_gem_installer.rb:1046:in `block in test_install_extension_and_script'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/user_interaction.rb:40:in `use_ui'
    /home/chkbuild/build/20130301T010202Z/ruby/lib/rubygems/user_interaction.rb:63:in `use_ui'
    /home/chkbuild/build/20130301T010202Z/ruby/test/rubygems/test_gem_installer.rb:1042:in `test_install_extension_and_script'
----------------------------------------
Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension libraries
https://bugs.ruby-lang.org/issues/7698#change-37213

Author: mrkn (Kenta Murata)
Status: Assigned
Priority: High
Assignee: nobu (Nobuyoshi Nakada)
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/