Commit Graph

26 Commits

Author SHA1 Message Date
Gyorgy Sarvari 491dd81581 mongodb: add tzdata to runtime dependencies
Though tzdata is present in almost all images, some of them are lacking it:
most notably minimal ptest images. mongodb relies on tzdata, otherwise it
doesn't even start up. To ensure that mongodb can be started up
successfully, explicitly add tzdata to its dependencies.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
2025-11-02 15:08:54 +01:00
Martin Jansa a3e374540b mongodb: fix chown user for multilib builds
* the user is named mongodb (BPN) and in multilib builds this fails with:
  chown: invalid user: 'lib32-mongodb:lib32-mongodb'

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2023-04-13 08:26:01 -04:00
Davide Gardenal aca019a2d0 mongodb: ignore unrelated CVEs
CVE-2014-8180, CVE-2017-18381 and CVE-2017-2665 are not affecting our
configuration so they can be safely ignored.

Signed-off-by: Davide Gardenal <davide.gardenal@huawei.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit ed904e6541)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2022-07-21 07:17:15 -07:00
Khem Raj 2e0f15d3f4 mongodb: Fix aarch64 build with gcc12
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-14 19:42:10 -07:00
Khem Raj 6904c37d29 mongodb: Update to 4.4.13
Drop upstreamed patches which are present in this release
Add a patch to fix narrowing issue

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-13 19:21:41 -07:00
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Peter Kjellerstedt 89391ee45e mongodb: Create /var/log/mongodb in runtime
/var/log is normally a link to /var/volatile/log and /var/volatile is a
tmpfs mount. So anything created in /var/log will not be available when
the tmpfs is mounted.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Peter Kjellerstedt 563577f488 mongodb: A little clean up
This cleans up whitespace, and avoids using ${...} for shell
variables.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Khem Raj 581167a258 mongodb: Upgrade to 4.4.7
Fix build with glibc 2.34+ while here

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-03 08:53:04 -07:00
Khem Raj de60098b87 mongodb: Enable wiredtiger only on aarch64/x86_64 hosts
Other 64bit arch where its enabled is ppc64le and it does not compile
since build/opt/third_party/wiredtiger/src/checksum/power8/crc32.o is
not built, its not setting HOST_ARCH to ppc64le due to cross compiling

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-18 08:33:07 -07:00
Khem Raj bbef20780c mongodb: Fix -Wc++11-narrowing warning on 32bit
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-01 09:00:39 -07:00
Khem Raj e17fc085c0 mongodb: Change PV to 4.4.6
4.4.6 has been released from same SHA which was used for rc0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-06-01 07:49:06 -07:00
Khem Raj c04080a703 mongodb: Do not use MINSIGSTKSZ
glibc 2.34 has made MINSIGSTKSZ non-constant

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-11 11:07:08 -07:00
Khem Raj 44664a2d66 mongodb: Update to 4.4.6-rc0
Drop upstreamed patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-05 09:46:08 -07:00
Khem Raj 2e9ce44813 mongodb: Fix build on ppc64le
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-13 19:41:13 -08:00
Khem Raj 71668086d0 mongodb: Fix cross build on ppc64le
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-13 10:06:17 -08:00
Khem Raj 2642184903 mongodb: Upgrade to 4.4.4
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-06 18:47:15 -08:00
Khem Raj c9cd58aa6a mongodb: Include <optional> c++ header
Fixes build with gcc11

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-03-03 13:00:14 -08:00
Khem Raj 84196a1c4e mongodb: Fix i386 builds for non-glibc systems
stacktrace depends on internal glibc defines which may not be available
for other libc implementations e.g. __ELF_NATIVE_CLASS

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-15 18:41:23 -07:00
Khem Raj a0165a7e51 mongodb: Fix libunwind build with -fno-common
Backport a patch for libunwind to fix build with gcc10
Fixes
unwind/dist/src/x86_64/Ginit.c:52: multiple definition of `_U_dyn_info_list'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-15 13:16:16 -07:00
Khem Raj e91940073a mongodb: Pass OBJCOPY to scons so it does not use it from host
Fixes
objcopy: Unable to recognise the format of the input file `build/opt/mongo/mongos'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Vincent Prince <vincent.prince.fr@gmail.com.com>
2020-09-15 09:28:35 -07:00
Vincent Prince a9df2ed0c0 mongodb: bump to r4.4.1 version
Signed-off-by: Vincent Prince <vincent.prince.external@saftbatteries.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-09-15 09:28:35 -07:00
Khem Raj 712df4714e gperftools: Do not build on riscv
Its not yet ported to work on RISCV

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-25 08:32:41 -07:00
Gianfranco Costamagna ea55f0c735 mongodb: Enable again building on 32bit arches from COMPATIBLE_HOST
The upstream pending pull request seems to fix 32bit builds, tested with MACHINE=raspberrypi3
Signed-off-by: Costamagna Gianfranco <costamagnagianfranco@yahoo.it>
Signed-off-by: Costamagna Gianfranco <locutusofborg@debian.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-09 07:45:55 -07:00
Changqing Li d178745cbf conf/layer.conf: add BBFILES_DYNAMIC and dynamic layers
some recipes under meta-oe have dependency on meta-python,
and test_world of yocto-check-layer will failed with error
like:

ERROR: test_world (common.CommonCheckLayer)
ERROR: Nothing PROVIDES 'python3-pytoml-native' (but
/meta-openembedded/meta-oe/recipes-extended/mozjs/mozjs_60.9.0.bb
DEPENDS on or otherwise requires it). Close matches:
  python3-numpy-native
  python3-pycairo-native
  python3-rpm-native
ERROR: Required build target 'meta-world-pkgdata' has no buildable
providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata',
'mozjs', 'python3-pytoml-native']

fix by make these recipes only active when identified layers are
present

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-11 08:58:57 -07:00