extend/os/mac/keg_relocate: fix post-bottling dylib ID relocation
Running `brew bottle` changes dylib IDs, install names, and rpaths into placeholders for the bottle, creates a bottle tarball, and then changes the placeholders back to their correct values. With my refactoring in #11358, the behaviour of this relocation changed: dylib IDs would no longer be changed back from placeholders into their correct values after the creation of the bottle tarball.
This commit is contained in:
parent
6b8ed45db3
commit
c7de544fe8
@ -22,8 +22,8 @@ class Keg
|
||||
mach_o_files.each do |file|
|
||||
file.ensure_writable do
|
||||
if file.dylib?
|
||||
id = relocated_name_for(dylib_id_for(file), relocation)
|
||||
change_dylib_id(id, file) if id
|
||||
id = relocated_name_for(file.dylib_id, relocation)
|
||||
change_dylib_id(id, file)
|
||||
end
|
||||
|
||||
each_install_name_for(file) do |old_name|
|
||||
|
Loading…
x
Reference in New Issue
Block a user