Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Ruby 2.3.8 should be able to use openssl 1.0 #4823

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

whs-dot-hk
Copy link

@whs-dot-hk whs-dot-hk commented Dec 3, 2019

Fixes #4781.

Changes proposed in this pull request:

  • Force openssl to use 1.0.2t
  • Instead of 1.1
  • rvm reinstall ruby-2.3.8 --with-openssl-dir='/usr/local/Cellar/openssl/1.0.2t' --debug would work

Make sure that your pull request includes entry in the CHANGELOG.

@whs-dot-hk whs-dot-hk changed the title Ruby 2.3.8 should be able to use openssl 1.0 [WIP] Ruby 2.3.8 should be able to use openssl 1.0 Dec 3, 2019
@@ -307,7 +307,7 @@ requirements_osx_brew_define_openssl()

case "$1" in
(ruby-2.3*|ruby-2.2*|ruby-2.1*|ruby-2.0*|ruby-1.9*|ruby-1.8*)
brew_openssl_package="openssl"
brew_openssl_package="https://raw.githubusercontent.com/Homebrew/homebrew-core/8c9b113bc6812dc74c598c8f860017e42fba8d78/Formula/openssl.rb"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could maybe work but should be rather done behind some IF, as someone might have older macOS where this openssl version is simply available.

Also check https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula/4158763#4158763

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I should add a openssl version check

but more problem came alone as other homebrew package e.g. mariadb use openssl 1.1

/usr/local/opt/openssl will then be link to 1.1

so again ruby 2.3 won't work

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I tried this and it can not be linked correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ruby 2.3.7 fails to install on macOS Mojave
3 participants