Merge pull request #7656 from rmNULL/check-for-nil-when-patchelf-is-not-found

Instructions to install patchelf, when development tools cant locate …
This commit is contained in:
Mike McQuaid 2020-05-28 08:25:00 +01:00 committed by GitHub
commit 2955181654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,8 @@ class Keg
return if !file.elf? || !file.dynamic_elf?
patchelf = DevelopmentTools.locate "patchelf"
odie "Could not locate patchelf, please: brew install patchelf." if patchelf.nil?
cmd_rpath = [patchelf, "--print-rpath", file]
old_rpath = Utils.popen_read(*cmd_rpath, err: :out).strip