mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-02 01:50:18 +00:00
mongodb: Upgrade to 3.4.6
Add missing Zlib to license list Add patches to fix build issue with gcc7 and missing internal build dependency Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
From 5fdec9592285f5976345fbccb3d07fae1245ab53 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 2 Aug 2017 15:41:22 -0700
|
||||
Subject: [PATCH] mongo: Add using std::string
|
||||
|
||||
This is needed with latest clang
|
||||
Fixes
|
||||
src/mongo/db/dbwebserver.cpp:206:23: error: use of undeclared identifier 'string'; did you mean 'String'?
|
||||
static vector<string> commands;
|
||||
^~~~~~
|
||||
String
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/mongo/db/dbwebserver.cpp | 1 +
|
||||
src/mongo/db/matcher/expression_leaf.cpp | 2 ++
|
||||
src/mongo/db/repl/master_slave.cpp | 1 +
|
||||
src/mongo/util/net/miniwebserver.cpp | 1 +
|
||||
4 files changed, 5 insertions(+)
|
||||
|
||||
diff --git a/src/mongo/db/dbwebserver.cpp b/src/mongo/db/dbwebserver.cpp
|
||||
index b202e0500b..0255613524 100644
|
||||
--- a/src/mongo/db/dbwebserver.cpp
|
||||
+++ b/src/mongo/db/dbwebserver.cpp
|
||||
@@ -67,6 +67,7 @@ namespace mongo {
|
||||
using std::map;
|
||||
using std::stringstream;
|
||||
using std::vector;
|
||||
+using std::string;
|
||||
|
||||
using namespace html;
|
||||
|
||||
diff --git a/src/mongo/db/matcher/expression_leaf.cpp b/src/mongo/db/matcher/expression_leaf.cpp
|
||||
index d562bff141..4d931985e2 100644
|
||||
--- a/src/mongo/db/matcher/expression_leaf.cpp
|
||||
+++ b/src/mongo/db/matcher/expression_leaf.cpp
|
||||
@@ -44,6 +44,8 @@
|
||||
#include "mongo/stdx/memory.h"
|
||||
#include "mongo/util/mongoutils/str.h"
|
||||
|
||||
+using std::string;
|
||||
+
|
||||
namespace mongo {
|
||||
|
||||
Status LeafMatchExpression::setPath(StringData path) {
|
||||
diff --git a/src/mongo/db/repl/master_slave.cpp b/src/mongo/db/repl/master_slave.cpp
|
||||
index 05faad1259..ea25d7151b 100644
|
||||
--- a/src/mongo/db/repl/master_slave.cpp
|
||||
+++ b/src/mongo/db/repl/master_slave.cpp
|
||||
@@ -78,6 +78,7 @@ using std::endl;
|
||||
using std::max;
|
||||
using std::min;
|
||||
using std::set;
|
||||
+using std::string;
|
||||
using std::stringstream;
|
||||
using std::unique_ptr;
|
||||
using std::vector;
|
||||
diff --git a/src/mongo/util/net/miniwebserver.cpp b/src/mongo/util/net/miniwebserver.cpp
|
||||
index 5f4165d42f..239720c349 100644
|
||||
--- a/src/mongo/util/net/miniwebserver.cpp
|
||||
+++ b/src/mongo/util/net/miniwebserver.cpp
|
||||
@@ -46,6 +46,7 @@ namespace mongo {
|
||||
|
||||
using std::shared_ptr;
|
||||
using std::stringstream;
|
||||
+using std::string;
|
||||
using std::vector;
|
||||
|
||||
MiniWebServer::MiniWebServer(const string& name, const string& ip, int port, ServiceContext* ctx)
|
||||
--
|
||||
2.13.3
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
From 5759878e5d278f11a1063e8fccd1e6b7b54caadf Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 2 Aug 2017 16:25:37 -0700
|
||||
Subject: [PATCH 2/2] d_state.cpp: Add missing dependenncy on
|
||||
local_sharding_info
|
||||
|
||||
Fixes
|
||||
| src/mongo/s/d_state.cpp:81: error: undefined reference to 'mongo::enableLocalShardingInfo(mongo::ServiceContext*, std::function<bool (mongo::OperationContext*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>)'
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/mongo/s/SConscript | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/mongo/s/SConscript b/src/mongo/s/SConscript
|
||||
index 71720be517..51bd199127 100644
|
||||
--- a/src/mongo/s/SConscript
|
||||
+++ b/src/mongo/s/SConscript
|
||||
@@ -317,5 +317,6 @@ env.Library(
|
||||
"$BUILD_DIR/mongo/db/s/sharding",
|
||||
"$BUILD_DIR/mongo/executor/network_interface_factory",
|
||||
"$BUILD_DIR/mongo/s/client/shard_local",
|
||||
+ "$BUILD_DIR/mongo/s/local_sharding_info",
|
||||
],
|
||||
)
|
||||
--
|
||||
2.13.3
|
||||
|
||||
@@ -1,16 +1,18 @@
|
||||
SUMMARY = "mongodb"
|
||||
LICENSE = "AGPL-3.0 & Apache-2.0"
|
||||
LICENSE = "AGPL-3.0 & Apache-2.0 & Zlib"
|
||||
LIC_FILES_CHKSUM = "file://GNU-AGPL-3.0.txt;md5=73f1eb20517c55bf9493b7dd6e480788 \
|
||||
file://APACHE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
|
||||
|
||||
DEPENDS = "openssl libpcre libpcap zlib"
|
||||
DEPENDS = "openssl libpcre libpcap zlib python boost"
|
||||
|
||||
inherit scons
|
||||
|
||||
PV = "3.3.0+git${SRCPV}"
|
||||
SRCREV = "aacd231be0626a204cb40908afdf62c4b67bb0ad"
|
||||
SRC_URI = "git://github.com/mongodb/mongo.git;branch=master \
|
||||
PV = "3.4.6+git${SRCPV}"
|
||||
SRCREV = "c55eb86ef46ee7aede3b1e2a5d184a7df4bfb5b5"
|
||||
SRC_URI = "git://github.com/mongodb/mongo.git;branch=v3.4 \
|
||||
file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \
|
||||
file://0001-mongo-Add-using-std-string.patch \
|
||||
file://0002-d_state.cpp-Add-missing-dependenncy-on-local_shardin.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
Reference in New Issue
Block a user