Skip to content

Commit

Permalink
merge revision(s) 35685
Browse files Browse the repository at this point in the history
* ext/extmk.rb: Show a message when extconf.rb raised an exception.
* ext/openssl/extconf.rb: Use exception raising instead of message
  and/or abort. We want to display error message to console _and_
  logging into mkmf.log.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
kosaki committed Sep 9, 2012
1 parent c2cb8ea commit 1048cf3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
@@ -1,3 +1,10 @@
Sun Sep 9 02:34:39 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>

* ext/extmk.rb: Show a message when extconf.rb raised an exception.
* ext/openssl/extconf.rb: Use exception raising instead of message
and/or abort. We want to display error message to console _and_
logging into mkmf.log.

Sun Sep 9 02:30:20 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>

* thread.c (rb_mutex_lock): stop multiple threads use
Expand Down
12 changes: 11 additions & 1 deletion ext/extmk.rb
Expand Up @@ -183,6 +183,8 @@ def extmake(target)
end
rescue SystemExit
# ignore
rescue => error
ok = false
ensure
rm_f "conftest*"
config = $0
Expand All @@ -194,7 +196,15 @@ def extmake(target)
open(makefile, "w") do |f|
f.print(*dummy_makefile(CONFIG["srcdir"]))
end
print "Failed to configure #{target}. It will not be installed.\n"

mess = "Failed to configure #{target}. It will not be installed.\n"
if error
mess.prepend(error.to_s + "\n")
end

Logging::message(mess)
print(mess)
$stdout.flush
return true
end
args = sysquote($mflags)
Expand Down
3 changes: 1 addition & 2 deletions ext/openssl/extconf.rb
Expand Up @@ -58,8 +58,7 @@
end

unless have_header("openssl/conf_api.h")
message "OpenSSL 0.9.6 or later required.\n"
exit 1
raise "OpenSSL 0.9.6 or later required."
end

%w"rb_str_set_len rb_block_call".each {|func| have_func(func, "ruby.h")}
Expand Down
2 changes: 1 addition & 1 deletion version.h
@@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.3"
#define RUBY_PATCHLEVEL 266
#define RUBY_PATCHLEVEL 267

#define RUBY_RELEASE_DATE "2012-09-09"
#define RUBY_RELEASE_YEAR 2012
Expand Down

0 comments on commit 1048cf3

Please sign in to comment.