From 7b79fa7b924e33fc79fd567fdf3ac4dcd73e2047 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 20 Mar 2023 19:55:08 -0400 Subject: [PATCH] k so maybe this time we really fix it --- share/brewkit/fix-machos.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/share/brewkit/fix-machos.rb b/share/brewkit/fix-machos.rb index 4574ae9e..3b161ccd 100755 --- a/share/brewkit/fix-machos.rb +++ b/share/brewkit/fix-machos.rb @@ -150,9 +150,11 @@ def fix_install_names return if bad_names.empty? def fix_tea_prefix s + puts s s = Pathname.new(s).relative_path_from(Pathname.new($tea_prefix)) s = s.sub(%r{/v(\d+)\.(\d+\.)+\d+[a-z]?/}, '/v\1/') - s = s.sub(%r{([-\.]\d+(\.\d)*)\.dylib$}, '.dylib') #FIXME we need to figure this out by resolving links and shit + s = s.sub(%r{[-.]\d+(\.\d+)*\.dylib$}, '.dylib') #FIXME we need to figure this out by resolving links and shit + puts s s = "@rpath/#{s}" return s end