mongodb patch
PATCH v2 1/1 mongodb patch
A v2 Patch that adds libpcap dependency. Otherwise if libpcap is available, scons would detect that and build mongosniff that links against libpcap. So if we don't depend on libpcap but it is there, we get a QA warning. If we depend on it, scons will always build mongosniff and always link against it.
Sven Ebenfeld (1):
mongodb: 2.6.0 -> 3.3.0 and remove from pnblacklist
...Make-it-possible-to-disable-the-use-of-v8.patch | 50 -------- ...to-use-build-settings-from-environment-va.patch | 67 +++++++++++ ...02-Fix-linking-when-scripting-is-disabled.patch | 25 ---- ...d-mongo-binary-when-scripting-is-disabled.patch | 64 ----------- ...ce-os.uname-with-os.getenv-OE_TARGET_ARCH.patch | 50 -------- ...ports-atomic-ops-for-armv5-and-up-but-onl.patch | 127 --------------------- meta-oe/recipes-support/mongodb/mongodb_git.bb | 66 ++++++----- 7 files changed, 105 insertions(+), 344 deletions(-) delete mode 100644 meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch create mode 100644 meta-oe/recipes-support/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch delete mode 100644 meta-oe/recipes-support/mongodb/mongodb/0002-Fix-linking-when-scripting-is-disabled.patch delete mode 100644 meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch delete mode 100644 meta-oe/recipes-support/mongodb/mongodb/0004-replace-os.uname-with-os.getenv-OE_TARGET_ARCH.patch delete mode 100644 meta-oe/recipes-support/mongodb/mongodb/0005-GCC-4.7-supports-atomic-ops-for-armv5-and-up-but-onl.patch
Signature · 1 line
1.9.1
PATCH v2 1/1 mongodb: 2.6.0 -> 3.3.0 and remove from pnblacklist
Since building mongodb was impossible currently, I updated the recipe and got it working on arm >= v6, x86 and x86_64. Unfortunately, it fails building with system-boost for the current version 1.60. The corresponding ticket SERVER-17294 of mongodb jira is still in progress. So we use the built-in version of boost.
--- ...Make-it-possible-to-disable-the-use-of-v8.patch | 50 -------- ...to-use-build-settings-from-environment-va.patch | 67 +++++++++++ ...02-Fix-linking-when-scripting-is-disabled.patch | 25 ---- ...d-mongo-binary-when-scripting-is-disabled.patch | 64 ----------- ...ce-os.uname-with-os.getenv-OE_TARGET_ARCH.patch | 50 -------- ...ports-atomic-ops-for-armv5-and-up-but-onl.patch | 127 --------------------- meta-oe/recipes-support/mongodb/mongodb_git.bb | 66 ++++++----- 7 files changed, 105 insertions(+), 344 deletions(-) delete mode 100644 meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch create mode 100644 meta-oe/recipes-support/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch delete mode 100644 meta-oe/recipes-support/mongodb/mongodb/0002-Fix-linking-when-scripting-is-disabled.patch delete mode 100644 meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch delete mode 100644 meta-oe/recipes-support/mongodb/mongodb/0004-replace-os.uname-with-os.getenv-OE_TARGET_ARCH.patch delete mode 100644 meta-oe/recipes-support/mongodb/mongodb/0005-GCC-4.7-supports-atomic-ops-for-armv5-and-up-but-onl.patch
meta-oe/recipes-support/mongodb/mongodb/0001-Make-it-possible-to-disable-the-use-of-v8.patch deleted +0 -50
@@ -1,50 +0,0 @@ -From f1bd00e7f54aad6479bc809c27d5cd3c2fb993eb Mon Sep 17 00:00:00 2001 -From: Michael Hudson-Doyle <[email protected]> -Date: Fri, 20 Dec 2013 11:10:43 +1300 -Subject: [PATCH 1/5] Make it possible to disable the use of v8. - -Currently v8 is always built in, no matter what you pass to scons. - -This removes the (useless) --usev8 flag for scons and replaces it with a ---disable-scripting option instead. ---- - SConstruct | 9 ++++++--- - 1 file changed, 6 insertions(+), 3 deletions(-) - -diff --git a/SConstruct b/SConstruct -index 3886d1b..6e0ef3b 100644 ---- a/SConstruct -+++ b/SConstruct -@@ -225,7 +225,7 @@ add_option( "asio" , "Use Asynchronous IO (NOT READY YET)" , 0 , True ) - add_option( "ssl" , "Enable SSL" , 0 , True ) - - # library choices --add_option( "usev8" , "use v8 for javascript" , 0 , True ) -+add_option( "disable-scripting" , "do not build support for javascript" , 0 , True ) - add_option( "libc++", "use libc++ (experimental, requires clang)", 0, True ) - - # mongo feature options -@@ -442,7 +442,7 @@ static = has_option( "static" ) - - noshell = has_option( "noshell" ) - --usev8 = has_option( "usev8" ) -+disable_scripting = has_option( "disable-scripting" ) - - asio = has_option( "asio" ) - -@@ -600,7 +600,10 @@ if has_option( "durableDefaultOn" ): - if has_option( "durableDefaultOff" ): - env.Append( CPPDEFINES=[ "_DURABLEDEFAULTOFF" ] ) - --usev8 = True -+if disable_scripting or justClientLib: -+ usev8 = False -+else: -+ usev8 = True - - extraLibPlaces = [] - --- -1.9.0 -
meta-oe/recipes-support/mongodb/mongodb/0001-Tell-scons-to-use-build-settings-from-environment-va.patch new file +67 -0
67 lines not on this page · raw message
meta-oe/recipes-support/mongodb/mongodb/0002-Fix-linking-when-scripting-is-disabled.patch deleted +0 -25
@@ -1,25 +0,0 @@ -From 5b22f64a2e2237082d2733698b07147d27b09ad2 Mon Sep 17 00:00:00 2001 -From: Michael Hudson-Doyle <[email protected]> -Date: Fri, 20 Dec 2013 12:28:27 +1300 -Subject: [PATCH 2/5] Fix linking when scripting is disabled. - ---- - src/mongo/scripting/engine_none.cpp | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/mongo/scripting/engine_none.cpp b/src/mongo/scripting/engine_none.cpp -index f5c7109..9ae9d57 100644 ---- a/src/mongo/scripting/engine_none.cpp -+++ b/src/mongo/scripting/engine_none.cpp -@@ -33,4 +33,8 @@ namespace mongo { - void ScriptEngine::setup() { - // noop - } -+ -+ std::string ScriptEngine::getInterpreterVersionString() { -+ return "none"; -+ } - } --- -1.9.0 -
meta-oe/recipes-support/mongodb/mongodb/0003-Do-not-build-mongo-binary-when-scripting-is-disabled.patch deleted +0 -64
64 lines not on this page · raw message
meta-oe/recipes-support/mongodb/mongodb/0004-replace-os.uname-with-os.getenv-OE_TARGET_ARCH.patch deleted +0 -50
50 lines not on this page · raw message
meta-oe/recipes-support/mongodb/mongodb/0005-GCC-4.7-supports-atomic-ops-for-armv5-and-up-but-onl.patch deleted +0 -127
127 lines not on this page · raw message
meta-oe/recipes-support/mongodb/mongodb_git.bb +38 -28
82 lines not on this page · raw message
Signature · 1 line
1.9.1
Re: [meta-oe][PATCH v2] mongodb: 2.6.0 -> 3.3.0 and remove from pnblacklist
meta-oe/recipes-support/mongodb/mongodb_git.bb LICENSE = "AGPL-3.0 & Apache-2.0" · line 6
Quoted 4 lines · Sven Ebenfeld
meta-oe/recipes-support/mongodb/mongodb_git.bb +1
-3-DEPENDS = "openssl libpcre boost libpcap" -# Mongo uses tcmalloc on x86_64, which is provided by gperftools -DEPENDS_append_x86-64 = " gperftools" +DEPENDS = "openssl libpcre libpcap zlib"
why is gperftools dep dropped ?
Re: [meta-oe][PATCH v2] mongodb: 2.6.0 -> 3.3.0 and remove from pnblacklist
Quoted 10 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Sunday, January 31, 2016 5:02 PM
To: openembeded-devel <openembedded- [email protected]>
Subject: Re: [oe] [meta-oe][PATCH v2] mongodb: 2.6.0 -> 3.3.0 and remove from pnblacklist
Quoted 8 lines
meta-oe/recipes-support/mongodb/mongodb_git.bb LICENSE = "AGPL-3.0 & Apache-2.0" · line 6
Quoted 4 lines · Sven Ebenfeld
meta-oe/recipes-support/mongodb/mongodb_git.bb +1
-3-DEPENDS = "openssl libpcre boost libpcap" -# Mongo uses tcmalloc on x86_64, which is provided by gperftools -DEPENDS_append_x86-64 = " gperftools" +DEPENDS = "openssl libpcre libpcap zlib"why is gperftools dep dropped ?
gperftools dependency is added by PACKAGECONFIG[tcmalloc] if the parameters require it.
Quoted 5 lines
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [meta-oe][PATCH v2] mongodb: 2.6.0 -> 3.3.0 and remove from pnblacklist
Quoted 19 lines · Sven Ebenfeld
Quoted 10 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Khem Raj
Sent: Sunday, January 31, 2016 5:02 PM
To: openembeded-devel <openembedded- [email protected]>
Subject: Re: [oe] [meta-oe][PATCH v2] mongodb: 2.6.0 -> 3.3.0 and remove from pnblacklistQuoted 8 lines
meta-oe/recipes-support/mongodb/mongodb_git.bb LICENSE = "AGPL-3.0 & Apache-2.0" · line 6
Quoted 4 lines · Sven Ebenfeld
meta-oe/recipes-support/mongodb/mongodb_git.bb +1
-3-DEPENDS = "openssl libpcre boost libpcap" -# Mongo uses tcmalloc on x86_64, which is provided by gperftools -DEPENDS_append_x86-64 = " gperftools" +DEPENDS = "openssl libpcre libpcap zlib"why is gperftools dep dropped ?
Quoted 2 lines
gperftools dependency is added by PACKAGECONFIG[tcmalloc] if the parameters require it.
ah yes I see, thanks