diff options
Diffstat (limited to 'meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch')
| -rw-r--r-- | meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch b/meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch deleted file mode 100644 index 016ac3584b..0000000000 --- a/meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch +++ /dev/null | |||
| @@ -1,64 +0,0 @@ | |||
| 1 | From eab4316597a8e9e7bbf845a054564c6daa4a95b7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Hudson-Doyle <michael.hudson@linaro.org> | ||
| 3 | Date: Wed, 22 Jan 2014 13:53:10 +1300 | ||
| 4 | Subject: [PATCH 3/5] * Do not build 'mongo' binary when scripting is disabled | ||
| 5 | * Do not build the jstests when scripting is disabled | ||
| 6 | |||
| 7 | --- | ||
| 8 | SConstruct | 8 ++++++-- | ||
| 9 | src/mongo/SConscript | 4 +++- | ||
| 10 | 2 files changed, 9 insertions(+), 3 deletions(-) | ||
| 11 | |||
| 12 | diff --git a/SConstruct b/SConstruct | ||
| 13 | index 6e0ef3b..c84a669 100644 | ||
| 14 | --- a/SConstruct | ||
| 15 | +++ b/SConstruct | ||
| 16 | @@ -440,10 +440,13 @@ else: | ||
| 17 | |||
| 18 | static = has_option( "static" ) | ||
| 19 | |||
| 20 | -noshell = has_option( "noshell" ) | ||
| 21 | - | ||
| 22 | disable_scripting = has_option( "disable-scripting" ) | ||
| 23 | |||
| 24 | +if not disable_scripting: | ||
| 25 | + noshell = has_option( "noshell" ) | ||
| 26 | +else: | ||
| 27 | + noshell = True | ||
| 28 | + | ||
| 29 | asio = has_option( "asio" ) | ||
| 30 | |||
| 31 | usePCH = has_option( "usePCH" ) | ||
| 32 | @@ -1662,6 +1665,7 @@ Export("get_option") | ||
| 33 | Export("has_option use_system_version_of_library") | ||
| 34 | Export("mongoCodeVersion") | ||
| 35 | Export("usev8") | ||
| 36 | +Export("disable_scripting") | ||
| 37 | Export("darwin windows solaris linux freebsd nix") | ||
| 38 | Export('module_sconscripts') | ||
| 39 | Export("debugBuild optBuild") | ||
| 40 | diff --git a/src/mongo/SConscript b/src/mongo/SConscript | ||
| 41 | index 58f8406..b4379e7 100644 | ||
| 42 | --- a/src/mongo/SConscript | ||
| 43 | +++ b/src/mongo/SConscript | ||
| 44 | @@ -6,6 +6,7 @@ import os | ||
| 45 | import itertools | ||
| 46 | from buildscripts import utils | ||
| 47 | |||
| 48 | +Import("disable_scripting") | ||
| 49 | Import("env") | ||
| 50 | Import("shellEnv") | ||
| 51 | Import("testEnv") | ||
| 52 | @@ -1043,7 +1044,8 @@ test = testEnv.Install( | ||
| 53 | [ f for f in Glob("dbtests/*.cpp") | ||
| 54 | if not str(f).endswith('framework.cpp') and | ||
| 55 | not str(f).endswith('framework_options.cpp') and | ||
| 56 | - not str(f).endswith('framework_options_init.cpp') ], | ||
| 57 | + not str(f).endswith('framework_options_init.cpp') and | ||
| 58 | + not (str(f).endswith('jstests.cpp') and disable_scripting)], | ||
| 59 | LIBDEPS = [ | ||
| 60 | "mutable_bson_test_utils", | ||
| 61 | "mongocommon", | ||
| 62 | -- | ||
| 63 | 1.9.0 | ||
| 64 | |||
