Skip to content

No longer detecting OpenSSL 3 from homebrew #2561

@rubberduck203

Description

@rubberduck203

Steps to reproduce the behavior

Run ruby-build from current master branch (commit fd0460e).

bin/ruby-build --version
ruby-build 20250811-3-gfd0460e8bin/ruby-build 3.4.5 ~/tmp
==> Downloading ruby-3.4.5.tar.gz...
-> curl -q -fL -o ruby-3.4.5.tar.gz https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.5.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22.1M  100 22.1M    0     0  15.9M      0  0:00:01  0:00:01 --:--:-- 15.9M
==> Installing ruby-3.4.5...
ruby-build: using libyaml from homebrew
ruby-build: using gmp from homebrew
-> ./configure "--prefix=$HOME/tmp" --enable-shared --with-libyaml-dir=/opt/homebrew/opt/libyaml --with-gmp-dir=/opt/homebrew/opt/gmp --with-ext=openssl,psych,+

Expected vs. actual behavior

Expect the ./configure command to detect the openssl installation from homebrew like it did as of the v20250811 tag and include the --with-openssl-dir=/opt/homebrew/opt/openssl@3 option.

git checkout v20250811  bin/ruby-build --version
ruby-build 20250811bin/ruby-build 3.4.5 ~/tmp
ruby-build: using openssl@3 from homebrew
==> Downloading ruby-3.4.5.tar.gz...
-> curl -q -fL -o ruby-3.4.5.tar.gz https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.5.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22.1M  100 22.1M    0     0  18.5M      0  0:00:01  0:00:01 --:--:-- 18.5M
==> Installing ruby-3.4.5...
ruby-build: using libyaml from homebrew
ruby-build: using gmp from homebrew
-> ./configure "--prefix=$HOME/tmp" --with-openssl-dir=/opt/homebrew/opt/openssl@3 --enable-shared --with-libyaml-dir=/opt/homebrew/opt/libyaml --with-gmp-dir=/opt/homebrew/opt/gmp --with-ext=openssl,psych,+

I believe bug this was introduced in PR #2547.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions