Please sign in to comment.
Add workaround for .time dependency by mkmf.rb introduced since Ruby …
…2.0.0 GitHub: fix #411 Ruby: fix [Bug #7698] [ruby-core:51437] mkmf.rb on Ruby 2.0.0 introduces .time dependency to support "make -j". See Ruby's [Bug #6904]: https://bugs.ruby-lang.org/issues/6904 With this change, installing *.rb tasks are always ran even if source rb and destination rb are the same file. RubyGems uses the same directory for source directory and install directory. So this behavior causes a RubyGems problem. GNU install reports an error for the same source and destination file. BSD install also reports an error for it but doesn't report any error by specifying destination as directory. Makefile generated by mkmf.rb uses destination directory not destination file. Prepare: % cd /tmp % touch x GNU install (Debian GNU/Linux): % install x x install: 'x' and 'x' are the same file % install x ./ install: 'x' and './x' are the same file BSD install (FreeBSD): % install x x install: x and x are the same file % install x ./ % echo $? 0 This workaround doesn't causes any problems with Ruby 1.9 and 1.8 because mkmf.rb on Ruby 1.9 and 1.8 don't use .time.
- Loading branch information...
Showing with 28 additions and 0 deletions.