Bug #7949

Gem::Ext::Builder removes dependency to directory creation task

Added by masaki yamada about 1 year ago. Updated about 1 year ago.

[ruby-dev:47101]
Status:Closed
Priority:Normal
Assignee:Eric Hodel
Category:lib
Target version:2.0.0
ruby -v:ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] Backport:

Description

lib/rubygems/ext/builder.rb:22 removes dependency to ./RUBYARCHDIR.time,
so lib directory creation task won't be run.

thus for instance when tried to install rubyzip.gem which doesn't have lib directory,
rubygem makes binary file "lib" not lib/zipruby.so.

site_ruby/2.0.0/rubygems/ext/builder.rb の22行目の処理で、
install-so タスクが ./.RUBYARCHDIR.time に依存しているという情報が消されてしまうので、
libディレクトリの作成タスクが走らなくなっています。

libディレクトリを持たないgem(具体的には zipruby)を gem install でインストールすると、
lib/zipruby.so ではなく lib というバイナリファイルが作られます。


Related issues

Duplicates ruby-trunk - Bug #7698: RubyGems 2.0 has an incompatibility about installation of... Closed 01/15/2013

History

#1 Updated by Shota Fukumori about 1 year ago

  • Category changed from ext to lib
  • Assignee set to Eric Hodel

Eric, could you handle this?

the following is a translation of this issue:

lib/rubygems/ext/builder.rb:22 removes dependency to ./RUBYARCHDIR.time,
so lib directory creation task won't be run.

thus for instance when tried to install rubyzip.gem which doesn't have lib directory,
rubygem makes binary file "lib" not lib/zipruby.so.

#2 Updated by Shota Fukumori about 1 year ago

  • Subject changed from Gem:Ext:Builder がディレクトリ作成タスクへの依存を消してしまう to Gem::Ext::Builder removes dependency to directory creation task
  • Description updated (diff)

#3 Updated by Nobuyoshi Nakada about 1 year ago

It should be fixed already.

Or it's not been backported?

#4 Updated by Eric Hodel about 1 year ago

  • Status changed from Open to Closed

Seems fixed by Nobu's patches, so I will close this.

Also available in: Atom PDF