From 535e2565f3918ddcabc67ebce8cf9ceea245bb0c Mon Sep 17 00:00:00 2001 From: Gabriel Gironda Date: Fri, 12 Feb 2016 16:17:02 -0500 Subject: [PATCH] llvm: fix code-signing certificate setup check The LLVM formula checks if the LLDB code signing certificate is set up correctly by trying to sign an empty text file. On certain versions of OS X, this causes codesign to segfault. This "fixes" it in a hackish way by trying to sign an actual binary instead. Closes Homebrew/homebrew#49125. Closes #680. Signed-off-by: Dominyk Tiller --- Formula/llvm.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/llvm.rb b/Formula/llvm.rb index 88672116fc..9bd6d93b61 100644 --- a/Formula/llvm.rb +++ b/Formula/llvm.rb @@ -4,8 +4,8 @@ class CodesignRequirement < Requirement satisfy(:build_env => false) do mktemp do - touch "llvm_check.txt" - quiet_system "/usr/bin/codesign", "-s", "lldb_codesign", "--dryrun", "llvm_check.txt" + cp "/usr/bin/false", "llvm_check" + quiet_system "/usr/bin/codesign", "-f", "-s", "lldb_codesign", "--dryrun", "llvm_check" end end