mongodb: update to 4.4.29
A message that is not in the archive (sent off-list or not yet received): 1b153bce-a66a-45ee-a5c6-963ea6fb1c82.949ef384-8293-46b8-903f-40a477c056ae.60c45970-bf59-4753-942e-e3561e9c5a75@emailsignatures365.codetwo.com
cover Apply the mongodb patches from the scarthgap branch, which is ahead
of the current state and was apparently lost in master.
As wrynose introduces new build issues, this still won't build yet.
Awais Belal (2):
mongodb: fix build with python 3.12
mongodb: update to 4.4.29
Gyorgy Sarvari (2):
mongodb: upgrade 4.4.29 -> 4.4.30
mongodb: ignore CVE-2025-14911
...001-free_mon-Include-missing-cstdint.patch | 28 --------- ...econfig.py-python-3.12-compatibility.patch | 57 +++++++++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb | 11 ++-- 3 files changed, 62 insertions(+), 34 deletions(-) delete mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch
---
base-commit: c734c2cb9713dbd6d50697a9f6c25ebdf3ae589e
branch: wrynose-mongodb
Signature · 18 lines
2.43.0 Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: [email protected] W: www.topic.nl Please consider the environment before printing this e-mail
PATCH 1/4 mongodb: fix build with python 3.12
From: Awais Belal <[email protected]>
The moduleconfig.py build script uses the 'imp' module which is deprecated in favor of 'importlib' in python 3.12. This fixes the build issue by replacing the affected portion of the code and the package now builds fine on hosts with python 3.12.
---
...econfig.py-python-3.12-compatibility.patch | 57 +++++++++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb | 3 +- 2 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch new file +57 -0
@@ -0,0 +1,57 @@ +From 37580777bc5294d606584f3731d9f5f5425bb587 Mon Sep 17 00:00:00 2001 +From: Awais B <[email protected]> +Date: Tue, 4 Mar 2025 11:27:10 +0000 +Subject: [PATCH] moduleconfig.py: python 3.12 compatibility + +The imp module was deprecated in python 3.4 and is dropped +with python 3.12. We now need to use importlib for the +purpose of manipulating/loading modules. + +Upstream-Status: Pending +Signed-off-by: Awais B <[email protected]> +--- + buildscripts/moduleconfig.py | 21 ++++++++++++++------- + 1 file changed, 14 insertions(+), 7 deletions(-) + +diff --git a/buildscripts/moduleconfig.py b/buildscripts/moduleconfig.py +index b4d0bba0490..69dd91ab30d 100644 +--- a/buildscripts/moduleconfig.py ++++ b/buildscripts/moduleconfig.py +@@ -27,7 +27,8 @@ MongoDB SConscript files do. + __all__ = ('discover_modules', 'discover_module_directories', 'configure_modules', + 'register_module_test') # pylint: disable=undefined-all-variable + +-import imp ++import importlib ++import sys + import inspect + import os + +@@ -71,12 +72,18 @@ def discover_modules(module_root, allowed_modules): + print("adding module: %s" % (name)) + fp = open(build_py, "r") + try: +- module = imp.load_module("module_" + name, fp, build_py, +- (".py", "r", imp.PY_SOURCE)) +- if getattr(module, "name", None) is None: +- module.name = name +- found_modules.append(module) +- found_module_names.append(name) ++ module_name = "module_" + name ++ module_spec = importlib.util.spec_from_file_location(module_name, build_py) ++ ++ if module_spec is not None: ++ module = importlib.util.module_from_spec(module_spec) ++ sys.modules[module_name] = module ++ module_spec.loader.exec_module(module) ++ ++ if not hasattr(module, "name"): ++ module.name = name ++ found_modules.append(module) ++ found_module_names.append(name) + finally: + fp.close() + except (FileNotFoundError, IOError): +-- +2.34.1 +
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +1 -2
@@ -36,6 +36,7 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0001-apply-msvc-workaround-for-clang-16.patch \ file://0001-Fix-type-mismatch-on-32bit-arches.patch \ file://0001-Fix-build-on-32bit.patch \ + file://0001-moduleconfig.py-python-3.12-compatibility.patch \ " SRC_URI:append:libc-musl = "\ file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \
@@ -140,5 +141,3 @@ SYSTEMD_SERVICE:${PN} = "mongod.service" FILES:${PN} += "${nonarch_libdir}/tmpfiles.d" RDEPENDS:${PN} += "tzdata-core" - -SKIP_RECIPE[mongodb] ?= "Needs porting to python 3.12"
Signature · 18 lines
2.43.0 Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: [email protected] W: www.topic.nl Please consider the environment before printing this e-mail
PATCH 2/4 mongodb: update to 4.4.29
In reply to Mike LooijmansFrom: Awais Belal <[email protected]>
Move on to 4.4.29 and drop a patch that is not applicable anymore.
---
...001-free_mon-Include-missing-cstdint.patch | 28 ------------------- .../recipes-dbs/mongodb/mongodb_git.bb | 7 ++--- 2 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch deleted +0 -28
@@ -1,28 +0,0 @@ -From 5d8218b8a1b5bc71e2a0cf543a000e194daba599 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Sun, 29 Jan 2023 17:15:30 -0800 -Subject: [PATCH] free_mon: Include missing <cstdint> - -gcc 13 moved some includes around and as a result <cstdint> is no -longer transitively included [1]. Explicitly include it -for uintXX_t. - -[1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes - -Signed-off-by: Khem Raj <[email protected]> - -Upstream-Status: Pending ---- - src/mongo/db/free_mon/free_mon_options.h | 1 + - 1 file changed, 1 insertion(+) - ---- a/src/mongo/db/free_mon/free_mon_options.h -+++ b/src/mongo/db/free_mon/free_mon_options.h -@@ -29,6 +29,7 @@ - - #pragma once - -+#include <cstdint> - #include <string> - #include <vector> -
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +3 -4
@@ -11,9 +11,9 @@ DEPENDS = "openssl libpcap zlib boost curl python3 \ inherit scons dos2unix siteinfo python3native systemd useradd -PV = "4.4.24" -#v4.4.24 -SRCREV = "0b86b9b7b42ad9970c5f818c527dd86c0634243a" +PV = "4.4.29" +#v4.4.29 +SRCREV = "89d6ffe6fc67b36fd47aff6425087003966588e3" SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \ file://0001-Use-long-long-instead-of-int64_t.patch \
@@ -32,7 +32,6 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0001-add-explict-static_cast-size_t-to-maxMemoryUsageByte.patch \ file://0001-server-Adjust-the-cache-alignment-assumptions.patch \ file://0001-The-std-lib-unary-binary_function-base-classes-are-d.patch \ - file://0001-free_mon-Include-missing-cstdint.patch \ file://0001-apply-msvc-workaround-for-clang-16.patch \ file://0001-Fix-type-mismatch-on-32bit-arches.patch \ file://0001-Fix-build-on-32bit.patch \
Signature · 18 lines
2.43.0 Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: [email protected] W: www.topic.nl Please consider the environment before printing this e-mail
PATCH 3/4 mongodb: upgrade 4.4.29 -> 4.4.30
In reply to Mike LooijmansFrom: Gyorgy Sarvari <[email protected]>
This is a security release to fix CVE-2025-14847:
https://nvd.nist.gov/vuln/detail/CVE-2025-14847
---
.../meta-python/recipes-dbs/mongodb/mongodb_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +3 -3
@@ -11,9 +11,9 @@ DEPENDS = "openssl libpcap zlib boost curl python3 \ inherit scons dos2unix siteinfo python3native systemd useradd -PV = "4.4.29" -#v4.4.29 -SRCREV = "89d6ffe6fc67b36fd47aff6425087003966588e3" +PV = "4.4.30" +#v4.4.30 +SRCREV = "1ae4c9990dbc5711f3500748f0c3f8b5d375d8c0" SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0001-Tell-scons-to-use-build-settings-from-environment-va.patch \ file://0001-Use-long-long-instead-of-int64_t.patch \
Signature · 18 lines
2.43.0 Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: [email protected] W: www.topic.nl Please consider the environment before printing this e-mail
PATCH 4/4 mongodb: ignore CVE-2025-14911
In reply to Mike LooijmansFrom: Gyorgy Sarvari <[email protected]>
Details: https://nvd.nist.gov/vuln/detail/CVE-2025-14911
The CVE is currently tracked without valid CPE. The vulnerability affects mongo-c-driver component, not mongodb. They are also stored in different repositories.
Due to this, ignore this CVE.
---
.../meta-python/recipes-dbs/mongodb/mongodb_git.bb | 1 + 1 file changed, 1 insertion(+)
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +1 -0
@@ -51,6 +51,7 @@ SRC_URI:append:toolchain-clang = "\ CVE_STATUS[CVE-2014-8180] = "not-applicable-config: Not affecting our configuration so it can be safely ignored." CVE_STATUS[CVE-2017-2665] = "not-applicable-config: Not affecting our configuration so it can be safely ignored." +CVE_STATUS[CVE-2025-14911] = "cpe-incorrect: The vulnerability is about mongo-c-driver application, not mongodb" COMPATIBLE_HOST ?= '(x86_64|i.86|powerpc64|arm|aarch64).*-linux'
Signature · 18 lines
2.43.0 Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: [email protected] W: www.topic.nl Please consider the environment before printing this e-mail
Re: [oe] [PATCH 0/4] Apply the mongodb patches from the scarthgap branch, which is ahead
In reply to Mike Looijmansfails to build -
https://autobuilder.yoctoproject.org/valkyrie/#/builders/81/builds/1947/steps/18/logs/stdio
| scons: Reading SConscript files ...
| ModuleNotFoundError: No module named 'pkg_resources':
Quoted 59 lines · Mike Looijmans via openembedded-devel
of the current state and was apparently lost in master.
As wrynose introduces new build issues, this still won't build yet.
Awais Belal (2):
mongodb: fix build with python 3.12
mongodb: update to 4.4.29Gyorgy Sarvari (2):
mongodb: upgrade 4.4.29 -> 4.4.30
mongodb: ignore CVE-2025-14911...001-free_mon-Include-missing-cstdint.patch | 28 --------- ...econfig.py-python-3.12-compatibility.patch | 57 +++++++++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb | 11 ++-- 3 files changed, 62 insertions(+), 34 deletions(-) delete mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch create mode 100644
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch---
base-commit:c734c2cb9713dbd6d50697a9f6c25ebdf3ae589e
branch: wrynose-mongodb--
2.43.0Met vriendelijke groet / kind regards,
Mike Looijmans
System ExpertTOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ
<https://www.google.com/maps/search/Materiaalweg+4,+5681+RJ?entry=gmail&source=g>
Best
The NetherlandsT: +31 (0) 499 33 69 69 <+31%20499%20336%20969>
E: [email protected]
W: www.topic.nlPlease consider the environment before printing this e-mail
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#132053):
https://lists.openembedded.org/g/openembedded-devel/message/132053
Mute This Topic: https://lists.openembedded.org/mt/122170765/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 0/4] Apply the mongodb patches from the scarthgap branch, which is ahead
I know, I also wrote in the description (second line) that it wouldn't build.
But at least this brings it up to the "scarthgap" level. It's weird to have to start several commits behind the previous LTS.
I have a workaround for the pkg_resources error, but that's still not enough...
Mike.
Quoted 44 lines · Khem Raj via openembedded-devel
fails to build - https://autobuilder.yoctoproject.org/valkyrie/#/builders/81/builds/1947/steps/18/logs/stdio
| scons: Reading SConscript files ...
| ModuleNotFoundError: No module named 'pkg_resources':On Mon, Nov 9, 2026 at 12:18 AM Mike Looijmans via openembedded-devel <[email protected]> wrote:
of the current state and was apparently lost in master. As wrynose introduces new build issues, this still won't build yet. Awais Belal (2): mongodb: fix build with python 3.12 mongodb: update to 4.4.29 Gyorgy Sarvari (2): mongodb: upgrade 4.4.29 -> 4.4.30 mongodb: ignore CVE-2025-14911 ...001-free_mon-Include-missing-cstdint.patch | 28 --------- ...econfig.py-python-3.12-compatibility.patch | 57 +++++++++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb <http://mongodb_git.bb> | 11 ++-- 3 files changed, 62 insertions(+), 34 deletions(-) delete mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch --- base-commit: c734c2cb9713dbd6d50697a9f6c25ebdf3ae589e branch: wrynose-mongodb -- 2.43.0 Met vriendelijke groet / kind regards, Mike Looijmans
Signature · 10 lines
Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E: [email protected] W: www.topic.nl
Re: [oe] [PATCH 0/4] Apply the mongodb patches from the scarthgap branch, which is ahead
Quoted 9 lines · Mike Looijmans via openembedded-devel
I know, I also wrote in the description (second line) that it wouldn't build.
But at least this brings it up to the "scarthgap" level. It's weird to have to start several commits behind the previous LTS.
I have a workaround for the
pkg_resourceserror, but that's still not enough...
I have sent a patch which addresses bunch of these issues.I wonder if we should
upgrade mongo to latest release as well.
Quoted 80 lines
Mike.
Quoted 2 lines · Khem Raj via openembedded-devel
fails to build -
https://autobuilder.yoctoproject.org/valkyrie/#/builders/81/builds/1947/steps/18/logs/stdio
Quoted 21 lines
| scons: Reading SConscript files ...
| ModuleNotFoundError: No module named 'pkg_resources':On Mon, Nov 9, 2026 at 12:18 AM Mike Looijmans via openembedded-devel <[email protected]> wrote:
of the current state and was apparently lost in master. As wrynose introduces new build issues, this still won't build yet. Awais Belal (2): mongodb: fix build with python 3.12 mongodb: update to 4.4.29 Gyorgy Sarvari (2): mongodb: upgrade 4.4.29 -> 4.4.30 mongodb: ignore CVE-2025-14911Quoted 8 lines
...001-free_mon-Include-missing-cstdint.patch | 28 --------- ...econfig.py-python-3.12-compatibility.patch | 57 +++++++++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb <http://mongodb_git.bb> | 11 ++-- 3 files changed, 62 insertions(+), 34 deletions(-) delete mode 100644
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patchQuoted 2 lines
create mode 100644
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patchQuoted 13 lines
--- base-commit: c734c2cb9713dbd6d50697a9f6c25ebdf3ae589e branch: wrynose-mongodb -- 2.43.0 Met vriendelijke groet / kind regards, Mike Looijmans--
Mike Looijmans
System ExpertTOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The NetherlandsT: +31 (0) 499 33 69 69 <+31%20499%20336%20969>
E: [email protected]
W: www.topic.nl-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#132066):
https://lists.openembedded.org/g/openembedded-devel/message/132066
Mute This Topic: https://lists.openembedded.org/mt/122170765/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [PATCH 0/4] Apply the mongodb patches from the scarthgap branch, which is ahead
Quoted 10 lines · Khem Raj
On Mon, Nov 9, 2026 at 10:02 PM Mike Looijmans via openembedded-devel <[email protected]> wrote:
I know, I also wrote in the description (second line) that it wouldn't build.
But at least this brings it up to the "scarthgap" level. It's weird to have to start several commits behind the previous LTS.
Quoted 6 lines
I have a workaround for the
pkg_resourceserror, but that's still not enough...I have sent a patch which addresses bunch of these issues.I wonder if we should upgrade mongo to latest release as well.
It would at least be reasonable to have a version (and CVE updates) that is equal to or newer than the one in scarthgap.
M.
Quoted 47 lines
Mike.
On 09-11-2026 16:41, Khem Raj via openembedded-devel wrote:
> fails to build -
>
https://autobuilder.yoctoproject.org/valkyrie/#/builders/81/builds/1947/steps/18/logs/stdio
>
>
> | scons: Reading SConscript files ...
> | ModuleNotFoundError: No module named 'pkg_resources':
>
> On Mon, Nov 9, 2026 at 12:18 AM Mike Looijmans via openembedded-devel
> <[email protected]> wrote:
>
> of the current state and was apparently lost in master.
>
> As wrynose introduces new build issues, this still won't build yet.
>
>
> Awais Belal (2):
> mongodb: fix build with python 3.12
> mongodb: update to 4.4.29
>
> Gyorgy Sarvari (2):
> mongodb: upgrade 4.4.29 -> 4.4.30
> mongodb: ignore CVE-2025-14911
>
> ...001-free_mon-Include-missing-cstdint.patch | 28 ---------
> ...econfig.py-python-3.12-compatibility.patch | 57
> +++++++++++++++++++
> .../recipes-dbs/mongodb/mongodb_git.bb <http://mongodb_git.bb>
<http://mongodb_git.bb>
> | 11 ++--
> 3 files changed, 62 insertions(+), 34 deletions(-)
> delete mode 100644
>
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch
> create mode 100644
>
meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch
>
> ---
> base-commit: c734c2cb9713dbd6d50697a9f6c25ebdf3ae589e
> branch: wrynose-mongodb
>Quoted 9 lines
> --
> 2.43.0
>
>
> Met vriendelijke groet / kind regards,
>
> Mike Looijmans
>--
Mike Looijmans
Re: [oe] [PATCH 0/4] Apply the mongodb patches from the scarthgap branch, which is ahead
In reply to Khem RajOn 10-11-2026 08:47, Khem Raj wrote:
On Mon, Nov 9, 2026 at 10:02 PM Mike Looijmans via openembedded-devel <[email protected]<mailto:[email protected]>> wrote:
I know, I also wrote in the description (second line) that it wouldn't
build.
But at least this brings it up to the "scarthgap" level. It's weird to have to start several commits behind the previous LTS.
I have a workaround for the pkg_resources error, but that's still not enough...
I have sent a patch which addresses bunch of these issues.I wonder if we should upgrade mongo to latest release as well.
Thanks for that!
Applied them from master-next to wrynose, appears to fix all the build issues. It'd be good to copy them into the wrynose branch, so that at least mongodb compiles again (like in scarthgap).
--
Mike Looijmans
System Expert
TOPIC Embedded Products B.V.
Materiaalweg 4, 5681 RJ Best
The Netherlands
T: +31 (0) 499 33 69 69
E: [email protected]<mailto:[email protected]>
W: www.topic.nl<http://www.topic.nl>
Re: [oe] [PATCH 0/4] Apply the mongodb patches from the scarthgap branch, which is ahead
Quoted 16 lines · Mike Looijmans via openembedded-devel
On 10-11-2026 08:47, Khem Raj wrote:
Quoted 9 lines · Mike Looijmans via openembedded-devel
I know, I also wrote in the description (second line) that it wouldn't build.
But at least this brings it up to the "scarthgap" level. It's weird to have to start several commits behind the previous LTS.
I have a workaround for the
pkg_resourceserror, but that's still not enough...
Quoted 7 lines
I have sent a patch which addresses bunch of these issues.I wonder if we should upgrade mongo to latest release as well.
Thanks for that!
Applied them from master-next to wrynose, appears to fix all the build issues. It'd be good to copy them into the wrynose branch, so that at least mongodb compiles again (like in scarthgap).
I will include them in the next round of patches I test.
Thanks,
Anuj