From aa50318e312ed89348aeee61a6121cc472e5327b Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Sat, 30 Nov 2013 11:49:02 -0500 Subject: mongodb: fix shell crash for stable with clang. Closes #24805. Signed-off-by: Mike McQuaid --- Library/Formula/mongodb.rb | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'Library') diff --git a/Library/Formula/mongodb.rb b/Library/Formula/mongodb.rb index 2620633cf..513c46f28 100644 --- a/Library/Formula/mongodb.rb +++ b/Library/Formula/mongodb.rb @@ -13,24 +13,19 @@ class Mongodb < Formula head 'https://github.com/mongodb/mongo.git' def patches - # Fix Clang v8 build failure from build warnings and -Werror - 'https://github.com/mongodb/mongo/commit/be4bc7.patch' if build.stable? + if build.stable? + [ + # Fix Clang v8 build failure from build warnings and -Werror + 'https://github.com/mongodb/mongo/commit/be4bc7.patch', + # Fixes crash on shell exit for 2.4.x + 'https://github.com/mongodb/mongo/commit/670c98.patch' + ] + end end depends_on 'scons' => :build depends_on 'openssl' => :optional - if build.stable? - # https://github.com/mxcl/homebrew/issues/24741 - fails_with :clang do - cause <<-EOS.undent - Embedded V8 has runtime bugs, Clang unsupported for 2.4. See: - https://github.com/mxcl/homebrew/issues/24741 - https://jira.mongodb.org/browse/SERVER-11570 - EOS - end - end - def install # mongodb currently can't build with libc++; this should be fixed in # 2.6, but can't be backported to the current stable release. -- cgit v1.2.3