Skip to content

Commit

Permalink
Fix ruby zlib.bundle not getting correctly rpath fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Mar 20, 2023
1 parent 017c250 commit 70b0a3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion share/brewkit/fix-machos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def fix_id
end

def write
puts "fix-macho: writing #{@file.filename}"
stat = File.stat(@file.filename)
if not stat.writable?
File.chmod(0644, @file.filename)
Expand Down Expand Up @@ -151,7 +152,7 @@ def fix_install_names
def fix_tea_prefix 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+)+\.dylib$}, '/.dylib')
s = s.sub(%r{(\.\d+)+\.dylib$}, '.dylib')
s = "@rpath/#{s}"
return s
end
Expand Down

0 comments on commit 70b0a3d

Please sign in to comment.