diff options
Diffstat (limited to 'meta-oe/recipes-support/mongodb/mongodb_git.bb')
| -rw-r--r-- | meta-oe/recipes-support/mongodb/mongodb_git.bb | 77 |
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 @@ | |||
| 1 | SUMMARY = "mongodb" | ||
| 2 | LICENSE = "AGPL-3.0 & Apache-2.0 & Zlib" | ||
| 3 | LIC_FILES_CHKSUM = "file://GNU-AGPL-3.0.txt;md5=73f1eb20517c55bf9493b7dd6e480788 \ | ||
| 4 | file://APACHE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" | ||
| 5 | |||
| 6 | DEPENDS = "openssl libpcre libpcap zlib python boost" | ||
| 7 | |||
| 8 | inherit scons dos2unix siteinfo | ||
| 9 | |||
| 10 | PV = "3.4.6+git${SRCPV}" | ||
| 11 | SRCREV = "c55eb86ef46ee7aede3b1e2a5d184a7df4bfb5b5" | ||
| 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 \ | ||
| 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 | " | ||
| 25 | SRC_URI_append_libc-musl ="\ | ||
| 26 | file://0004-wiredtiger-Disable-strtouq-on-musl.patch \ | ||
| 27 | " | ||
| 28 | S = "${WORKDIR}/git" | ||
| 29 | |||
| 30 | # Wiredtiger supports only 64-bit platforms | ||
| 31 | PACKAGECONFIG_x86-64 ??= "tcmalloc wiredtiger" | ||
| 32 | PACKAGECONFIG_aarch64 ??= "tcmalloc wiredtiger" | ||
| 33 | PACKAGECONFIG ??= "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 | ||
| 36 | PACKAGECONFIG_remove_armv6 = "tcmalloc" | ||
| 37 | PACKAGECONFIG_remove_libc-musl = "tcmalloc" | ||
| 38 | |||
| 39 | #std::current_exception is undefined for arm < v6 | ||
| 40 | COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*" | ||
| 41 | COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*" | ||
| 42 | COMPATIBLE_MACHINE_armv7a = "(!.*armv7a).*" | ||
| 43 | COMPATIBLE_MACHINE_armv7ve = "(!.*armv7ve).*" | ||
| 44 | COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*" | ||
| 45 | COMPATIBLE_MACHINE_powerpc = "(!.*ppc).*" | ||
| 46 | |||
| 47 | PACKAGECONFIG[tcmalloc] = "--use-system-tcmalloc,--allocator=system,gperftools," | ||
| 48 | PACKAGECONFIG[wiredtiger] = "--wiredtiger=on,--wiredtiger=off,," | ||
| 49 | |||
| 50 | EXTRA_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 | |||
| 65 | do_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 | } | ||
| 69 | scons_do_compile() { | ||
| 70 | ${STAGING_BINDIR_NATIVE}/scons ${PARALLEL_MAKE} ${EXTRA_OESCONS} || \ | ||
| 71 | die "scons build execution failed." | ||
| 72 | } | ||
| 73 | |||
| 74 | scons_do_install() { | ||
| 75 | ${STAGING_BINDIR_NATIVE}/scons install ${EXTRA_OESCONS}|| \ | ||
| 76 | die "scons install execution failed." | ||
| 77 | } | ||
