bottle: loosen prefix grep check.
/usr/local is in lots of things unrelated to Homebrew so be more specific and look for opt instead.
This commit is contained in:
parent
4c55082e7c
commit
6718ca119c
@ -78,7 +78,13 @@ module Homebrew extend self
|
||||
# references to the Cellar e.g. Qt's QMake annoyingly does this.
|
||||
keg.relocate_install_names prefix, tmp_prefix, cellar, tmp_cellar
|
||||
|
||||
relocatable = !keg_contains(HOMEBREW_PREFIX, keg)
|
||||
if prefix == '/usr/local'
|
||||
prefix_check = HOMEBREW_PREFIX/'opt'
|
||||
else
|
||||
prefix_check = HOMEBREW_PREFIX
|
||||
end
|
||||
|
||||
relocatable = !keg_contains(prefix_check, keg)
|
||||
relocatable = !keg_contains(HOMEBREW_CELLAR, keg) if relocatable
|
||||
|
||||
# And do the same thing in reverse to change the library references
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user