ruby-changes:45271
From: nagachika <ko1@a...>
Date: Tue, 17 Jan 2017 04:09:26 +0900 (JST)
Subject: [ruby-changes:45271] nagachika:r57344 (ruby_2_3): merge revision(s) 56832: [Backport #12956]
nagachika 2017-01-17 04:09:23 +0900 (Tue, 17 Jan 2017) New Revision: 57344 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57344 Log: merge revision(s) 56832: [Backport #12956] dln.c: raise LoadError * dln.c (dln_load): raise LoadError instead of fatal error on recent OSX, dlclose seems fixed in El Capitan or later. [ruby-core:78200] [Bug #12956] Modified directories: branches/ruby_2_3/ Modified files: branches/ruby_2_3/dln.c branches/ruby_2_3/version.h Index: ruby_2_3/version.h =================================================================== --- ruby_2_3/version.h (revision 57343) +++ ruby_2_3/version.h (revision 57344) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_3/version.h#L1 #define RUBY_VERSION "2.3.3" #define RUBY_RELEASE_DATE "2017-01-17" -#define RUBY_PATCHLEVEL 228 +#define RUBY_PATCHLEVEL 229 #define RUBY_RELEASE_YEAR 2017 #define RUBY_RELEASE_MONTH 1 Index: ruby_2_3/dln.c =================================================================== --- ruby_2_3/dln.c (revision 57343) +++ ruby_2_3/dln.c (revision 57344) @@ -1331,7 +1331,9 @@ dln_load(const char *file) https://github.com/ruby/ruby/blob/trunk/ruby_2_3/dln.c#L1331 void *ex = dlsym(handle, EXTERNAL_PREFIX"ruby_xmalloc"); if (ex && ex != ruby_xmalloc) { -# if defined __APPLE__ +# if defined __APPLE__ && \ + defined(MAC_OS_X_VERSION_MIN_REQUIRED) && \ + (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_11) /* dlclose() segfaults */ rb_fatal("%s - %s", incompatible, file); # else Property changes on: ruby_2_3 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r56832 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/