mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/mkmf.rb (create_tmpsrc): retry to create file if Errno::EACCES
occurs. this is a workaround for mswin32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7ae8e804ed
commit
fc9a7983cf
3 changed files with 21 additions and 7 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,12 +1,18 @@
|
|||
Thu Dec 27 02:25:45 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/mkmf.rb (create_tmpsrc): retry to create file if Errno::EACCES
|
||||
occurs. this is a workaround for mswin32.
|
||||
|
||||
Wed Dec 26 22:47:31 2007 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/resolv.rb (Resolv::DNS::Name.==): fix for other is array of
|
||||
* lib/resolv.rb (Resolv::DNS::Name.==): fix for other is array of
|
||||
Resolv::DNS::Label::Str.
|
||||
|
||||
* lib/resolv.rb (Resolv::DNS::MessageEncoder#put_label): String#string
|
||||
is not defined, so replace to_s.
|
||||
|
||||
* lib/resolv.rb (Resolv::IPv6#to_name): ip6.int is obsoleted by ip6.arpa.
|
||||
* lib/resolv.rb (Resolv::IPv6#to_name): ip6.int is obsoleted by
|
||||
ip6.arpa.
|
||||
|
||||
|
||||
Wed Dec 26 21:27:02 2007 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
|
12
lib/mkmf.rb
12
lib/mkmf.rb
|
@ -297,8 +297,16 @@ end
|
|||
def create_tmpsrc(src)
|
||||
src = yield(src) if block_given?
|
||||
src = src.gsub(/[ \t]+$/, '').gsub(/\A\n+|^\n+$/, '').sub(/[^\n]\z/, "\\&\n")
|
||||
open(CONFTEST_C, "wb") do |cfile|
|
||||
cfile.print src
|
||||
count = 0
|
||||
begin
|
||||
open(CONFTEST_C, "wb") do |cfile|
|
||||
cfile.print src
|
||||
end
|
||||
rescue Errno::EACCES
|
||||
if (count += 1) < 5
|
||||
sleep 0.2
|
||||
retry
|
||||
end
|
||||
end
|
||||
src
|
||||
end
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#define RUBY_VERSION "1.9.0"
|
||||
#define RUBY_RELEASE_DATE "2007-12-26"
|
||||
#define RUBY_RELEASE_DATE "2007-12-27"
|
||||
#define RUBY_VERSION_CODE 190
|
||||
#define RUBY_RELEASE_CODE 20071226
|
||||
#define RUBY_RELEASE_CODE 20071227
|
||||
#define RUBY_PATCHLEVEL 0
|
||||
|
||||
#define RUBY_VERSION_MAJOR 1
|
||||
|
@ -9,7 +9,7 @@
|
|||
#define RUBY_VERSION_TEENY 0
|
||||
#define RUBY_RELEASE_YEAR 2007
|
||||
#define RUBY_RELEASE_MONTH 12
|
||||
#define RUBY_RELEASE_DAY 26
|
||||
#define RUBY_RELEASE_DAY 27
|
||||
|
||||
#ifdef RUBY_EXTERN
|
||||
RUBY_EXTERN const char ruby_version[];
|
||||
|
|
Loading…
Reference in a new issue