21418284 ruby doesn't build on s11u3-26 and s12-78 s11-update
authorApril Chin <april.chin@oracle.com>
Fri, 10 Jul 2015 16:33:48 -0700
branchs11-update
changeset 4633 25cb67608c0d
parent 4631 e7ecc0560529
child 4637 36222db47113
21418284 ruby doesn't build on s11u3-26 and s12-78
components/ruby/ruby-19/patches/09-ext_openssl_extconf_rb.patch
components/ruby/ruby-21/patches/09-ext_openssl_extconf_rb.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ruby/ruby-19/patches/09-ext_openssl_extconf_rb.patch	Fri Jul 10 16:33:48 2015 -0700
@@ -0,0 +1,19 @@
+Fixes problem with deprecated SSLv2 functions in Solaris.
+Patch was developed in-house; it is Solaris specific and
+will not be contributed upstream.
+
+--- ruby-1.9.3-p551-orig/ext/openssl/extconf.rb	2012-09-08 23:39:23.000000000 -0700
++++ ruby-1.9.3-p551/ext/openssl/extconf.rb	2015-07-10 14:00:47.789098073 -0700
[email protected]@ -101,9 +101,12 @@ have_func("OBJ_NAME_do_all_sorted")
+ have_func("SSL_SESSION_get_id")
+ have_func("SSL_SESSION_cmp")
+ have_func("OPENSSL_cleanse")
++=begin
++These functions are deprecated in Solaris
+ have_func("SSLv2_method")
+ have_func("SSLv2_server_method")
+ have_func("SSLv2_client_method")
++=end
+ unless have_func("SSL_set_tlsext_host_name", ['openssl/ssl.h'])
+   have_macro("SSL_set_tlsext_host_name", ['openssl/ssl.h']) && $defs.push("-DHAVE_SSL_SET_TLSEXT_HOST_NAME")
+ end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/ruby/ruby-21/patches/09-ext_openssl_extconf_rb.patch	Fri Jul 10 16:33:48 2015 -0700
@@ -0,0 +1,19 @@
+Fixes problem with deprecated SSLv2 functions in Solaris.
+Patch was developed in-house; it is Solaris specific and
+will not be contributed upstream.
+
+--- ruby-2.1.6-orig/ext/openssl/extconf.rb	2013-10-27 23:32:24.000000000 -0700
++++ ruby-2.1.6/ext/openssl/extconf.rb	2015-07-10 13:55:14.910884056 -0700
[email protected]@ -100,9 +100,12 @@ have_func("OBJ_NAME_do_all_sorted")
+ have_func("SSL_SESSION_get_id")
+ have_func("SSL_SESSION_cmp")
+ have_func("OPENSSL_cleanse")
++=begin
++These functions are deprecated in Solaris
+ have_func("SSLv2_method")
+ have_func("SSLv2_server_method")
+ have_func("SSLv2_client_method")
++=end
+ have_func("TLSv1_1_method")
+ have_func("TLSv1_1_server_method")
+ have_func("TLSv1_1_client_method")