https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112013-01-15T13:32:53ZRuby Issue Tracking SystemRuby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=354222013-01-15T13:32:53Zmrkn (Kenta Murata)muraken@gmail.com
<ul></ul><p>Sorry, I made misspelling.</p>
<blockquote>
<p>This incompatibility makes <code>make install</code> to be failed because the current gem doesn't separate build, source and install directories.</p>
</blockquote>
<p>This incompatibility makes <code>make install</code> to be failed because the current <em>rubygem</em> doesn't separate build, source and install directories.</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=354232013-01-15T13:37:40Zsorah (Sorah Fukumori)her@sorah.jp
<ul></ul><p>Translating from <a href="/issues/7344">[ruby-dev:46864]</a>, Tadashi said:</p>
<blockquote>
<p>We can avoid this bug by changing directory tree in gems.<br>
But, Current status means any gems may be not installable after 2.0.0, by incompatibility in current rubygem bundled in 2.0.0.</p>
</blockquote>
<blockquote>
<p>So, I propose the following solutions:</p>
</blockquote>
<blockquote>
<ol>
<li>Revert that incompatibility before 2.0.0 release or 2.0.0's first patch level release to make such gems installable.</li>
<li>If you cannot, please review all gems that installable in 2.0.0 and notify to authors if a gem can't be installed in 2.0.0.<br>
(This may be rubygems.org's task)</li>
<li>Announce that like "Your gem may be not installable in 2.0.0" to all gem authors.</li>
</ol>
</blockquote>
<blockquote>
<p>I think solution (1) is the best. (2) seems high-cost.<br>
(3) is the worst way for me, because I've not seen an announcement like such,<br>
and seems too late to announce.</p>
</blockquote> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=354242013-01-15T13:49:06Zmrkn (Kenta Murata)muraken@gmail.com
<ul></ul><p>Thank you translation, sorah!</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=354332013-01-15T20:01:53Zkou (Kouhei Sutou)kou@cozmixng.org
<ul></ul><p>This can be fixed by the following patch. This is caused by <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: make -j all fails (sometimes) (Closed)" href="https://bugs.ruby-lang.org/issues/6904">#6904</a> change. Should this problem be fixed in RubyGems?</p>
<a name="Index-librubygemsextbuilderrb"></a>
<h1 >Index: lib/rubygems/ext/builder.rb<a href="#Index-librubygemsextbuilderrb" class="wiki-anchor">¶</a></h1>
<p>--- lib/rubygems/ext/builder.rb (revision 38833)<br>
+++ lib/rubygems/ext/builder.rb (working copy)<br>
@@ -19,6 +19,7 @@<br>
mf = Gem.read_binary 'Makefile'<br>
mf = mf.gsub(/^RUBYARCHDIR\s*=\s*$[^$]<em>/, "RUBYARCHDIR = #{dest_path}")<br>
mf = mf.gsub(/^RUBYLIBDIR\s</em>=\s*$[^$]*/, "RUBYLIBDIR = #{dest_path}")</p>
<ul>
<li>
<p>mf = mf.gsub(/\s*\S+.time$/, "")</p>
<p>File.open('Makefile', 'wb') {|f| f.print mf}</p>
</li>
</ul> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=354352013-01-16T03:37:52Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul></ul><p>I am unfamiliar with Makefiles, so what does this patch change?</p>
<p>Also, .time is new in ruby 2.0, what effect does this have on ruby 1.9 and ruby 1.8?</p>
<p>I trust your judgement in adding this to RubyGems. If you commit it to Ruby please commit it to RubyGems and let me know!</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=354592013-01-17T22:20:15Zkou (Kouhei Sutou)kou@cozmixng.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r38864.<br>
Kenta, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>lib/rubygems/ext/builder.rb (Gem::Ext::Builder.make): Remove<br>
.time dependency from *.rb install target. It causes needless<br>
*.rb install. [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: RubyGems 2.0 has an incompatibility about installation of extension libraries (Closed)" href="https://bugs.ruby-lang.org/issues/7698">#7698</a>] <a href="/issues/7698">[ruby-core:51437]</a><br>
Reported by Tadashi Saito. Thanks!!!</li>
<li>test/rubygems/test_gem_installer.rb<br>
(TestGemInstaller#test_install_extension_and_script): Add a test<br>
for the above change.</li>
</ul> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=354602013-01-17T22:24:59Zkou (Kouhei Sutou)kou@cozmixng.org
<ul></ul><p>drbrain (Eric Hodel) wrote:</p>
<blockquote>
<p>Also, .time is new in ruby 2.0, what effect does this have on ruby 1.9 and ruby 1.8?</p>
</blockquote>
<p>This change doesn't have effect on 1.9 and 1.8 because Makefile on 1.9 and 1.8 doesn't have .time. So the gsub is just ignored.</p>
<blockquote>
<p>I trust your judgement in adding this to RubyGems. If you commit it to Ruby please commit it to RubyGems and let me know!</p>
</blockquote>
<p>Thanks. :-)<br>
I've committed this change to Ruby and RubyGems with a test case.<br>
Detail is written in commit message of the commit at the RubyGems repository: <a href="https://github.com/rubygems/rubygems/commit/a7cd1be541f2194fc8c1436d86bc05eb3a94500d" class="external">https://github.com/rubygems/rubygems/commit/a7cd1be541f2194fc8c1436d86bc05eb3a94500d</a></p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=369982013-02-26T00:05:29Zmame (Yusuke Endoh)mame@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Assigned</i></li><li><strong>Assignee</strong> changed from <i>kou (Kouhei Sutou)</i> to <i>drbrain (Eric Hodel)</i></li></ul><p>Hello,</p>
<p>This issue seems not to be fixed completely.<br>
"gem install rbtree" still hit this issue.<br>
It reproduces on both trunk and 2.0.0-p0.</p>
<p>$ gem install rbtree<br>
Building native extensions. This could take a while...<br>
ERROR: Error installing rbtree:<br>
ERROR: Failed to build gem native extension.</p>
<pre><code>/home/mame/local/bin/ruby extconf.rb
</code></pre>
<p>checking for ruby/st.h... yes<br>
checking for rb_exec_recursive() in ruby.h... yes<br>
creating Makefile</p>
<p>make<br>
compiling rbtree.c<br>
compiling dict.c<br>
linking shared-object rbtree.so</p>
<p>make install<br>
/usr/bin/install -c -m 0755 rbtree.so /home/mame/local/lib/ruby/gems/2.0.0/gems/rbtree-0.3.0/.<br>
/usr/bin/install: <code>rbtree.so' and </code>/home/mame/local/lib/ruby/gems/2.0.0/gems/rbtree-0.3.0/./rbtree.so' are the same file<br>
make: *** [install-so] Error 1</p>
<p>Gem files will remain installed in /home/mame/local/lib/ruby/gems/2.0.0/gems/rbtree-0.3.0 for inspection.<br>
Results logged to /home/mame/local/lib/ruby/gems/2.0.0/gems/rbtree-0.3.0/./gem_make.out</p>
<p>--<br>
Yusuke Endoh <a href="mailto:mame@tsg.ne.jp" class="email">mame@tsg.ne.jp</a></p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=371382013-02-27T17:46:14Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>File</strong> <i>0001-ext_conf_builder.rb-build-in-separate-dir.patch</i> added</li></ul><p>It's not good idea to mess up the source directory.</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=371392013-02-27T18:08:35Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>File</strong> <a href="/attachments/3554">0001-ext_conf_builder.rb-build-in-separate-dir.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/3554/0001-ext_conf_builder.rb-build-in-separate-dir.patch">0001-ext_conf_builder.rb-build-in-separate-dir.patch</a> added</li></ul><p>I've forgot to fix a few tests.</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=371402013-02-27T18:08:53Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>File</strong> deleted (<del><i>0001-ext_conf_builder.rb-build-in-separate-dir.patch</i></del>)</li></ul> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=371892013-02-28T18:09:58Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>Made a branch <a href="https://github.com/ruby/ruby/pull/252" class="external">https://github.com/ruby/ruby/pull/252</a>.</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372062013-03-01T07:27:51Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul></ul><p>Committed r39542. Thank you nobu for the RubyGems patch!</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372102013-03-01T10:56:08Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul><li><strong>Assignee</strong> changed from <i>drbrain (Eric Hodel)</i> to <i>nobu (Nobuyoshi Nakada)</i></li><li><strong>% Done</strong> changed from <i>100</i> to <i>50</i></li></ul><p>=begin<br>
This patch causes the rdiscount extension to fail to install since it reads a local file:</p>
<p><a href="https://github.com/rtomayko/rdiscount/blob/master/ext/extconf.rb#L18" class="external">https://github.com/rtomayko/rdiscount/blob/master/ext/extconf.rb#L18</a></p>
<p>The exception:</p>
<p>Building native extensions. This could take a while...<br>
/usr/local/bin/ruby -r./siteconf /Users/drbrain/tmp/gems/gems/rdiscount-2.0.7.1/ext/extconf.rb<br>
checking for random()... yes<br>
checking for srandom()... yes<br>
checking for rand()... yes<br>
checking for srand()... yes<br>
checking size of unsigned long... 8<br>
checking size of unsigned int... 4<br>
checking size of unsigned int... 4<br>
*** /Users/drbrain/tmp/gems/gems/rdiscount-2.0.7.1/ext/extconf.rb failed ***<br>
Could not create Makefile due to some reason, probably lack of necessary<br>
libraries and/or headers. Check the mkmf.log file for more details. You may<br>
need configuration options.</p>
<p>Provided configuration options:<br>
--with-opt-dir<br>
--without-opt-dir<br>
--with-opt-include<br>
--without-opt-include=${opt-dir}/include<br>
--with-opt-lib<br>
--without-opt-lib=${opt-dir}/lib<br>
--with-make-prog<br>
--without-make-prog<br>
--srcdir=/Users/drbrain/tmp/gems/gems/rdiscount-2.0.7.1/ext<br>
--curdir<br>
--ruby=/usr/local/bin/ruby<br>
--with-rdiscount-dir<br>
--without-rdiscount-dir<br>
--with-rdiscount-include<br>
--without-rdiscount-include=${rdiscount-dir}/include<br>
--with-rdiscount-lib<br>
--without-rdiscount-lib=${rdiscount-dir}/<br>
/Users/drbrain/tmp/gems/gems/rdiscount-2.0.7.1/ext/extconf.rb:18:in <code>read': No such file or directory - VERSION (Errno::ENOENT) from /Users/drbrain/tmp/gems/gems/rdiscount-2.0.7.1/ext/extconf.rb:18:in </code>'<br>
ERROR: Error installing rdiscount:<br>
ERROR: Failed to build gem native extension.</p>
<pre><code> Building has failed. See above output for more information on the failure.
</code></pre>
<p>Gem files will remain installed in /Users/drbrain/tmp/gems/gems/rdiscount-2.0.7.1 for inspection.</p>
<p>=end</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372132013-03-01T11:47:08Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><p>It also breaks a test.<br>
<a href="http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20130301T010202Z.log.html.gz" class="external">http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20130301T010202Z.log.html.gz</a></p>
<ol start="8">
<li>Error:<br>
test_install_extension_and_script(TestGemInstaller):<br>
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.</li>
</ol>
<pre><code>/home/chkbuild/build/20130301T010202Z/ruby/ruby -r./siteconf /home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2/extconf.rb
</code></pre>
<p>creating Makefile</p>
<p>make<br>
make[1]: Entering directory <code>/home/chkbuild/build/20130301T010202Z/tmp/gem-install.20130301-11578-1y4vzyn' make[1]: Nothing to be done for </code>all'.<br>
make[1]: Leaving directory `/home/chkbuild/build/20130301T010202Z/tmp/gem-install.20130301-11578-1y4vzyn'</p>
<p>make install<br>
make[1]: Entering directory <code>/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: </code>/home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2/lib/a.rb' and <code>/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 </code>/home/chkbuild/build/20130301T010202Z/tmp/gem-install.20130301-11578-1y4vzyn'</p>
<p>Gem files will remain installed in /home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2 for inspection.<br>
Results logged to /home/chkbuild/build/20130301T010202Z/tmp/test_rubygems_11578/gemhome/gems/a-2/./gem_make.out</p>
<pre><code>/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'
</code></pre> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372142013-03-01T12:50:32Zdrbrain (Eric Hodel)drbrain@segment7.net
<ul></ul><p>What make do you have?</p>
<p>I have GNU Make 3.81 and cannot reproduce.</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372592013-03-03T01:14:34Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>50</i> to <i>100</i></li></ul><p>This issue was solved with changeset r39558.<br>
Kenta, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>ext_conf_builder.rb: build in the source directory</p>
<ul>
<li>lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):<br>
revert use of temporary directory for build, to work some buggy<br>
extconf.rb which cannot build outside the source directory.<br>
<a href="/issues/7698">[ruby-core:53056]</a> [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: RubyGems 2.0 has an incompatibility about installation of extension libraries (Closed)" href="https://bugs.ruby-lang.org/issues/7698">#7698</a>]</li>
</ul> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372602013-03-03T01:15:34Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Assigned</i></li><li><strong>Target version</strong> changed from <i>2.0.0</i> to <i>2.1.0</i></li><li><strong>% Done</strong> changed from <i>100</i> to <i>50</i></li></ul> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372612013-03-03T01:16:20Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>50</i> to <i>100</i></li></ul><p>This issue was solved with changeset r39559.<br>
Kenta, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>ext_conf_builder.rb: use RUBYOPT</p>
<ul>
<li>lib/rubygems/ext/ext_conf_builder.rb (Gem::Ext::ExtConfBuilder.build):<br>
use RUBYOPT instead of -r option, and revert some tests. [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: RubyGems 2.0 has an incompatibility about installation of extension libraries (Closed)" href="https://bugs.ruby-lang.org/issues/7698">#7698</a>]</li>
</ul> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372622013-03-03T01:16:51Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Assigned</i></li><li><strong>% Done</strong> changed from <i>100</i> to <i>50</i></li></ul> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372632013-03-03T01:17:23Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>50</i> to <i>100</i></li></ul><p>This issue was solved with changeset r39560.<br>
Kenta, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>ext_conf_builder.rb: hack for obsolete sytle gems</p>
<ul>
<li>lib/rubygems/ext/ext_conf_builder.rb<br>
(Gem::Ext::ExtConfBuilder.hack_for_obsolete_sytle_gems): remove<br>
circular dependencies for old style gems which locate extconf.rb on<br>
the toplevel. <a href="/issues/7698">[ruby-core:53059]</a> [ruby-trunk - Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: RubyGems 2.0 has an incompatibility about installation of extension libraries (Closed)" href="https://bugs.ruby-lang.org/issues/7698">#7698</a>]</li>
</ul> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372702013-03-03T10:28:03Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Assigned</i></li><li><strong>% Done</strong> changed from <i>100</i> to <i>50</i></li></ul> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=372712013-03-03T12:17:52Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>50</i> to <i>100</i></li></ul><p>This issue was solved with changeset r39572.<br>
Kenta, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<p>ext_conf_builder.rb: remove circular dependency in install-so</p>
<ul>
<li>lib/rubygems/ext/ext_conf_builder.rb<br>
(Gem::Ext::ExtConfBuilder.hack_for_obsolete_style_gems): remove<br>
circular dependencies in install-so too. <a href="/issues/7698">[ruby-core:52882]</a><br>
[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: RubyGems 2.0 has an incompatibility about installation of extension libraries (Closed)" href="https://bugs.ruby-lang.org/issues/7698">#7698</a>]</li>
</ul> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=399632013-06-16T11:04:53Zzzak (zzak _)
<ul></ul><p>I can still reproduce this on RubyGems 2.0.3 with trunk:<br>
ruby 2.1.0dev (2013-06-16 trunk 41328) [x86_64-darwin12.3.0]</p>
<p>To repro: <code>gem install rbtree</code></p>
<p>Is this a bug in rbtree?</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=399732013-06-17T01:36:19Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul></ul><p>Hello,</p>
<p>The following is the output of gem install rbtree on my environment (ruby 2.1.0dev (2013-06-16 trunk 41337) [x86_64-darwin10.8.0])<br>
It seems that rbtree need to catch up with constify of RBasic::klass and RHash::ifnone for RGenGC.<br>
ko1, what do you think? Is it intended incompatibility?</p>
<p>% gem install rbtree<br>
Fetching: rbtree-0.4.1.gem (100%)<br>
Building native extensions. This could take a while...<br>
ERROR: Error installing rbtree:<br>
ERROR: Failed to build gem native extension.</p>
<pre><code>/Users/nagachika/opt/ruby-trunk/bin/ruby-trunk extconf.rb
</code></pre>
<p>checking for ruby/st.h... yes<br>
checking for rb_exec_recursive() in ruby.h... yes<br>
checking for rb_exec_recursive_paired() in ruby.h... yes<br>
checking for rb_proc_lambda_p() in ruby.h... yes<br>
creating Makefile</p>
<p>make<br>
compiling dict.c<br>
compiling rbtree.c<br>
rbtree.c: In function ‘copy_dict’:<br>
rbtree.c:755: error: assignment of read-only member ‘klass’<br>
rbtree.c: In function ‘rbtree_to_hash’:<br>
rbtree.c:1292: error: assignment of read-only member ‘ifnone’<br>
make: *** [rbtree.o] Error 1</p> Ruby master - Bug #7698: RubyGems 2.0 has an incompatibility about installation of extension librarieshttps://bugs.ruby-lang.org/issues/7698?journal_id=399742013-06-17T08:39:03Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>It's a completely different issue, and intended incompatibility AFAIK.</p>