From c99d5b5fb0ba8eaf00178e0b14739043eb9aea8b Mon Sep 17 00:00:00 2001 From: Alisa Katsman Date: Sun, 9 Aug 2026 19:51:16 +0200 Subject: [PATCH] Fix MacPorts dependency paths: /usr/local -> /opt/local MacPorts installs packages to /opt/local, unlike Homebrew, which uses /usr/local. The port) case in configure_ruby() was using /usr/local for all --with-*-dir options, linking installations via MacPorts against either non-existent or incorrect libraries. --- share/ruby-install/ruby/functions.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/share/ruby-install/ruby/functions.sh b/share/ruby-install/ruby/functions.sh index 2ffccf79..4cfc6213 100644 --- a/share/ruby-install/ruby/functions.sh +++ b/share/ruby-install/ruby/functions.sh @@ -49,21 +49,21 @@ function configure_ruby() ;; port) dependency_opts+=( - "--with-readline-dir=/usr/local" - "--with-libyaml-dir=/usr/local" - "--with-libffi-dir=/usr/local" - "--with-openssl-dir=/usr/local" + "--with-readline-dir=/opt/local" + "--with-libyaml-dir=/opt/local" + "--with-libffi-dir=/opt/local" + "--with-openssl-dir=/opt/local" ) if [[ "${ruby_dependencies[*]}" == *"gdbm"* ]]; then dependency_opts+=( - "--with-gdbm-dir=/usr/local" + "--with-gdbm-dir=/opt/local" ) fi if [[ "${ruby_dependencies[*]}" == *"jemalloc"* ]]; then dependency_opts+=( - "--with-jemalloc-dir=/usr/local" + "--with-jemalloc-dir=/opt/local" ) fi ;;