aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/command.rb
diff options
context:
space:
mode:
authorMartin Afanasjew2015-10-29 23:57:30 +0100
committerMike McQuaid2015-11-08 13:27:03 -0800
commit06634edab7f5dee0904cc779ef8c2c109815766c (patch)
tree254d472036f275dc0c97a41dd27d9d5b39db8bb8 /Library/Homebrew/cmd/command.rb
parent55063f0ec749fdffc3dc72ea3f1651ea50e1a776 (diff)
downloadbrew-06634edab7f5dee0904cc779ef8c2c109815766c.tar.bz2
keg_relocate: fix relocation of frameworks
When fixing references to regular dylibs, it is sufficient to search for a file with the same base name, e.g., `libpoppler.56.dylib`. However, if the broken reference is to a framework, we also have to take into account preceding path components to find a suitable match. Framework references (according to the `dyld` man page) come in two flavors: - `XXX.framework/Versions/YYY/XXX` (with version) - `XXX.framework/XXX` (without version) The change here is to detect these patterns and to make sure that the fixed library reference has the same suffix as the broken one. Prior to this fix, a broken framework reference (if originating in a sister framework) to `QtXml.framework/Versions/5/QtXml` would have been rewritten to `<qt5-keg>/lib/QtXml.framework/QtXml`. In practice, this mostly works, but is technically incorrect and thus creates problems like in Homebrew/homebrew#42191. With this fix, the framework reference is correctly rewritten to `<qt5-keg>/lib/QtXml.framework/Versions/5/QtXml`. Closes Homebrew/homebrew#45494. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd/command.rb')
0 files changed, 0 insertions, 0 deletions