[MacPorts] #56559: textmate2 @2.0-rc.4_2 build fails on Ruby ssl connection

MacPorts noreply at macports.org
Tue Jun 5 11:07:46 UTC 2018


#56559: textmate2 @2.0-rc.4_2 build fails on Ruby ssl connection
------------------------+------------------------
  Reporter:  p-vitt     |      Owner:  neverpanic
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.5.0
Resolution:             |   Keywords:
      Port:  textmate2  |
------------------------+------------------------

Comment (by p-vitt):

 Using this [https://github.com/bundler/ruby-ssl-check/blob/master/check.rb
 script], it says for SSLv3 and TLSv1 that my OpenSSL is too old, for auto
 and TLSv2 it fails with `unknown SSL method`. Some details:

 {{{
 $ ~/check.rb github.com SSLv3 VERIFY_NONE
 Here's your Ruby and OpenSSL environment:

 Ruby:           2.0.0p648 (2015-12-16 revision 53162)
 [universal.x86_64-darwin16]
 RubyGems:       2.0.14.1
 Compiled with:  OpenSSL 0.9.8zc 19 Mar 2015
 Loaded version: OpenSSL 0.9.8zh 14 Jan 2016
 SSL_CERT_FILE:  /System/Library/OpenSSL/cert.pem
 SSL_CERT_DIR:   /System/Library/OpenSSL/certs

 With that out of the way, let's see if you can connect to github.com...

 Bundler connection to github.com:       failed  ❌  (uninitialized
 constant Bundler)
 RubyGems connection to github.com:      failed  ❌  (SSL/TLS protocol
 version mismatch)
 Ruby net/http connection to github.com: failed  ❌

 Unfortunately, this Ruby can't connect to github.com. 😡
 Your Ruby can't connect to github.com because your version of OpenSSL is
 too old. You'll need to upgrade your OpenSSL install and/or recompile Ruby
 to use a newer OpenSSL.
 $ sudo port install ruby25
 <snip>
 $ ~/check.rb github.com SSLv3 VERIFY_NONE
 Here's your Ruby and OpenSSL environment:

 Ruby:           2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]
 RubyGems:       2.7.6
 Compiled with:  OpenSSL 1.0.2o  27 Mar 2018
 Loaded version: OpenSSL 1.0.2o  27 Mar 2018
 SSL_CERT_FILE:  /opt/local/etc/openssl/cert.pem
 SSL_CERT_DIR:   /opt/local/etc/openssl/certs

 With that out of the way, let's see if you can connect to github.com...

 Bundler connection to github.com:       failed  ❌  (uninitialized
 constant Bundler)
 RubyGems connection to github.com:      success ✅
 Ruby net/http connection to github.com: failed  ❌

 Unfortunately, this Ruby can't connect to github.com. 😡
 Your Ruby can't connect to github.com because your version of OpenSSL is
 too old. You'll need to upgrade your OpenSSL install and/or recompile Ruby
 to use a newer OpenSSL.
 }}}

 Also with the latest ruby25/OpenSSL, the error stays the same.

-- 
Ticket URL: <https://trac.macports.org/ticket/56559#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list