ruby-changes:46827
From: eregon <ko1@a...>
Date: Sun, 28 May 2017 21:02:13 +0900 (JST)
Subject: [ruby-changes:46827] eregon:r58942 (trunk): Update to ruby/spec@ca32ae2
eregon 2017-05-28 21:02:08 +0900 (Sun, 28 May 2017) New Revision: 58942 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58942 Log: Update to ruby/spec@ca32ae2 Removed files: trunk/spec/rubyspec/optional/capi/ext/jruby.h trunk/spec/rubyspec/optional/capi/ext/rubinius.h trunk/spec/rubyspec/optional/capi/ext/truffleruby.h Modified files: trunk/spec/rubyspec/optional/capi/ext/rubyspec.h trunk/spec/rubyspec/optional/capi/spec_helper.rb Index: spec/rubyspec/optional/capi/ext/jruby.h =================================================================== --- spec/rubyspec/optional/capi/ext/jruby.h (revision 58941) +++ spec/rubyspec/optional/capi/ext/jruby.h (nonexistent) @@ -1,10 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/ext/jruby.h#L0 -#ifndef RUBYSPEC_CAPI_JRUBY_H -#define RUBYSPEC_CAPI_JRUBY_H - -/* #undef any HAVE_ defines that JRuby does not have. */ -#undef HAVE_RB_DEFINE_HOOKED_VARIABLE -#undef HAVE_RB_DEFINE_VARIABLE - -#undef HAVE_RB_EXEC_RECURSIVE - -#endif Property changes on: spec/rubyspec/optional/capi/ext/jruby.h ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: spec/rubyspec/optional/capi/ext/truffleruby.h =================================================================== --- spec/rubyspec/optional/capi/ext/truffleruby.h (revision 58941) +++ spec/rubyspec/optional/capi/ext/truffleruby.h (nonexistent) @@ -1,6 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/ext/truffleruby.h#L0 -#ifndef RUBYSPEC_CAPI_TRUFFLERUBY_H -#undef RUBYSPEC_CAPI_TRUFFLERUBY_H - -// All features are available - -#endif Property changes on: spec/rubyspec/optional/capi/ext/truffleruby.h ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: spec/rubyspec/optional/capi/ext/rubinius.h =================================================================== --- spec/rubyspec/optional/capi/ext/rubinius.h (revision 58941) +++ spec/rubyspec/optional/capi/ext/rubinius.h (nonexistent) @@ -1,8 +0,0 @@ https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/ext/rubinius.h#L0 -#ifndef RUBYSPEC_CAPI_RUBINIUS_H -#define RUBYSPEC_CAPI_RUBINIUS_H - -/* #undef any HAVE_ defines that Rubinius does not have. */ -#undef HAVE_RB_DEFINE_HOOKED_VARIABLE -#undef HAVE_RB_DEFINE_VARIABLE - -#endif Property changes on: spec/rubyspec/optional/capi/ext/rubinius.h ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -LF \ No newline at end of property Index: spec/rubyspec/optional/capi/spec_helper.rb =================================================================== --- spec/rubyspec/optional/capi/spec_helper.rb (revision 58941) +++ spec/rubyspec/optional/capi/spec_helper.rb (revision 58942) @@ -22,21 +22,20 @@ def compile_extension(name) https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/spec_helper.rb#L22 end ext = "#{name}_spec" - source = "#{extension_path}/#{ext}.c" lib = "#{object_path}/#{ext}.#{RbConfig::CONFIG['DLEXT']}" ruby_header = "#{RbConfig::CONFIG['rubyhdrdir']}/ruby.h" return lib if File.exist?(lib) and - File.mtime(lib) > File.mtime(source) and - File.mtime(lib) > File.mtime(ruby_header) and File.mtime(lib) > File.mtime("#{extension_path}/rubyspec.h") and + File.mtime(lib) > File.mtime("#{extension_path}/#{ext}.c") and + File.mtime(lib) > File.mtime(ruby_header) and true # sentinel # Copy needed source files to tmpdir tmpdir = tmp("cext_#{name}") Dir.mkdir(tmpdir) begin - ["jruby.h", "rubinius.h", "truffleruby.h", "rubyspec.h", "#{ext}.c"].each do |file| + ["rubyspec.h", "#{ext}.c"].each do |file| cp "#{extension_path}/#{file}", "#{tmpdir}/#{file}" end @@ -58,9 +57,7 @@ def compile_extension(name) https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/spec_helper.rb#L57 raise "make failed:\n#{output}" unless $?.success? $stderr.puts output if debug - Dir.glob("*.#{RbConfig::CONFIG['DLEXT']}") do |file| - cp file, "#{object_path}/#{file}" - end + cp File.basename(lib), lib end ensure rm_r tmpdir Index: spec/rubyspec/optional/capi/ext/rubyspec.h =================================================================== --- spec/rubyspec/optional/capi/ext/rubyspec.h (revision 58941) +++ spec/rubyspec/optional/capi/ext/rubyspec.h (revision 58942) @@ -595,19 +595,4 @@ https://github.com/ruby/ruby/blob/trunk/spec/rubyspec/optional/capi/ext/rubyspec.h#L595 /* Util */ #define HAVE_RB_SCAN_ARGS 1 -/* Now, create the differential set. The format of the preprocessor directives - * is significant. The alternative implementations should define RUBY because - * some extensions depend on that. But only one alternative implementation - * macro should be defined at a time. The conditional is structured so that if - * no alternative implementation is defined then MRI is assumed. - */ - -#if defined(RUBINIUS) -#include "rubinius.h" -#elif defined(JRUBY) -#include "jruby.h" -#elif defined(TRUFFLERUBY) -#include "truffleruby.h" -#endif - #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/