diff options
author | Armin Kuster <akuster808@gmail.com> | 2018-04-08 08:48:14 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2018-04-13 12:43:44 -0700 |
commit | 15b09d8325d7edfcd8c9311e725f00f14a541f17 (patch) | |
tree | 425ace1339f2062cb7d19a537bd734c1338906ba | |
parent | a5d4a339153807934be987dcbc2833760be7ae1c (diff) | |
download | meta-openembedded-15b09d8325d7edfcd8c9311e725f00f14a541f17.tar.gz |
mongodb: refresh patches and remove un-needed patch
[V2]
remove patch, changes upstream
[v3]
Actually remove the patch
Signed-off-by: Armin Kuster <akuster808@gmail.com>
5 files changed, 30 insertions, 112 deletions
diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch index 09d49d28c..aa01e954f 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch +++ b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch | |||
@@ -9,11 +9,11 @@ Signed-off-by: Sven Ebenfeld <sven.ebenfeld@gmail.com> | |||
9 | src/mongo/util/SConscript | 2 ++ | 9 | src/mongo/util/SConscript | 2 ++ |
10 | 2 files changed, 8 insertions(+), 2 deletions(-) | 10 | 2 files changed, 8 insertions(+), 2 deletions(-) |
11 | 11 | ||
12 | diff --git a/SConstruct b/SConstruct | 12 | Index: git/SConstruct |
13 | index 5082a4b..3370f70 100644 | 13 | =================================================================== |
14 | --- a/SConstruct | 14 | --- git.orig/SConstruct |
15 | +++ b/SConstruct | 15 | +++ git/SConstruct |
16 | @@ -507,6 +507,7 @@ def variable_arch_converter(val): | 16 | @@ -548,6 +548,7 @@ def variable_arch_converter(val): |
17 | 'amd64': 'x86_64', | 17 | 'amd64': 'x86_64', |
18 | 'emt64': 'x86_64', | 18 | 'emt64': 'x86_64', |
19 | 'x86': 'i386', | 19 | 'x86': 'i386', |
@@ -21,8 +21,8 @@ index 5082a4b..3370f70 100644 | |||
21 | } | 21 | } |
22 | val = val.lower() | 22 | val = val.lower() |
23 | 23 | ||
24 | @@ -568,7 +569,8 @@ env_vars.Add('ARFLAGS', | 24 | @@ -627,7 +628,8 @@ env_vars.Add( |
25 | converter=variable_shlex_converter) | 25 | ) |
26 | 26 | ||
27 | env_vars.Add('CC', | 27 | env_vars.Add('CC', |
28 | - help='Select the C compiler to use') | 28 | - help='Select the C compiler to use') |
@@ -31,7 +31,7 @@ index 5082a4b..3370f70 100644 | |||
31 | 31 | ||
32 | env_vars.Add('CCFLAGS', | 32 | env_vars.Add('CCFLAGS', |
33 | help='Sets flags for the C and C++ compiler', | 33 | help='Sets flags for the C and C++ compiler', |
34 | @@ -588,7 +590,8 @@ env_vars.Add('CPPPATH', | 34 | @@ -647,7 +649,8 @@ env_vars.Add('CPPPATH', |
35 | converter=variable_shlex_converter) | 35 | converter=variable_shlex_converter) |
36 | 36 | ||
37 | env_vars.Add('CXX', | 37 | env_vars.Add('CXX', |
@@ -41,7 +41,7 @@ index 5082a4b..3370f70 100644 | |||
41 | 41 | ||
42 | env_vars.Add('CXXFLAGS', | 42 | env_vars.Add('CXXFLAGS', |
43 | help='Sets flags for the C++ compiler', | 43 | help='Sets flags for the C++ compiler', |
44 | @@ -818,6 +821,7 @@ envDict = dict(BUILD_ROOT=buildDir, | 44 | @@ -895,6 +898,7 @@ envDict = dict(BUILD_ROOT=buildDir, |
45 | ) | 45 | ) |
46 | 46 | ||
47 | env = Environment(variables=env_vars, **envDict) | 47 | env = Environment(variables=env_vars, **envDict) |
@@ -49,19 +49,16 @@ index 5082a4b..3370f70 100644 | |||
49 | del envDict | 49 | del envDict |
50 | 50 | ||
51 | env.AddMethod(env_os_is_wrapper, 'TargetOSIs') | 51 | env.AddMethod(env_os_is_wrapper, 'TargetOSIs') |
52 | diff --git a/src/mongo/util/SConscript b/src/mongo/util/SConscript | 52 | Index: git/src/mongo/util/SConscript |
53 | index 6add602..8d05a62 100644 | 53 | =================================================================== |
54 | --- a/src/mongo/util/SConscript | 54 | --- git.orig/src/mongo/util/SConscript |
55 | +++ b/src/mongo/util/SConscript | 55 | +++ git/src/mongo/util/SConscript |
56 | @@ -251,6 +251,8 @@ if get_option('allocator') == 'tcmalloc': | 56 | @@ -274,6 +274,8 @@ if env['MONGO_ALLOCATOR'] == 'tcmalloc': |
57 | 'MONGO_HAVE_GPERFTOOLS_GET_THREAD_CACHE_SIZE' | 57 | 'MONGO_HAVE_GPERFTOOLS_SIZE_CLASS_STATS' |
58 | ] | 58 | ] |
59 | ) | 59 | ) |
60 | + if not use_system_version_of_library('valgrind'): | 60 | + if not use_system_version_of_library('valgrind'): |
61 | + tcmspEnv.InjectThirdPartyIncludePaths('valgrind') | 61 | + tcmspEnv.InjectThirdPartyIncludePaths('valgrind') |
62 | 62 | ||
63 | tcmspEnv.Library( | 63 | if not use_system_version_of_library('valgrind'): |
64 | target='tcmalloc_set_parameter', | 64 | # Include valgrind since tcmalloc disables itself while running under valgrind |
65 | -- | ||
66 | 1.9.1 | ||
67 | |||
diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch index c43beb4c1..389b302c3 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch +++ b/meta-oe/recipes-dbs/mongodb/mongodb/0001-Use-long-long-instead-of-int64_t.patch | |||
@@ -13,11 +13,11 @@ Upstream-Status: Pending | |||
13 | src/mongo/util/procparser.cpp | 10 +++++----- | 13 | src/mongo/util/procparser.cpp | 10 +++++----- |
14 | 1 file changed, 5 insertions(+), 5 deletions(-) | 14 | 1 file changed, 5 insertions(+), 5 deletions(-) |
15 | 15 | ||
16 | diff --git a/src/mongo/util/procparser.cpp b/src/mongo/util/procparser.cpp | 16 | Index: git/src/mongo/util/procparser.cpp |
17 | index 36f2ae0254..2c164bcbf3 100644 | 17 | =================================================================== |
18 | --- a/src/mongo/util/procparser.cpp | 18 | --- git.orig/src/mongo/util/procparser.cpp |
19 | +++ b/src/mongo/util/procparser.cpp | 19 | +++ git/src/mongo/util/procparser.cpp |
20 | @@ -260,7 +260,7 @@ Status parseProcStat(const std::vector<StringData>& keys, | 20 | @@ -260,7 +260,7 @@ Status parseProcStat(const std::vector<S |
21 | 21 | ||
22 | StringData stringValue((*partIt).begin(), (*partIt).end() - (*partIt).begin()); | 22 | StringData stringValue((*partIt).begin(), (*partIt).end() - (*partIt).begin()); |
23 | 23 | ||
@@ -26,7 +26,7 @@ index 36f2ae0254..2c164bcbf3 100644 | |||
26 | 26 | ||
27 | if (!parseNumberFromString(stringValue, &value).isOK()) { | 27 | if (!parseNumberFromString(stringValue, &value).isOK()) { |
28 | value = 0; | 28 | value = 0; |
29 | @@ -272,7 +272,7 @@ Status parseProcStat(const std::vector<StringData>& keys, | 29 | @@ -272,7 +272,7 @@ Status parseProcStat(const std::vector<S |
30 | } else { | 30 | } else { |
31 | StringData stringValue((*partIt).begin(), (*partIt).end() - (*partIt).begin()); | 31 | StringData stringValue((*partIt).begin(), (*partIt).end() - (*partIt).begin()); |
32 | 32 | ||
@@ -35,7 +35,7 @@ index 36f2ae0254..2c164bcbf3 100644 | |||
35 | 35 | ||
36 | if (!parseNumberFromString(stringValue, &value).isOK()) { | 36 | if (!parseNumberFromString(stringValue, &value).isOK()) { |
37 | value = 0; | 37 | value = 0; |
38 | @@ -365,7 +365,7 @@ Status parseProcMemInfo(const std::vector<StringData>& keys, | 38 | @@ -365,7 +365,7 @@ Status parseProcMemInfo(const std::vecto |
39 | 39 | ||
40 | StringData stringValue((*partIt).begin(), (*partIt).end()); | 40 | StringData stringValue((*partIt).begin(), (*partIt).end()); |
41 | 41 | ||
@@ -44,7 +44,7 @@ index 36f2ae0254..2c164bcbf3 100644 | |||
44 | 44 | ||
45 | if (!parseNumberFromString(stringValue, &value).isOK()) { | 45 | if (!parseNumberFromString(stringValue, &value).isOK()) { |
46 | value = 0; | 46 | value = 0; |
47 | @@ -426,7 +426,7 @@ Status parseProcDiskStats(const std::vector<StringData>& disks, | 47 | @@ -426,7 +426,7 @@ Status parseProcDiskStats(const std::vec |
48 | StringData data, | 48 | StringData data, |
49 | BSONObjBuilder* builder) { | 49 | BSONObjBuilder* builder) { |
50 | bool foundKeys = false; | 50 | bool foundKeys = false; |
@@ -53,7 +53,7 @@ index 36f2ae0254..2c164bcbf3 100644 | |||
53 | stats.reserve(kDiskFieldCount); | 53 | stats.reserve(kDiskFieldCount); |
54 | 54 | ||
55 | using string_split_iterator = boost::split_iterator<StringData::const_iterator>; | 55 | using string_split_iterator = boost::split_iterator<StringData::const_iterator>; |
56 | @@ -501,7 +501,7 @@ Status parseProcDiskStats(const std::vector<StringData>& disks, | 56 | @@ -501,7 +501,7 @@ Status parseProcDiskStats(const std::vec |
57 | 57 | ||
58 | StringData stringValue((*partIt).begin(), (*partIt).end()); | 58 | StringData stringValue((*partIt).begin(), (*partIt).end()); |
59 | 59 | ||
@@ -62,6 +62,3 @@ index 36f2ae0254..2c164bcbf3 100644 | |||
62 | 62 | ||
63 | if (!parseNumberFromString(stringValue, &value).isOK()) { | 63 | if (!parseNumberFromString(stringValue, &value).isOK()) { |
64 | value = 0; | 64 | value = 0; |
65 | -- | ||
66 | 2.14.1 | ||
67 | |||
diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0001-mongo-Add-using-std-string.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0001-mongo-Add-using-std-string.patch deleted file mode 100644 index e517d53d1..000000000 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0001-mongo-Add-using-std-string.patch +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | From 5fdec9592285f5976345fbccb3d07fae1245ab53 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 2 Aug 2017 15:41:22 -0700 | ||
4 | Subject: [PATCH] mongo: Add using std::string | ||
5 | |||
6 | This is needed with latest clang | ||
7 | Fixes | ||
8 | src/mongo/db/dbwebserver.cpp:206:23: error: use of undeclared identifier 'string'; did you mean 'String'? | ||
9 | static vector<string> commands; | ||
10 | ^~~~~~ | ||
11 | String | ||
12 | |||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | src/mongo/db/dbwebserver.cpp | 1 + | ||
16 | src/mongo/db/matcher/expression_leaf.cpp | 2 ++ | ||
17 | src/mongo/db/repl/master_slave.cpp | 1 + | ||
18 | src/mongo/util/net/miniwebserver.cpp | 1 + | ||
19 | 4 files changed, 5 insertions(+) | ||
20 | |||
21 | diff --git a/src/mongo/db/dbwebserver.cpp b/src/mongo/db/dbwebserver.cpp | ||
22 | index b202e0500b..0255613524 100644 | ||
23 | --- a/src/mongo/db/dbwebserver.cpp | ||
24 | +++ b/src/mongo/db/dbwebserver.cpp | ||
25 | @@ -67,6 +67,7 @@ namespace mongo { | ||
26 | using std::map; | ||
27 | using std::stringstream; | ||
28 | using std::vector; | ||
29 | +using std::string; | ||
30 | |||
31 | using namespace html; | ||
32 | |||
33 | diff --git a/src/mongo/db/matcher/expression_leaf.cpp b/src/mongo/db/matcher/expression_leaf.cpp | ||
34 | index d562bff141..4d931985e2 100644 | ||
35 | --- a/src/mongo/db/matcher/expression_leaf.cpp | ||
36 | +++ b/src/mongo/db/matcher/expression_leaf.cpp | ||
37 | @@ -44,6 +44,8 @@ | ||
38 | #include "mongo/stdx/memory.h" | ||
39 | #include "mongo/util/mongoutils/str.h" | ||
40 | |||
41 | +using std::string; | ||
42 | + | ||
43 | namespace mongo { | ||
44 | |||
45 | Status LeafMatchExpression::setPath(StringData path) { | ||
46 | diff --git a/src/mongo/db/repl/master_slave.cpp b/src/mongo/db/repl/master_slave.cpp | ||
47 | index 05faad1259..ea25d7151b 100644 | ||
48 | --- a/src/mongo/db/repl/master_slave.cpp | ||
49 | +++ b/src/mongo/db/repl/master_slave.cpp | ||
50 | @@ -78,6 +78,7 @@ using std::endl; | ||
51 | using std::max; | ||
52 | using std::min; | ||
53 | using std::set; | ||
54 | +using std::string; | ||
55 | using std::stringstream; | ||
56 | using std::unique_ptr; | ||
57 | using std::vector; | ||
58 | diff --git a/src/mongo/util/net/miniwebserver.cpp b/src/mongo/util/net/miniwebserver.cpp | ||
59 | index 5f4165d42f..239720c349 100644 | ||
60 | --- a/src/mongo/util/net/miniwebserver.cpp | ||
61 | +++ b/src/mongo/util/net/miniwebserver.cpp | ||
62 | @@ -46,6 +46,7 @@ namespace mongo { | ||
63 | |||
64 | using std::shared_ptr; | ||
65 | using std::stringstream; | ||
66 | +using std::string; | ||
67 | using std::vector; | ||
68 | |||
69 | MiniWebServer::MiniWebServer(const string& name, const string& ip, int port, ServiceContext* ctx) | ||
70 | -- | ||
71 | 2.13.3 | ||
72 | |||
diff --git a/meta-oe/recipes-dbs/mongodb/mongodb/0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch b/meta-oe/recipes-dbs/mongodb/mongodb/0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch index 95f9c1c1c..dc488ad7e 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb/0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch +++ b/meta-oe/recipes-dbs/mongodb/mongodb/0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch | |||
@@ -12,10 +12,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
12 | src/mongo/s/SConscript | 1 + | 12 | src/mongo/s/SConscript | 1 + |
13 | 1 file changed, 1 insertion(+) | 13 | 1 file changed, 1 insertion(+) |
14 | 14 | ||
15 | diff --git a/src/mongo/s/SConscript b/src/mongo/s/SConscript | 15 | Index: git/src/mongo/s/SConscript |
16 | index 71720be517..51bd199127 100644 | 16 | =================================================================== |
17 | --- a/src/mongo/s/SConscript | 17 | --- git.orig/src/mongo/s/SConscript |
18 | +++ b/src/mongo/s/SConscript | 18 | +++ git/src/mongo/s/SConscript |
19 | @@ -317,5 +317,6 @@ env.Library( | 19 | @@ -317,5 +317,6 @@ env.Library( |
20 | "$BUILD_DIR/mongo/db/s/sharding", | 20 | "$BUILD_DIR/mongo/db/s/sharding", |
21 | "$BUILD_DIR/mongo/executor/network_interface_factory", | 21 | "$BUILD_DIR/mongo/executor/network_interface_factory", |
@@ -23,6 +23,3 @@ index 71720be517..51bd199127 100644 | |||
23 | + "$BUILD_DIR/mongo/s/local_sharding_info", | 23 | + "$BUILD_DIR/mongo/s/local_sharding_info", |
24 | ], | 24 | ], |
25 | ) | 25 | ) |
26 | -- | ||
27 | 2.13.3 | ||
28 | |||
diff --git a/meta-oe/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/recipes-dbs/mongodb/mongodb_git.bb index 723663f0a..bb3ff3b40 100644 --- a/meta-oe/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/recipes-dbs/mongodb/mongodb_git.bb | |||
@@ -11,7 +11,6 @@ PV = "3.4.13+git${SRCPV}" | |||
11 | SRCREV = "fbdef2ccc53e0fcc9afb570063633d992b2aae42" | 11 | SRCREV = "fbdef2ccc53e0fcc9afb570063633d992b2aae42" |
12 | SRC_URI = "git://github.com/mongodb/mongo.git;branch=v3.4 \ | 12 | SRC_URI = "git://github.com/mongodb/mongo.git;branch=v3.4 \ |
13 | file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \ | 13 | file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \ |
14 | file://0001-mongo-Add-using-std-string.patch \ | ||
15 | file://0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch \ | 14 | file://0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch \ |
16 | file://0001-Use-long-long-instead-of-int64_t.patch \ | 15 | file://0001-Use-long-long-instead-of-int64_t.patch \ |
17 | file://0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch \ | 16 | file://0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch \ |