mongodb: new package
PATCH 1/1 mongodb: new package
Compiled and tested on arm (beaglebone black), aarch64 (qemu), i386 (qemu) and x86_64 (qemu).
--- package/Config.in | 1 + package/mongodb/Config.in | 20 ++++++++++++++ package/mongodb/mongodb.hash | 2 ++ package/mongodb/mongodb.mk | 64 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 package/mongodb/Config.in create mode 100644 package/mongodb/mongodb.hash create mode 100644 package/mongodb/mongodb.mk
package/Config.in +1 -0
@@ -783,6 +783,7 @@ menu "Database" source "package/gdbm/Config.in" source "package/kompexsqlite/Config.in" source "package/leveldb/Config.in" + source "package/mongodb/Config.in" source "package/mysql/Config.in" source "package/postgresql/Config.in" source "package/redis/Config.in"
package/mongodb/Config.in new file +20 -0
@@ -0,0 +1,20 @@ +config BR2_PACKAGE_MONGODB + bool "mongodb" + depends on BR2_TOOLCHAIN_USES_GLIBC # needs glibc malloc_usable_size + depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11 + help + MongoDB is a cross-platform document-oriented database (NoSQL). + + It uses JSON-like documents with dynamic schemas (BSON), making + the integration of data in certain types of applications easier + and faster. + + https://www.mongodb.org/ + +comment "mongodb needs a (e)glibc toolchain w/ wchar, threads, C++, gcc >= 4.8" + depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \ + !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_USES_GLIBC || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
package/mongodb/mongodb.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 316496375f41f322839529d36e75e3275fdec468f7656fdbeb53ec8dc1ca5275 mongodb-r3.2.0.tar.gz
package/mongodb/mongodb.mk new file +64 -0
64 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH 1/1 mongodb: new package
Quoted 34 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Sergio" == Sergio Prado <[email protected]> writes:
Compiled and tested on arm (beaglebone black), aarch64 (qemu), i386 (qemu) and
x86_64(qemu).Signed-off-by Sergio Prado <[email protected]>--- package/Config.in | 1 + package/mongodb/Config.in | 20 ++++++++++++++ package/mongodb/mongodb.hash | 2 ++ package/mongodb/mongodb.mk | 64 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 87 insertions(+) create mode 100644 package/mongodb/Config.in create mode 100644 package/mongodb/mongodb.hash create mode 100644 package/mongodb/mongodb.mkpackage/Config.in +1
-0@@ -783,6 +783,7 @@ menu "Database" source "package/gdbm/Config.in" source "package/kompexsqlite/Config.in" source "package/leveldb/Config.in" + source "package/mongodb/Config.in" source "package/mysql/Config.in" source "package/postgresql/Config.in" source "package/redis/Config.in"package/mongodb/Config.in new file +0
-0
package/mongodb/Config.in line 7
Quoted 7 lines
package/mongodb/Config.in new file +7
-0@@ -0,0 +1,20 @@ +config BR2_PACKAGE_MONGODB + bool "mongodb" + depends on BR2_TOOLCHAIN_USES_GLIBC # needs glibc malloc_usable_size + depends on BR2_USE_WCHAR + depends on BR2_TOOLCHAIN_HAS_THREADS + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # C++11
mongodb contains this code in src/mongo/platform/bits.h:
#if defined(__x86_64__) || defined(__amd64__) || defined(_WIN64) || defined(__aarch64__) || \
defined(__powerpc64__)#define MONGO_PLATFORM_64
#elif defined(__i386__) || defined(_WIN32) || defined(__arm__) #define MONGO_PLATFORM_32
#else
#error "unknown platform"
#endif
So I've added a BR2_PACKAGE_MONGODB_ARCH_SUPPORTS variable like we do elsewhere to ensure mongodb is only available on those archs.
It also builds with -Werror by default, which was causing compilation errors for me, so I've added --disable-warnings-as-errors.
Committed with those fixes, thanks.
Signature · 1 line
Bye, Peter Korsgaard