aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-12-31 19:49:42 +0000
committerMike McQuaid2014-12-31 20:14:07 +0000
commit419700ccf999ecb318d92e7b7d7b7ffe8ff02936 (patch)
treeea54113d2f89e3b6d84b4d8d61d1a0c10acf68d7 /Library
parentf809c9800d34083a128e34f48324bbffe2c81ccc (diff)
downloadhomebrew-419700ccf999ecb318d92e7b7d7b7ffe8ff02936.tar.bz2
osquery: apply patch to fix illegal instruction.
Closes #35343. Closes #35405. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/osquery.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/osquery.rb b/Library/Formula/osquery.rb
index 1f0512120..7bc0c02f5 100644
--- a/Library/Formula/osquery.rb
+++ b/Library/Formula/osquery.rb
@@ -35,6 +35,12 @@ class Osquery < Formula
end
def install
+ # Apply upstream commit to fix illegal hardware instruction:
+ # https://github.com/facebook/osquery/commit/20259a
+ # https://github.com/facebook/osquery/issues/563
+ # https://github.com/Homebrew/homebrew/issues/35343
+ inreplace "CMakeLists.txt", "-Wl,-all_load", "-Wl,-force_load"
+
ENV.prepend_create_path "PYTHONPATH", buildpath+"third-party/python/lib/python2.7/site-packages"
resources.each do |r|