[147644] trunk/dports/lang/ruby

jeremyhu at macports.org jeremyhu at macports.org
Mon Apr 11 04:23:14 PDT 2016


Revision: 147644
          https://trac.macports.org/changeset/147644
Author:   jeremyhu at macports.org
Date:     2016-04-11 04:23:14 -0700 (Mon, 11 Apr 2016)
Log Message:
-----------
ruby: Fix build failure with newer libressl

Modified Paths:
--------------
    trunk/dports/lang/ruby/Portfile

Added Paths:
-----------
    trunk/dports/lang/ruby/files/patch-ext_openssl_extconf_rb.diff
    trunk/dports/lang/ruby/files/patch-ext_openssl_ossl_ssl_c.diff

Modified: trunk/dports/lang/ruby/Portfile
===================================================================
--- trunk/dports/lang/ruby/Portfile	2016-04-11 11:23:11 UTC (rev 147643)
+++ trunk/dports/lang/ruby/Portfile	2016-04-11 11:23:14 UTC (rev 147644)
@@ -67,7 +67,9 @@
                 patch-Makefile.in \
 				patch-numeric.c.diff \
 				patch-configure.diff \
-				patch-ext-tk-extconf.rb.diff
+				patch-ext-tk-extconf.rb.diff \
+				patch-ext_openssl_extconf_rb.diff \
+				patch-ext_openssl_ossl_ssl_c.diff
 
 # ignore getcontext() and setcontext()
 # on 10.5 or later, these functions have some problems (SEGV on ppc, slower than 1.8.6)

Added: trunk/dports/lang/ruby/files/patch-ext_openssl_extconf_rb.diff
===================================================================
--- trunk/dports/lang/ruby/files/patch-ext_openssl_extconf_rb.diff	                        (rev 0)
+++ trunk/dports/lang/ruby/files/patch-ext_openssl_extconf_rb.diff	2016-04-11 11:23:14 UTC (rev 147644)
@@ -0,0 +1,12 @@
+--- ext/openssl/extconf.rb.orig	2011-06-26 01:58:06.000000000 -0700
++++ ext/openssl/extconf.rb	2016-04-11 04:18:00.000000000 -0700
+@@ -103,6 +103,9 @@ end
+ have_func("SSLv2_method")
+ have_func("SSLv2_server_method")
+ have_func("SSLv2_client_method")
++have_func("SSLv3_method")
++have_func("SSLv3_server_method")
++have_func("SSLv3_client_method")
+ 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

Added: trunk/dports/lang/ruby/files/patch-ext_openssl_ossl_ssl_c.diff
===================================================================
--- trunk/dports/lang/ruby/files/patch-ext_openssl_ossl_ssl_c.diff	                        (rev 0)
+++ trunk/dports/lang/ruby/files/patch-ext_openssl_ossl_ssl_c.diff	2016-04-11 11:23:14 UTC (rev 147644)
@@ -0,0 +1,16 @@
+$OpenBSD: patch-ext_openssl_ossl_ssl_c,v 1.1 2015/08/27 15:55:04 kili Exp $
+--- ext/openssl/ossl_ssl.c.orig	Fri Dec 12 22:58:34 2014
++++ ext/openssl/ossl_ssl.c	Thu Aug 27 15:42:58 2015
+@@ -138,9 +138,12 @@ static const struct {
+     OSSL_SSL_METHOD_ENTRY(SSLv2_server),
+     OSSL_SSL_METHOD_ENTRY(SSLv2_client),
+ #endif
++#if defined(HAVE_SSLV3_METHOD) && defined(HAVE_SSLV3_SERVER_METHOD) && \
++        defined(HAVE_SSLV3_CLIENT_METHOD)
+     OSSL_SSL_METHOD_ENTRY(SSLv3),
+     OSSL_SSL_METHOD_ENTRY(SSLv3_server),
+     OSSL_SSL_METHOD_ENTRY(SSLv3_client),
++#endif
+     OSSL_SSL_METHOD_ENTRY(SSLv23),
+     OSSL_SSL_METHOD_ENTRY(SSLv23_server),
+     OSSL_SSL_METHOD_ENTRY(SSLv23_client),
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160411/dddfed9b/attachment.html>


More information about the macports-changes mailing list