summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/mongodb/mongodb_git.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/mongodb/mongodb_git.bb')
-rw-r--r--meta-oe/recipes-support/mongodb/mongodb_git.bb77
1 files changed, 0 insertions, 77 deletions
diff --git a/meta-oe/recipes-support/mongodb/mongodb_git.bb b/meta-oe/recipes-support/mongodb/mongodb_git.bb
deleted file mode 100644
index 8acbf071b4..0000000000
--- a/meta-oe/recipes-support/mongodb/mongodb_git.bb
+++ /dev/null
@@ -1,77 +0,0 @@
1SUMMARY = "mongodb"
2LICENSE = "AGPL-3.0 & Apache-2.0 & Zlib"
3LIC_FILES_CHKSUM = "file://GNU-AGPL-3.0.txt;md5=73f1eb20517c55bf9493b7dd6e480788 \
4 file://APACHE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57"
5
6DEPENDS = "openssl libpcre libpcap zlib python boost"
7
8inherit scons dos2unix siteinfo
9
10PV = "3.4.6+git${SRCPV}"
11SRCREV = "c55eb86ef46ee7aede3b1e2a5d184a7df4bfb5b5"
12SRC_URI = "git://github.com/mongodb/mongo.git;branch=v3.4 \
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 \
16 file://0001-Use-long-long-instead-of-int64_t.patch \
17 file://0001-Use-__GLIBC__-to-control-use-of-gnu_get_libc_version.patch \
18 file://0001-Use-strerror_r-only-on-glibc-systems.patch \
19 file://0002-Add-a-definition-for-the-macro-__ELF_NATIVE_CLASS.patch \
20 file://0003-Conditionalize-glibc-specific-strerror_r.patch \
21 file://arm64-support.patch \
22 file://0001-IntelRDFPMathLib20U1-Check-for-__DEFINED_wchar_t.patch \
23 file://disable-hw-crc32-on-arm64-s390x.patch \
24 "
25SRC_URI_append_libc-musl ="\
26 file://0004-wiredtiger-Disable-strtouq-on-musl.patch \
27 "
28S = "${WORKDIR}/git"
29
30# Wiredtiger supports only 64-bit platforms
31PACKAGECONFIG_x86-64 ??= "tcmalloc wiredtiger"
32PACKAGECONFIG_aarch64 ??= "tcmalloc wiredtiger"
33PACKAGECONFIG ??= "tcmalloc"
34# gperftools compilation fails for arm below v7 because of missing support of
35# dmb operation. So we use system-allocator instead of tcmalloc
36PACKAGECONFIG_remove_armv6 = "tcmalloc"
37PACKAGECONFIG_remove_libc-musl = "tcmalloc"
38
39#std::current_exception is undefined for arm < v6
40COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*"
41COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*"
42COMPATIBLE_MACHINE_armv7a = "(!.*armv7a).*"
43COMPATIBLE_MACHINE_armv7ve = "(!.*armv7ve).*"
44COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*"
45COMPATIBLE_MACHINE_powerpc = "(!.*ppc).*"
46
47PACKAGECONFIG[tcmalloc] = "--use-system-tcmalloc,--allocator=system,gperftools,"
48PACKAGECONFIG[wiredtiger] = "--wiredtiger=on,--wiredtiger=off,,"
49
50EXTRA_OESCONS = "--prefix=${D}${prefix} \
51 LIBPATH=${STAGING_LIBDIR} \
52 LINKFLAGS='${LDFLAGS}' \
53 CXXFLAGS='${CXXFLAGS}' \
54 TARGET_ARCH=${TARGET_ARCH} \
55 --ssl \
56 --disable-warnings-as-errors \
57 --use-system-pcre \
58 --use-system-zlib \
59 --js-engine=none \
60 --nostrip \
61 --endian=${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'little', 'big', d)} \
62 ${PACKAGECONFIG_CONFARGS} \
63 mongod mongos"
64
65do_configure_prepend() {
66 # tests use hex floats, not supported in plain C++
67 sed -e 's|-std=c++11|-std=gnu++11|g' -i ${S}/SConstruct
68}
69scons_do_compile() {
70 ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} ${EXTRA_OESCONS} || \
71 die "scons build execution failed."
72}
73
74scons_do_install() {
75 ${STAGING_BINDIR_NATIVE}/scons install ${EXTRA_OESCONS}|| \
76 die "scons install execution failed."
77}