bottle: allow links to pkgconfig directory in HOMEBREW_REPOSITORY

This commit is contained in:
Rylan Polster 2021-05-08 02:23:23 -04:00
parent 9ddb531249
commit fd3730a531
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -31,6 +31,10 @@ EOS
MAXIMUM_STRING_MATCHES = 100 MAXIMUM_STRING_MATCHES = 100
ALLOWABLE_HOMEBREW_REPOSITORY_LINKS = [
%r{#{HOMEBREW_LIBRARY}/Homebrew/os/(mac|linux)/pkgconfig},
].freeze
module Homebrew module Homebrew
extend T::Sig extend T::Sig
@ -479,7 +483,7 @@ module Homebrew
else else
HOMEBREW_REPOSITORY HOMEBREW_REPOSITORY
end.to_s end.to_s
if keg_contain?(repository_reference, keg, ignores, args: args) if keg_contain?(repository_reference, keg, ignores + ALLOWABLE_HOMEBREW_REPOSITORY_LINKS, args: args)
odie "Bottle contains non-relocatable reference to #{repository_reference}!" odie "Bottle contains non-relocatable reference to #{repository_reference}!"
end end