From patchwork Wed Nov 18 11:01:14 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Awais Belal X-Patchwork-Id: 104744 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.10134.1794999716143936896 for ; Wed, 18 Nov 2026 03:01:56 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=lE9XRdHB; spf=pass (domain: gmail.com, ip: 209.85.221.48, mailfrom: awais.belal@gmail.com) Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-48b001cd92bso429026f8f.2 for ; Wed, 18 Nov 2026 03:01:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794999714; x=1795604514; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=x5BXv9CQLoDzkliHTOi5il9msz4YPKJveXjizvcfWBc=; b=lE9XRdHBzx6/oXHLesDAYAQGuFuu0nZ43bD5Bao8IBoTfuyHDqlMw6KtrpCc0DVf42 GnAYs4E3ipjgHQlFZu0UCeHl3XsY1a97DE23TcnfLIJLXFOGA1g4Qjx7makEaabYiM5L woMRZYKbFmEJycS46AvWj5QqZWGBzrDe0XJ9BSv5ilwBunbevS6Er1KQ1KsVdOkHvHC6 T0O23R+6AhAMNy4pSYrb8eR+cL1ORSr74iW7vSzkllf8nElE8ArBt/dQrCAKTUcQdWlA MlXWgY2krLnhgClDySdmg6UiLwbRjAGGztFW3ANc9O/u4Ci4D8SPwTTQmGNeG1sS6R1h ML6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794999714; x=1795604514; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=x5BXv9CQLoDzkliHTOi5il9msz4YPKJveXjizvcfWBc=; b=Afna3r7brmbJ7r7uoyNWcgBmZ6IJq+FY164FioX0rNOay2uVOtuRsN47nVNL/qxWYz rKZS/LtPs7iPmkxcuvqbkb9MrHqtJiFzxC4Ms2Qc1iAVpRBFyVFtsIW2Wx9TE0iVXvbq yPtcIxOpHJ5KiiX6TbI+V9cijR9qRbHl8I4OMNNfALAaHaCG3fPqxSYScEwkhrniHdTl pDio8Y12Xj23X3y597Sv3eNtgCqNZiGHyrB6k1TGrsmgG/jq1cIuGgmlcKDPWiLHNNpp ccuxoZg5NJ+ifPJTVpTdUm6iOQ8mio/dvbFs/fsRMYb07APGb9cO0Jk90bJ65HvWTPK3 F9Eg== X-Gm-Message-State: APuU4Z9kU974/7NX+ohu/ooVuXw5FVJhndJqQfPfMWoaRuuOYCBAermZ FBUO+q0W0QnHsVcjY9tyLZTvYCBolh59M5Kq2fs1jWP3oVqIL0qRLv0r+uuljG3q X-Gm-Gg: AYBFou3MhtjO06leoMPVm77ZIMc1yd9VonnT61G7Q8JG75my0sZqiSSJYtzrlLGhqAG XTveN1+8SRdsC16mPmhpG42h5I1gJW/ADzAOAYGvUNZQJDXE8SXoNjDKCDj+CigXo3LNjmU/j4Z gU8SmpS68DMVSJ1HNzUG6uvlsueCiUqFXYxrSugqMLfCysjfii5wTZXNCDIF3iqQNnWqdJTg4DA LmzouLrOtUhBiXbgVwPNfygtDhh0yJVCPFExI1zmwRyfIDhfZ6n2Njpljo2nOFt3h8Cj1+olIaJ amryzDDLYoNy2qOd9zONF5dNxOqlbg9Rvh84JdqTbxnOPrNZaqJUe0Zw18vcw3RfxD3+P35wngQ mSbNe8FOnhFTglrKqJTJOyWInd3ACmh8TwNlOEFxjuhLdZU2u6h62fKkE+hDOqQfnfkez76vYZw ZSr8zid3WzK/y9qS+BXexjLTTO4cmaFi0dh7/sdqe+ksZAoOgUf35d6S5k6EkWYprq/Zos03mV2 b09TguXQ3bYTuXX7KxfQHXBaOH/EcsEVSjQHSE4kk3vnlqWwUWaos4nB9+uQndiX6dPzKAzk+pF ptDMueY3f8hJG7rf7Y+aAiqmyO5biAczwY1odF3aY6GCDHcXYXvIZp4b37z6HzPJ3Oiq092L5so = X-Received: by 2002:a05:600c:4685:b0:4bb:5f43:23bb with SMTP id 5b1f17b1804b1-4bb7da5a6e3mr38653515e9.33.1794999714055; Wed, 18 Nov 2026 03:01:54 -0800 (PST) Return-Path: Received: from elitebook.tailad32a6.ts.net ([101.53.238.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb7e57f6f9sm23139885e9.2.2026.11.18.03.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 03:01:53 -0800 (PST) From: Awais Belal To: openembedded-devel@lists.openembedded.org Cc: Awais Belal , Armin Kuster , Mike Looijmans , Khem Raj , Awais B Subject: [meta-oe][wrynose][PATCH 1/7] mongodb: fix build with python 3.12 Date: Wed, 18 Nov 2026 16:01:14 +0500 Message-Id: <20261118110120.3913031-2-awais.belal@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261118110120.3913031-1-awais.belal@gmail.com> References: <20261118110120.3913031-1-awais.belal@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 18 Nov 2026 11:02:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132638 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. Signed-off-by: Awais Belal Signed-off-by: Armin Kuster Signed-off-by: Mike Looijmans Signed-off-by: Khem Raj (cherry picked from commit b14547d10254c50f729cc3f7c844c6f31f10ba68) Signed-off-by: Awais B --- ...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 diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch new file mode 100644 index 0000000000..51926b9d2e --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-moduleconfig.py-python-3.12-compatibility.patch @@ -0,0 +1,57 @@ +From 37580777bc5294d606584f3731d9f5f5425bb587 Mon Sep 17 00:00:00 2001 +From: Awais B +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 +--- + 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 + diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index 23515d9fa8..0f4a5c4423 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb @@ -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" From patchwork Wed Nov 18 11:01:15 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Awais Belal X-Patchwork-Id: 104745 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.10097.1794999718687507620 for ; Wed, 18 Nov 2026 03:01:59 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=cmgUOFbu; spf=pass (domain: gmail.com, ip: 209.85.128.48, mailfrom: awais.belal@gmail.com) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4bb6c7b6dbdso12652295e9.0 for ; Wed, 18 Nov 2026 03:01:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794999717; x=1795604517; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=kxXKHDCCCkkAEG5UGnwnFJNsyIq3mKsYWjCqEOEjRAY=; b=cmgUOFbuBRSrNTSd9y/UlRaaWVae6j+eeNmpk1XlJtsFRPTJy/oDrOhremBOsE5fNE EE64KoJJEYY2GoofZpZRWoEuR5X1gD7TfuHES2zIXMLky7+Q8VarlVfSAIsSQsGo+Y1+ 6q/JwhbJdklwszNMdehfUpvyXWl9T8yYK2zYBjnl2WvXkqVBQIhXp1m4Rxg96dtcWG4l 2vo4G5dVpzwENJO4vCcjH0cRamUTV++zEywIXnTvX40P3biaNJLfDlHbrqzbO23rOKUE 5UQfAgQXHbbSS98iAat2yPSOStGtnjpiQP3eXXg0rmQQEE6pc8IcOmnh+AeROF3nKxHB UsKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794999717; x=1795604517; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=kxXKHDCCCkkAEG5UGnwnFJNsyIq3mKsYWjCqEOEjRAY=; b=bNgfQg8atArMJAcJ0kwuFlP8g0cWTlWo36p75ev2cCxX4oJT+7nXgm4VWMwa2sgLLo sAxQ4NqIJe60J9xhH99jLyJgLc4IukdfBS9l90fKieUtFjpVFt8rdY23P/TmQi7JMypE +oewF5xT9loodAihblKV8odgUqY2ytJjTrX8XVR4AeWPnaZFtS1beApptCfCAEnKbHxy R0j+1cRYPj+e/qQkst1qAMruHvE0Sn+3RK6ia0tUhAcMSHSTqpkUz5VXlPDj+giQiaFl TpmugHrKDKAwAP2JPDTCLTsKLeg7qHjU1kQ7arRY37jFtBQVneD9XWBOQTyk2812frEB EzEw== X-Gm-Message-State: APuU4Z80y+kkZ1loqWbOdO8wE8YTmCRD2lv3c6OYSFz2U/UvG8stix8v PYTUq09ow47LfmsMcL0EfQlBHL2RbKtG+KWvoPCvWv8c4/v4uMr8RKwgdR08FIfZ X-Gm-Gg: AYBFou0p5aArVZgAGQqP3uzFaVoiwWjaXvEM/xpt5aCwv4hMgAi7vNbqOZ7W7xLmXQg HSf4Vu3k04P4/xGzv9SoCrvXPlLVFbdA8s6g/rcSughkCRyak0L4f88a1X6Fh7X7Rt6nPI43Pry 5sc575FLxXiUmCEOGce+Efx5LoOM2B8lsjkR+IiRL4ZQpYeWJGvUPWk7DWAGP7PfEYA2ptO7HeL XIm39iYDBWBHDXmOVEyRVOVEw/3zdY/3rqbBk+yDuM2YU/encqYXS56ur4UreL4ahLuj4CZPNti UIXBb7TIgNV5kKfA7Qb+ldj1+s2kvB078Fv/jpvZSyc+z4IhzJSlg32riSh/ELg9a2UwU+ZLPcN EgiZU3/5svv2iZBULynhVAZxp9wsA8zxQiYuj3Oupg/30RzJNU7FT0Ho9LCQcpFNezlDIzKmdV9 dL4C8Ky4GOMSGEhWg/1lbne04gNZEbnKBCWr+YsxNxQr7fLGidDqfh+T8KdDwiMxwleJlJWU5HQ haublIE+8kg84+ORGi9oH9EJ22nAkUFqcmfrO/Ws/uYKWxmIjRjWhg0H0/wKB0PAs8UfBzWishn 8qfVwtokYSs0DdGFRx7zwMSCRWXEivy/UpPtKiGY1uauYIqN1AMOMH6LkYBDgaQHNlpX5MUQSTc = X-Received: by 2002:a05:600c:1d0f:b0:4bb:6fff:9fe7 with SMTP id 5b1f17b1804b1-4bb7da22416mr40322435e9.5.1794999716317; Wed, 18 Nov 2026 03:01:56 -0800 (PST) Return-Path: Received: from elitebook.tailad32a6.ts.net ([101.53.238.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb7e57f6f9sm23139885e9.2.2026.11.18.03.01.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 03:01:55 -0800 (PST) From: Awais Belal To: openembedded-devel@lists.openembedded.org Cc: Awais Belal , Armin Kuster , Mike Looijmans , Khem Raj , Awais B Subject: [meta-oe][wrynose][PATCH 2/7] mongodb: update to 4.4.29 Date: Wed, 18 Nov 2026 16:01:15 +0500 Message-Id: <20261118110120.3913031-3-awais.belal@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261118110120.3913031-1-awais.belal@gmail.com> References: <20261118110120.3913031-1-awais.belal@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 18 Nov 2026 11:02:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132639 Move on to 4.4.29 and drop a patch that is not applicable anymore. Signed-off-by: Awais Belal Signed-off-by: Armin Kuster Signed-off-by: Mike Looijmans Signed-off-by: Khem Raj (cherry picked from commit 245b2dceb256932c62e762839adb57c0dec32edf) Signed-off-by: Awais B --- ...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 diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch deleted file mode 100644 index 8cee14889f..0000000000 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-free_mon-Include-missing-cstdint.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 5d8218b8a1b5bc71e2a0cf543a000e194daba599 Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Sun, 29 Jan 2023 17:15:30 -0800 -Subject: [PATCH] free_mon: Include missing - -gcc 13 moved some includes around and as a result 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 - -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 - #include - #include - diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index 0f4a5c4423..339bb38a2b 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb @@ -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 \ From patchwork Wed Nov 18 11:01:16 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Awais Belal X-Patchwork-Id: 104746 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.10136.1794999720569015070 for ; Wed, 18 Nov 2026 03:02:00 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=Rx2jKHA0; spf=pass (domain: gmail.com, ip: 209.85.128.48, mailfrom: awais.belal@gmail.com) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4a35a60499eso6337605e9.0 for ; Wed, 18 Nov 2026 03:02:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794999719; x=1795604519; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=MHWJq4c2L8vwLNMipM3SvolqKdopXoWttmZJNYcOoCY=; b=Rx2jKHA0p/m2C+I2l0/SJEpUGkC9XYOJVLUQv9LxkoYar3zv617kq0hUrnV/LrSAU8 zM2eBR2NcoYbrkT49Iv4bwNgg+1hK37ccufzIHSi2XRdl+rqAvGU+2Q/N6wdL/GIuBO/ uStwevkeE/37kZslQKIl4MjdtbUUDkiOOHlJi2FSI3oE7oU1fTjeQc4wxIi/KCLfoUd6 V+mRkj3XV2ox4L2H4HPs9awn+FbX38NGZ8+UjG+HWRaCfGOq5W1KdakR564HgrNBSXT2 WxQbx80Ycfv4qREXkCR1hiz7lvTV0oW6G6rONsrDm7m8RDdvtQDvasd5Klo2QzqFuBQD a0bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794999719; x=1795604519; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=MHWJq4c2L8vwLNMipM3SvolqKdopXoWttmZJNYcOoCY=; b=KUfrKSS5PsoWg7X8R1Z/e9PdLvNo0+ImyIbeXI6icXMcRbFYi+jqOqoW8ghgRWpNkG EtRqplslGpTOx9uXDPgHEdmu6rmPqtVSV029o1nZnxR/muPSTa1pali4h1YDkPzS/lYC LnvkyKioIWgpN9hzWHDr7uYF9D/q1s67r37IJyH46WDnyhiwlef68qFC62hfRC4z43Pp RDTRyeqZKGkfFlSZgg32KhKyayK9N3+W2otm4lICo+VY/jsW2Ja715KscTEB9OL72WsG y+Ykz5cMlVDZxcXfaYlr4A2yPDJ6DorqFAj0BdnKVDmCcL4GQF2qFtU2R6TThIc9njEf eodg== X-Gm-Message-State: APuU4Z+OBHv2Ipfg+qaxry2R6IEZmruSfswJn6/xKFNdGIcoNKArMIM2 /g0vAH9ZzsGifDQivfGCEYhZByUGEIC9Ukf50rWQcsJbhOTfsJpB3j1FJDiVvO5M X-Gm-Gg: AYBFou1XGL8lGJdhRY6nstwZOkfPygyPViAdXobnqhBjRFx5Fg68Q6+6ORobz4oewoG J1rGgALgMRh7Dw5V030UQysLZBuVApKc7odoOe4YmVFBbJS8N5empXFbd4m0rU8CXT8lWMOTEAm d3/ffiOWdTJm6s6nxqO6k9ka/WKkYjTcLMU/KJtfEnGGE5tGauII3594qwqxrLsL6Q0WRgVhopB rJA+2NX4Ln2oeq01fMdYRxkDp+wsXInR9s0nESpYRxg/iEOILs+y03IBP/LPQTLXJTI5PEl21oK Zgi4dX6nwncht6Muo17ftZM8DaYOWnsYu92JrVNidfuLVkCK2ReOoz7tqq1LMHL7BOvK/gdg4eK +AiI3HYD5kj/82azRmlhwVgYgtRf6Ypj22hYlsmuHsjtBmsPCu8aeNg3+PLqkSLTBMpIAwWeI3x eNBwh+GUdfX7Z0FlvJZft32/zJ2T0ChdotK4EvcJe7Pw/7sPkwLYiysHGJNW1TmaOCy8GoUEMFc kJkUcdfrh8Z+3yat5KcrTKuobJJlCv9BFTuoApP1iL2FBegDy9XxPs7YmdNMLOUK+0mrWZtMwYq kCKGU+lSUr0ga2UFRE84X5Mia4C2WCnMPmhB/AZJAAdcro/8iKHkkbdPzOB+9yTEU64Ss0/o+90 = X-Received: by 2002:a05:600c:83cf:b0:4a2:fe11:9a8a with SMTP id 5b1f17b1804b1-4bb7d57a4d0mr43714235e9.0.1794999718653; Wed, 18 Nov 2026 03:01:58 -0800 (PST) Return-Path: Received: from elitebook.tailad32a6.ts.net ([101.53.238.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb7e57f6f9sm23139885e9.2.2026.11.18.03.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 03:01:58 -0800 (PST) From: Awais Belal To: openembedded-devel@lists.openembedded.org Cc: Gyorgy Sarvari , Anuj Mittal , Mike Looijmans , Khem Raj , Awais B Subject: [meta-oe][wrynose][PATCH 3/7] mongodb: upgrade 4.4.29 -> 4.4.30 Date: Wed, 18 Nov 2026 16:01:16 +0500 Message-Id: <20261118110120.3913031-4-awais.belal@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261118110120.3913031-1-awais.belal@gmail.com> References: <20261118110120.3913031-1-awais.belal@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 18 Nov 2026 11:02:10 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132640 From: Gyorgy Sarvari This is a security release to fix CVE-2025-14847: https://nvd.nist.gov/vuln/detail/CVE-2025-14847 Signed-off-by: Gyorgy Sarvari Signed-off-by: Anuj Mittal Signed-off-by: Mike Looijmans Signed-off-by: Khem Raj (cherry picked from commit 08c49b447b5a615aaaeb89802f503ec6d1722b74) Signed-off-by: Awais B --- .../meta-python/recipes-dbs/mongodb/mongodb_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index 339bb38a2b..720ddef416 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb @@ -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 \ From patchwork Wed Nov 18 11:01:17 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Awais Belal X-Patchwork-Id: 104748 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.10100.1794999723258084088 for ; Wed, 18 Nov 2026 03:02:03 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=JofRl5rG; spf=pass (domain: gmail.com, ip: 209.85.128.50, mailfrom: awais.belal@gmail.com) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4a35ac4475dso5988175e9.2 for ; Wed, 18 Nov 2026 03:02:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794999721; x=1795604521; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jgn5lCyNkS0m1v2hhIcAMLyKj2MzvSJJtn7aAcH5D2o=; b=JofRl5rG7mzuZsnr+kYRHOW9VyJ0Lfw0OkqJ68N6k13j26lKkUYv16DcqIPQBuwZ0n mb61Igcrhb/5kojFuKUeD/fWA+Xq/hA9CBR5ghcAr0ObWyIh8+GJrEGii7HehBlMrm75 1wKzwQOrJyE9LHqX/EhUQ0PoytLj2I76c+Mh8BrVZtxZ9pmJ/f3xOlf+VYy8d8BSpI56 G9X++8+4FI+JZn5bW45RIyNhQ6Uyv7SvU1qH2D1dMG+odqD2TQOEYiMLyA+7ZyUpOdD1 0DC/1MCzfXFsbR5BWef6ut/37nIuHtDEKuISTSHkJyVURI81xv3rMFe4F5nzmZ3jdNnb VqNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794999721; x=1795604521; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=jgn5lCyNkS0m1v2hhIcAMLyKj2MzvSJJtn7aAcH5D2o=; b=s7/xGrRFEScLCMuzWvCZqrE8yeajCVrK77HzIg9bDDOdIJVVeEsCWyO5a9o2iyQXsK Hy94KKcUVWHx0cWstQaFmlVCz7IeYHK2AoOnQAwhJKGAKVLqdXNHzTEB0jy+S1nusMcv fw0BP4B8mvXE54VEwxN/oglyD3EhGERFIg5eQCS/iXLsRBnyh48Uw1lGLb+Ke9Y7r83i iuP2Pzi0KdCFnHh/Pt2UJNZJe76wNZlJCRBYut473FDr5ID6VeZ3FQZWrNtgFupU/FRc UFbzW8pLKJ0TLc2/9b2r+A/soZcKixB0Q02RtFErle16maiXX23qRBivEeJiGsFpFtIi KzXw== X-Gm-Message-State: APuU4Z+5HnCtL9sWMp+BURBnWqCdgjvj96gTVRGYzjCHHuuMYAJ0b46R f2SqO2ZT5ZB9Sb4JIIyhJsLWXFMdPZQ2P8Jv5PwzlGbsJgBD5Wzz1sTkHLXWpuR4 X-Gm-Gg: AYBFou1ZkDDWpSosZ9EPxqtaHIH2bsltfjNo6K4I4d60eHD7JixBOeaWENVBb0RU6do K6WeH09/VPIEn+33rn5FkI/uneo/aJnZEs8X7qvGjpQ63fFdRqlEy1Tl9wnrSbyUZkd+JaeHenx wveSGROuFmY4ytHu1TPE3Mk6fnbGDdSeprG6qAZKif5lriWlVTKyizHrKFRMpoQjJJS6alTgphD mjvjKCxAqfMaIJHUJUeol8JQIr35bl8Yu6STmTTTtgIlZpxLO69V6qGNGUr0MqFoMrmH1R+n6hi qz4ZYWFwhiA60ren8Q6kN8ETZOUV+nrJp5gxWWn0mu/ON/hwcHXmzzSj6kmZUOqK2XLkeWYXyrv s3yo1yN70fAEUJM6cYSzf2DDRFIvPghlVVVirxNMJFwcsTebzPQ4tGC4J4K8M+a+AU/Ctr5u/p6 YqT+0zRridD17zvmUhK5d48Hu68B4v29QseEk+dkiAPI5rVS+uhnq99C6qoY4ET/C9BkxVEnliu Z9c0zff9tZ0L6PbWiVdoOKeuTjOJFHOLRkqb+XP8tD+eKACLXKzYe+JvsjsxjkerOkRuSdgSNQK 3GIG9ZZRLQrGcoeBAPI17UyhDe3RhsnNDxrEFWL3EAU+6cFtQh0+gnTwWYVAcdNvvaZlMW8q+B9 kAYUaxKfXWLaHmnWgvbKp X-Received: by 2002:a05:600c:c167:b0:4a8:9a2f:d27 with SMTP id 5b1f17b1804b1-4bb7da390b9mr39617275e9.25.1794999721365; Wed, 18 Nov 2026 03:02:01 -0800 (PST) Return-Path: Received: from elitebook.tailad32a6.ts.net ([101.53.238.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb7e57f6f9sm23139885e9.2.2026.11.18.03.01.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 03:02:00 -0800 (PST) From: Awais Belal To: openembedded-devel@lists.openembedded.org Cc: Gyorgy Sarvari , Anuj Mittal , Mike Looijmans , Khem Raj , Awais B Subject: [meta-oe][wrynose][PATCH 4/7] mongodb: ignore CVE-2025-14911 Date: Wed, 18 Nov 2026 16:01:17 +0500 Message-Id: <20261118110120.3913031-5-awais.belal@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261118110120.3913031-1-awais.belal@gmail.com> References: <20261118110120.3913031-1-awais.belal@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 18 Nov 2026 11:02:10 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132641 From: Gyorgy Sarvari 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. Signed-off-by: Gyorgy Sarvari Signed-off-by: Anuj Mittal Signed-off-by: Mike Looijmans Signed-off-by: Khem Raj (cherry picked from commit 272e975c34e5bd8863e72477c461755839932d88) Signed-off-by: Awais B --- .../meta-python/recipes-dbs/mongodb/mongodb_git.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index 720ddef416..b7f2c3aaac 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb @@ -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' From patchwork Wed Nov 18 11:01:18 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Awais Belal X-Patchwork-Id: 104749 Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.10103.1794999726254269423 for ; Wed, 18 Nov 2026 03:02:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=BXtC3tMm; spf=pass (domain: gmail.com, ip: 209.85.128.53, mailfrom: awais.belal@gmail.com) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-4bb55cda775so4229655e9.0 for ; Wed, 18 Nov 2026 03:02:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794999724; x=1795604524; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=nggiKnElogoGYeeU4gFoF2/jWLj74aIGIYiXFWpnlM8=; b=BXtC3tMmpaPXxw4BQFuDJ73IH42CrIVQmBQQJIuRscM6VC0yYwekGGFdzLfs6LSiEw I7/eqoQntfAzLBdxAP+VR9aaU83iAqsxH0IpU1Yx7zX9vqfVHPlxEksNNP+kEYiVvF5g LH0661EmxsA1EYJk1qHcoACAzP3EDdZ3BXjJfPtxL1R2WVoQ9uQ/2iIGlNRg86rGc2dV tUUImziKGLAg1yE+zgOQgMndCwhSTQzgh32/Mof6+LOb2lFy+qNRUkn5BgsZP0aOnWBM wQuqVyPl5ZlZY2xK0aJRccKOq2ocJga3Twsj+lsmItik0f6cNmdEw1gxD1O5vfA4L3Jp 2IuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794999724; x=1795604524; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=nggiKnElogoGYeeU4gFoF2/jWLj74aIGIYiXFWpnlM8=; b=aMLo5p+cPTYjxYB90Lmqs7ng+nnIrDEkWL9xW+kuexWds66vtxK+XBehWf/Ff5bRsB ZRJX7OaE2zKmYojxcqKUu6eMoDPM0DgFOtI95ks4yCd3Tsy313WnWxQPGh7z927wvguS OslL4qYH2/UXkT1OuLXAUSiSANUUME28spTfNdsDrCLcOg9tsx108Q9DFY2VKqdoljqj QGs8H7ENtgPCDBRQkePYw21vi7WnrYajhz/qSTdJ1r3Rq3SLOBK3dm3zq6TaEx5cfNXu VEqpNjzDectNanVv+jKuXvk1gWkpcy1NFnAxBfvaXTTUVDeqYtZeACcTi+lMHZwoDaag 1ioQ== X-Gm-Message-State: APuU4Z9U12MwpliWzeQJi2RERSWwRmkqUzQJC0VTJyT6H498IaF5UBKG UJl4kVNgxidyRvj4Qs/webf88Do2b56rffxaM8w0qgWYDJjaEc1ImOl8Xv7OAZMU X-Gm-Gg: AYBFou2cN7MAmg5a0PCHIE+My4c3F2zqGDPdt+Bac4tEUU6qB/hWLNqOU37gyqLYPoa KcTrQLM22AIIfF+wDa3JgbpnGKI5dUFBeb6qSzy8QYIlI7KvFKKx5hwvC+VYL2wWPMx0Ubn+Zob 6OwjEpGo7fPe25Wt8TcyoROx8Go9/ueTrNJzFgjfJHsaSAG4+CdxjDa1+hg2fmKqEZoO/bA6//2 iWcUpayhVuETZ4G3OOwnFdH3xQE+z2WxBnUtTvxgmyVXeH/AZT+ZIE3oZdsrBmQrwCRMcnd2e+p 2781bP3suPZ/Lo7FS31CYu7taZiwQ/BNCtODwVVTNw49AxzQXY0FjY689Yll3vVmiscfRLU3ahi ESsfQVKwEMIalWA4a9nvb8+S3V0ToKRTHC6g3X8+NPgkB+gs5OJH4xdRF7gYigaYhsJxaRRYzrf 6JIAhmlWGQNYadXqLKSc06nCyC9uxl8X5zgGrAm0gZsUzO0qKyPux1aGkIVE1iOh3NSFyGZKfpy DvRfrWkwGESRqacuPFkrEnroCKB23zkOp0s1tEWwCCRIwDgXE3vMtI2CzSJooXzOUo08Fe9ZflR KzaM3P5QVOOxYfN+Q59nNnLcB1s0AUHr78ftRxpyrd9MhFY8y+q3sV/LtTxmxC7QkYzalij275j Hn2Ng2/bsY+J77/Vwbky6 X-Received: by 2002:a05:600c:4445:b0:4a1:c27d:e1a8 with SMTP id 5b1f17b1804b1-4bb7da1b421mr39653565e9.10.1794999723643; Wed, 18 Nov 2026 03:02:03 -0800 (PST) Return-Path: Received: from elitebook.tailad32a6.ts.net ([101.53.238.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb7e57f6f9sm23139885e9.2.2026.11.18.03.02.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 03:02:02 -0800 (PST) From: Awais Belal To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Awais B Subject: [meta-oe][wrynose][PATCH 5/7] mongodb: Fix build with current python, SCons, clang and OpenSSL Date: Wed, 18 Nov 2026 16:01:18 +0500 Message-Id: <20261118110120.3913031-6-awais.belal@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261118110120.3913031-1-awais.belal@gmail.com> References: <20261118110120.3913031-1-awais.belal@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 18 Nov 2026 11:02:10 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132642 From: Khem Raj mongodb was re-enabled after having been skipped, and no longer builds with the current toolchain and dependencies: - setuptools 84 does not provide pkg_resources anymore; use packaging.version to parse versions - SCons 4.11 added an extra_libs parameter ahead of call in CheckLibWithHeader(), so the positional call snippet was split into bogus -l options and the OpenSSL check failed; pass call as a keyword - clang 23 rejects out of range enum values in the bundled Boost 1.70 mpl::integral_c uses and a typo in Boost.Thread; backport the fixes from newer Boost - OpenSSL 4 makes ASN1_STRING opaque and removes ASN1_STRING_data() and ERR_remove_state(); use the accessors available since OpenSSL 1.1 AI-Generated: Uses Claude Code Signed-off-by: Khem Raj (cherry picked from commit 2903830b48e5a304ad62aa65e5c2b44c2fe67f67) Signed-off-by: Awais B --- ...stead-of-pkg_resources-for-version-p.patch | 51 +++++ ...call-to-CheckLibWithHeader-as-a-keyw.patch | 56 ++++++ .../0003-boost-Fix-build-with-clang-23.patch | 176 ++++++++++++++++++ .../0004-ssl-Fix-build-with-OpenSSL-4.patch | 117 ++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb | 6 +- 5 files changed, 405 insertions(+), 1 deletion(-) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-boost-Fix-build-with-clang-23.patch create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0004-ssl-Fix-build-with-OpenSSL-4.patch diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch new file mode 100644 index 0000000000..d45b9f8021 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch @@ -0,0 +1,51 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 9 Nov 2026 07:45:00 -0800 +Subject: [PATCH] Use packaging instead of pkg_resources for version parsing + +pkg_resources has been removed from setuptools, so SConstruct fails to +load with: + + ModuleNotFoundError: No module named 'pkg_resources' + +Use parse() from the packaging module instead. + +Upstream-Status: Inappropriate [v4.4 branch is EOL] +Signed-off-by: Khem Raj +--- +diff --git a/SConstruct b/SConstruct +--- a/SConstruct ++++ b/SConstruct +@@ -16,7 +16,7 @@ + import uuid + from glob import glob + +-from pkg_resources import parse_version ++from packaging.version import parse as parse_version + + import SCons + +diff --git a/site_scons/site_tools/ccache.py b/site_scons/site_tools/ccache.py +--- a/site_scons/site_tools/ccache.py ++++ b/site_scons/site_tools/ccache.py +@@ -26,7 +26,7 @@ + import subprocess + + import SCons +-from pkg_resources import parse_version ++from packaging.version import parse as parse_version + + # This is the oldest version of ccache that offers support for -gsplit-dwarf + _ccache_version_min = parse_version("3.2.3") +diff --git a/site_scons/site_tools/icecream.py b/site_scons/site_tools/icecream.py +--- a/site_scons/site_tools/icecream.py ++++ b/site_scons/site_tools/icecream.py +@@ -25,7 +25,7 @@ + import subprocess + import urllib + +-from pkg_resources import parse_version ++from packaging.version import parse as parse_version + + import SCons + diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch new file mode 100644 index 0000000000..d4b5586a97 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch @@ -0,0 +1,56 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 9 Nov 2026 08:10:00 -0800 +Subject: [PATCH] SConstruct: Pass call to CheckLibWithHeader as a keyword + +Newer SCons added an extra_libs parameter to CheckLibWithHeader() ahead +of call, so the call snippet passed positionally is treated as a list of +extra libraries and each character becomes a -l option: + + ... -lcrypto -lS -lS -lL -le -la -ly ... -l( -l0 -l) -l; + Couldn't find OpenSSL crypto.h header and library + +Pass it as a keyword argument, which works with old and new SCons. + +Upstream-Status: Inappropriate [v4.4 branch is EOL] +Signed-off-by: Khem Raj +--- +diff --git a/SConstruct b/SConstruct +--- a/SConstruct ++++ b/SConstruct +@@ -3499,7 +3499,7 @@ + cryptoLibName, + ["openssl/crypto.h"], + "C", +- "SSLeay_version(0);", ++ call="SSLeay_version(0);", + autoadd=True): + maybeIssueDarwinSSLAdvice(conf.env) + conf.env.ConfError("Couldn't find OpenSSL crypto.h header and library") +@@ -3656,7 +3656,7 @@ + if conf.CheckLibWithHeader( + "curl", + ["curl/curl.h"], "C", +- "curl_global_init(0);", ++ call="curl_global_init(0);", + autoadd=False): + return True + +@@ -3782,7 +3782,7 @@ + "sasl2", + ["stddef.h","sasl/sasl.h"], + "C", +- "sasl_version_info(0, 0, 0, 0, 0, 0);", ++ call="sasl_version_info(0, 0, 0, 0, 0, 0);", + autoadd=False ): + myenv.ConfError("Couldn't find SASL header/libraries") + +@@ -3947,7 +3947,7 @@ + ["mongoc-1.0"], + ["mongoc/mongoc.h"], + "C", +- "mongoc_get_major_version();", ++ call="mongoc_get_major_version();", + autoadd=False ): + conf.env['MONGO_HAVE_LIBMONGOC'] = "library" + if not conf.env['MONGO_HAVE_LIBMONGOC'] and env.TargetOSIs('darwin') and conf.CheckMongoCFramework(): diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-boost-Fix-build-with-clang-23.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-boost-Fix-build-with-clang-23.patch new file mode 100644 index 0000000000..3a188033f6 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0003-boost-Fix-build-with-clang-23.patch @@ -0,0 +1,176 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 9 Nov 2026 09:00:00 -0800 +Subject: [PATCH] boost: Fix build with clang 23 + +Backport fixes from newer Boost to the bundled Boost 1.70: + +- numeric_conversion and log: use boost::integral_constant instead of + mpl::integral_c for enum constants. mpl::integral_c computes the + next/prior values, which are outside the range of the enum, and clang + now rejects that: + + error: in-class initializer for static data member is not a constant expression + note: integer value -1 is outside the valid range of values [0, 3] for the enumeration type 'lock_access_mode' + +- thread: fix a typo in run_it's move assignment operator, which clang + now diagnoses in uninstantiated templates: + + error: no member named 'that' in 'boost::detail::run_it' + +Upstream-Status: Backport [https://github.com/boostorg/numeric_conversion/commit/50a1eae942effb0a9b90724323ef8f2a67e7984a https://github.com/boostorg/log/commit/77f1e20bd69c2e7a9e25e6a9818ae6105f7d070c https://github.com/boostorg/thread/commit/49ccf9c30a0ca556873dbf64b12b0d741d1b3e66] +Signed-off-by: Khem Raj +--- +diff --git a/src/third_party/boost-1.70.0/boost/log/utility/strictest_lock.hpp b/src/third_party/boost-1.70.0/boost/log/utility/strictest_lock.hpp +index 5dd48b4f..05c7a037 100644 +--- a/src/third_party/boost-1.70.0/boost/log/utility/strictest_lock.hpp ++++ b/src/third_party/boost-1.70.0/boost/log/utility/strictest_lock.hpp +@@ -17,6 +17,7 @@ + #define BOOST_LOG_UTILITY_STRICTEST_LOCK_HPP_INCLUDED_ + + #include ++#include + #include + #include + #if defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) +@@ -67,44 +68,44 @@ template< typename LockT > + struct thread_access_mode_of; + + template< typename MutexT > +-struct thread_access_mode_of< no_lock< MutexT > > : mpl::integral_c< lock_access_mode, unlocked_access > ++struct thread_access_mode_of< no_lock< MutexT > > : boost::integral_constant< lock_access_mode, unlocked_access > + { + }; + + #if !defined(BOOST_LOG_NO_THREADS) + + template< typename MutexT > +-struct thread_access_mode_of< lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, exclusive_access > ++struct thread_access_mode_of< lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, exclusive_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< shared_lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, shared_access > ++struct thread_access_mode_of< shared_lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, shared_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< unique_lock< MutexT > > : mpl::integral_c< lock_access_mode, exclusive_access > ++struct thread_access_mode_of< unique_lock< MutexT > > : boost::integral_constant< lock_access_mode, exclusive_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< shared_lock< MutexT > > : mpl::integral_c< lock_access_mode, shared_access > ++struct thread_access_mode_of< shared_lock< MutexT > > : boost::integral_constant< lock_access_mode, shared_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< upgrade_lock< MutexT > > : mpl::integral_c< lock_access_mode, shared_access > ++struct thread_access_mode_of< upgrade_lock< MutexT > > : boost::integral_constant< lock_access_mode, shared_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< boost::log::aux::exclusive_lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, exclusive_access > ++struct thread_access_mode_of< boost::log::aux::exclusive_lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, exclusive_access > + { + }; + + template< typename MutexT > +-struct thread_access_mode_of< boost::log::aux::shared_lock_guard< MutexT > > : mpl::integral_c< lock_access_mode, shared_access > ++struct thread_access_mode_of< boost::log::aux::shared_lock_guard< MutexT > > : boost::integral_constant< lock_access_mode, shared_access > + { + }; + +diff --git a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/int_float_mixture.hpp b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/int_float_mixture.hpp +index 464e5275..7690d07a 100644 +--- a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/int_float_mixture.hpp ++++ b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/int_float_mixture.hpp +@@ -16,15 +16,15 @@ + #include "boost/numeric/conversion/int_float_mixture_enum.hpp" + #include "boost/numeric/conversion/detail/meta.hpp" + +-#include "boost/mpl/integral_c.hpp" ++#include "boost/type_traits/integral_constant.hpp" + + namespace boost { namespace numeric { namespace convdetail + { + // Integral Constants for 'IntFloatMixture' +- typedef mpl::integral_c int2int_c ; +- typedef mpl::integral_c int2float_c ; +- typedef mpl::integral_c float2int_c ; +- typedef mpl::integral_c float2float_c ; ++ typedef boost::integral_constant int2int_c ; ++ typedef boost::integral_constant int2float_c ; ++ typedef boost::integral_constant float2int_c ; ++ typedef boost::integral_constant float2float_c ; + + // Metafunction: + // +diff --git a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/sign_mixture.hpp b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/sign_mixture.hpp +index c7f9e42a..fde15840 100644 +--- a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/sign_mixture.hpp ++++ b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/sign_mixture.hpp +@@ -16,15 +16,15 @@ + #include "boost/numeric/conversion/sign_mixture_enum.hpp" + #include "boost/numeric/conversion/detail/meta.hpp" + +-#include "boost/mpl/integral_c.hpp" ++#include "boost/type_traits/integral_constant.hpp" + + namespace boost { namespace numeric { namespace convdetail + { + // Integral Constants for 'SignMixture' +- typedef mpl::integral_c unsig2unsig_c ; +- typedef mpl::integral_c sig2sig_c ; +- typedef mpl::integral_c sig2unsig_c ; +- typedef mpl::integral_c unsig2sig_c ; ++ typedef boost::integral_constant unsig2unsig_c ; ++ typedef boost::integral_constant sig2sig_c ; ++ typedef boost::integral_constant sig2unsig_c ; ++ typedef boost::integral_constant unsig2sig_c ; + + // Metafunction: + // +diff --git a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/udt_builtin_mixture.hpp b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +index 36dbc491..a39d29fd 100644 +--- a/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/udt_builtin_mixture.hpp ++++ b/src/third_party/boost-1.70.0/boost/numeric/conversion/detail/udt_builtin_mixture.hpp +@@ -15,15 +15,15 @@ + #include "boost/numeric/conversion/udt_builtin_mixture_enum.hpp" + #include "boost/numeric/conversion/detail/meta.hpp" + +-#include "boost/mpl/integral_c.hpp" ++#include "boost/type_traits/integral_constant.hpp" + + namespace boost { namespace numeric { namespace convdetail + { + // Integral Constants for 'UdtMixture' +- typedef mpl::integral_c builtin2builtin_c ; +- typedef mpl::integral_c builtin2udt_c ; +- typedef mpl::integral_c udt2builtin_c ; +- typedef mpl::integral_c udt2udt_c ; ++ typedef boost::integral_constant builtin2builtin_c ; ++ typedef boost::integral_constant builtin2udt_c ; ++ typedef boost::integral_constant udt2builtin_c ; ++ typedef boost::integral_constant udt2udt_c ; + + // Metafunction: + // +diff --git a/src/third_party/boost-1.70.0/boost/thread/future.hpp b/src/third_party/boost-1.70.0/boost/thread/future.hpp +index 3d1b29d4..2862fc0a 100644 +--- a/src/third_party/boost-1.70.0/boost/thread/future.hpp ++++ b/src/third_party/boost-1.70.0/boost/thread/future.hpp +@@ -4669,7 +4669,7 @@ namespace detail + } + run_it& operator=(BOOST_THREAD_RV_REF(run_it) x) BOOST_NOEXCEPT { + if (this != &x) { +- that_=x.that; ++ that_=x.that_; + x.that_.reset(); + } + return *this; diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0004-ssl-Fix-build-with-OpenSSL-4.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0004-ssl-Fix-build-with-OpenSSL-4.patch new file mode 100644 index 0000000000..fdf6852119 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0004-ssl-Fix-build-with-OpenSSL-4.patch @@ -0,0 +1,117 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Mon, 9 Nov 2026 09:00:00 -0800 +Subject: [PATCH] ssl: Fix build with OpenSSL 4 + +OpenSSL 4 makes ASN1_STRING opaque, removes ASN1_STRING_data() and +ERR_remove_state(), and returns const pointers from +X509_EXTENSION_get_object() and X509_EXTENSION_get_data(). + +Use the ASN1_STRING accessors, which are available since OpenSSL 1.1, +make the extension pointers const, and only call ERR_remove_state() with +OpenSSL older than 1.1, where it is not a no-op. + +Upstream-Status: Inappropriate [v4.4 branch is EOL] +Signed-off-by: Khem Raj +--- +diff --git a/src/mongo/util/net/openssl_init.cpp b/src/mongo/util/net/openssl_init.cpp +index c4980bb0..93b6e4fc 100644 +--- a/src/mongo/util/net/openssl_init.cpp ++++ b/src/mongo/util/net/openssl_init.cpp +@@ -77,7 +77,9 @@ public: + + // The `guard` callback will cause an invocation of `getID`, so it must be destroyed first. + static thread_local ManagedId managedId; ++#if OPENSSL_VERSION_NUMBER < 0x10100000L + static thread_local auto guard = makeGuard([] { ERR_remove_state(0); }); ++#endif + + return managedId.id; + } +diff --git a/src/mongo/util/net/ssl_manager_openssl.cpp b/src/mongo/util/net/ssl_manager_openssl.cpp +index 60cde955..fa55bb7d 100644 +--- a/src/mongo/util/net/ssl_manager_openssl.cpp ++++ b/src/mongo/util/net/ssl_manager_openssl.cpp +@@ -1433,7 +1433,10 @@ SSLX509Name getCertificateSubjectX509Name(X509* cert) { + + const auto* str = X509_NAME_ENTRY_get_data(entry); + rdn.emplace_back( +- buffer, str->type, std::string(reinterpret_cast(str->data), str->length)); ++ buffer, ++ ASN1_STRING_type(str), ++ std::string(reinterpret_cast(ASN1_STRING_get0_data(str)), ++ ASN1_STRING_length(str))); + } + if (!rdn.empty()) { + entries.push_back(std::move(rdn)); +@@ -2904,7 +2907,7 @@ Future SSLManagerOpenSSL::parseAndValidatePeerCertificate( + const GENERAL_NAME* currentName = sk_GENERAL_NAME_value(sanNames, i); + if (currentName && currentName->type == GEN_DNS) { + std::string dnsName( +- reinterpret_cast(ASN1_STRING_data(currentName->d.dNSName))); ++ reinterpret_cast(ASN1_STRING_get0_data(currentName->d.dNSName))); + auto swCIDRDNSName = CIDR::parse(dnsName); + if (swCIDRDNSName.isOK()) { + LOGV2_WARNING(23237, +@@ -2925,14 +2928,16 @@ Future SSLManagerOpenSSL::parseAndValidatePeerCertificate( + auto ipAddrStruct = currentName->d.iPAddress; + struct sockaddr_storage ss; + memset(&ss, 0, sizeof(ss)); +- if (ipAddrStruct->length == 4) { ++ const int ipAddrLength = ASN1_STRING_length(ipAddrStruct); ++ const unsigned char* ipAddrData = ASN1_STRING_get0_data(ipAddrStruct); ++ if (ipAddrLength == 4) { + struct sockaddr_in* sa = reinterpret_cast(&ss); + sa->sin_family = AF_INET; +- memcpy(&(sa->sin_addr), ipAddrStruct->data, ipAddrStruct->length); +- } else if (ipAddrStruct->length == 16) { ++ memcpy(&(sa->sin_addr), ipAddrData, ipAddrLength); ++ } else if (ipAddrLength == 16) { + struct sockaddr_in6* sa = reinterpret_cast(&ss); + sa->sin6_family = AF_INET6; +- memcpy(&(sa->sin6_addr), ipAddrStruct->data, ipAddrStruct->length); ++ memcpy(&(sa->sin6_addr), ipAddrData, ipAddrLength); + } + auto ipAddress = + SockAddr(reinterpret_cast(&ss), sizeof(ss)).getAddr(); +@@ -3026,15 +3031,16 @@ StatusWith> SSLManagerOpenSSL::_parsePeerRoles(X50 + stdx::unordered_set roles; + for (int i = 0; i < extCount; i++) { + X509_EXTENSION* ex = sk_X509_EXTENSION_value(exts, i); +- ASN1_OBJECT* obj = X509_EXTENSION_get_object(ex); ++ const ASN1_OBJECT* obj = X509_EXTENSION_get_object(ex); + + if (!OBJ_cmp(obj, rolesObj)) { + // We've found an extension which has our roles OID +- ASN1_OCTET_STRING* data = X509_EXTENSION_get_data(ex); ++ const ASN1_OCTET_STRING* data = X509_EXTENSION_get_data(ex); + + return parsePeerRoles( +- ConstDataRange(reinterpret_cast(data->data), +- reinterpret_cast(data->data) + data->length)); ++ ConstDataRange(reinterpret_cast(ASN1_STRING_get0_data(data)), ++ reinterpret_cast(ASN1_STRING_get0_data(data)) + ++ ASN1_STRING_length(data))); + } + } + +@@ -3054,14 +3060,15 @@ StatusWith>> SSLManagerOpenSSL::_parseTL + ASN1_OBJECT* featuresObj = OBJ_nid2obj(NID_tlsfeature); + for (int i = 0; i < extCount; i++) { + X509_EXTENSION* ex = sk_X509_EXTENSION_value(exts, i); +- ASN1_OBJECT* obj = X509_EXTENSION_get_object(ex); ++ const ASN1_OBJECT* obj = X509_EXTENSION_get_object(ex); + + if (!OBJ_cmp(obj, featuresObj)) { + // We've found an extension which has the features OID +- ASN1_OCTET_STRING* data = X509_EXTENSION_get_data(ex); ++ const ASN1_OCTET_STRING* data = X509_EXTENSION_get_data(ex); + return parseTLSFeature( +- ConstDataRange(reinterpret_cast(data->data), +- reinterpret_cast(data->data) + data->length)); ++ ConstDataRange(reinterpret_cast(ASN1_STRING_get0_data(data)), ++ reinterpret_cast(ASN1_STRING_get0_data(data)) + ++ ASN1_STRING_length(data))); + } + } + return boost::none; diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index b7f2c3aaac..c8095b0292 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://LICENSE-Community.txt;md5=3a865f27f11f43ecbe542d9ea38 file://APACHE-2.0.txt;md5=3b83ef96387f14655fc854ddc3c6bd57" DEPENDS = "openssl libpcap zlib boost curl python3 \ - python3-setuptools-native \ + python3-packaging-native python3-setuptools-native \ python3-pyyaml-native python3-cheetah-native \ python3-psutil-native python3-regex-native \ " @@ -36,6 +36,10 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ 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 \ + file://0001-Use-packaging-instead-of-pkg_resources-for-version-p.patch \ + file://0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch \ + file://0003-boost-Fix-build-with-clang-23.patch \ + file://0004-ssl-Fix-build-with-OpenSSL-4.patch \ " SRC_URI:append:libc-musl = "\ file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \ From patchwork Wed Nov 18 11:01:19 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Awais Belal X-Patchwork-Id: 104747 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.10105.1794999728057356838 for ; Wed, 18 Nov 2026 03:02:08 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=SYbJoYRc; spf=pass (domain: gmail.com, ip: 209.85.128.44, mailfrom: awais.belal@gmail.com) Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4bb606491faso4370665e9.3 for ; Wed, 18 Nov 2026 03:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794999726; x=1795604526; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=BxDal0WYcCzPZtjpm8es+Pm05scYXlF+jmBUvFmFCQo=; b=SYbJoYRcqHwMcPsqCKB9lxYpSbbeDDz/Pmmw6EsEAQfWlCAc0vNQ2kGrhYg68RJdg2 QwBASeqOvYctF5Cya9xTJx3Tqimdqo8rz6+8OUhULjc3EOfJEjMGE4n78wI6ItDxwgNP LJZEeQxwW2ijQfGiqaSiTmHz2Git5mt4XQ2qp5BQKNjtIdSrhRxmusKrMVfLm0NKY8qR AV2QcWFRLCo2zu0ag9HiWBt8Fu2ZLF4J9JaRBPg0gMSvhiqneaVFQQt2gQPQam2rjw15 Wy4QEFcCBr57RT1HAv1JDt7I3dTeYpDlEL+6/pYUxy4s7kgw2X8OVziT1eMlxQf0sGQd OcfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794999726; x=1795604526; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=BxDal0WYcCzPZtjpm8es+Pm05scYXlF+jmBUvFmFCQo=; b=XEqD7LR3Ic5W6VaKRdCrhQy9iQinrW3c0MJ2wNMkr4IjelF5Wlwfk3MmSx6L0p3vGr /qNYgItwjcXyKziJSyfVrenURCegqtxg+3H0U8zLy4sm6oc5S1LM4dkc1HV2y0bBEHKS uRI3htLBaRCSfqhXSSXewinIbMN3H98pPmkTc+6JsG+4KHXTo/wII+1xdiaUR8vxAHYA yvPqsoHOcU3zUpP4Osmmfrsc5Wr3FgW+58+jVjBQRPRTdfIIECqBs1XvUGhuYrrw0z1I ux4aHnfSN90V50+Y+o4bgL80SaWoEGlQkttIzqfipY6+b7N2QYMxMhDNMK6ocyLYmjbX 6lsw== X-Gm-Message-State: APuU4Z/SjjA97MtYXjKUt/I1MzB5FYek85Yn3czB0OsG2K+xWe99QOU5 e4vj5KYZ8Skafbmv9n3bEfvwrAsdXFGtU/SBcp2kP/CzY4o7iiRa2fvYXbXgEzK/ X-Gm-Gg: AYBFou3gGO5UDO9BuR5s+TyjW1tE00rKUJQVtm/YQxe9kx/Ow34GCk5PA9D59VXkNUS v25W2ZG2vI1ZbNY1rWqiQ2fkUGjhCnlRjAD/Jlr75J+oeI3Jw7YiGYpsf28vIMvpbrOrsHKnA7c z1AE2ndVcCP+a1TVQjpB53/cXCirFNRm8upWWtsHCuNorZrX8Ez3sUNv4s/1amNAd3xjqyrfDJq csmlcPvIxuH/LgZt0kc3BDUrcafkq3KUnkQKZrY1whiVR6hpco4LcO1+xmweD9U+048iPYfJ92r 0gpFBG+enlkZ2/hQEw9C426aXZe2VjNlgAHkNxvRnVp7UF4p5uZjeCFMKRnBahwCMOT6ZcxyJwD nsM+Y3/ALJ6QsHpNdGyjdOynJ629gGxmLzeT5JfNwgsWSd237NTSc8jPIls5u4NPCVMKCEXqWPb jJYcsvFPSWSgfFJO8z+zDQw2LoEtw+ImfMV9r369402/OCsI5UVSfmVoQUnfZtUFJ8kILVWxGBi XyAGqxnpNZjtK6K062V9Igy1KuqDNq+T9YHNSqPWaF+Q8Fzbx4uBVyby0q5iqclvZ4HRKuhSihZ yWSTHCsSRkta7jmupG18DCyCPTsuFABt8++7Lf01vg4WtCFokp3i9GMbq6WDtlhz55gowo5DnWw = X-Received: by 2002:a05:600c:4e45:b0:4bb:6814:738c with SMTP id 5b1f17b1804b1-4bb7da267bamr37209015e9.22.1794999725927; Wed, 18 Nov 2026 03:02:05 -0800 (PST) Return-Path: Received: from elitebook.tailad32a6.ts.net ([101.53.238.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb7e57f6f9sm23139885e9.2.2026.11.18.03.02.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 03:02:05 -0800 (PST) From: Awais Belal To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Khem Raj , Awais B Subject: [meta-oe][wrynose][PATCH 6/7] mongodb: Backport fix for SERVER-49099 Date: Wed, 18 Nov 2026 16:01:19 +0500 Message-Id: <20261118110120.3913031-7-awais.belal@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261118110120.3913031-1-awais.belal@gmail.com> References: <20261118110120.3913031-1-awais.belal@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 18 Nov 2026 11:02:10 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132643 From: Khem Raj The Node and Head swap() friends and the copy-and-swap assignment operators in Biggie store.h are unused and refer to members that do not exist. Backport the upstream removal. Signed-off-by: Khem Raj AI-Generated: Uses Claude Code (cherry picked from commit cc2835067bc19f55632483bba26b67aa6174197d) Signed-off-by: Awais B --- ...ove-the-Node-swap-function-in-Biggie.patch | 58 +++++++++++++++++++ .../recipes-dbs/mongodb/mongodb_git.bb | 1 + 2 files changed, 59 insertions(+) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch new file mode 100644 index 0000000000..b2d1d92f30 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch @@ -0,0 +1,58 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Yuhong Zhang +Date: Thu, 9 Jul 2020 15:43:33 +0000 +Subject: [PATCH] SERVER-49099 Remove the Node::swap() function in Biggie + +The Node and Head swap() friends and the copy-and-swap assignment +operators built on them are unused and do not compile: Node::swap() +does not exist and Node has no trieKey, depth, data or children +members (they are _-prefixed). This went unnoticed because they are +in a class template that never instantiates them. + +Upstream-Status: Backport [https://github.com/mongodb/mongo/commit/77ffbcb4f5673b154fe64872cba9f34ce97bc55d] +Signed-off-by: Khem Raj +--- + src/mongo/db/storage/biggie/store.h | 21 --------------------- + 1 file changed, 21 deletions(-) + +diff --git a/src/mongo/db/storage/biggie/store.h b/src/mongo/db/storage/biggie/store.h +index a09b5b4..aeaa337 100644 +--- a/src/mongo/db/storage/biggie/store.h ++++ b/src/mongo/db/storage/biggie/store.h +@@ -809,18 +809,6 @@ private: + + virtual ~Node() = default; + +- friend void swap(Node& first, Node& second) { +- std::swap(first.trieKey, second.trieKey); +- std::swap(first.depth, second.depth); +- std::swap(first.data, second.data); +- std::swap(first.children, second.children); +- } +- +- Node& operator=(const Node other) { +- swap(*this, other); +- return *this; +- } +- + bool isLeaf() const { + for (auto child : _children) { + if (child != nullptr) +@@ -855,17 +843,8 @@ private: + _nextVersion->_hasPreviousVersion = false; + } + +- friend void swap(Head& first, Head& second) { +- Node::swap(first, second); +- } +- + Head(Head&& other) : Node(std::move(other)) {} + +- Head& operator=(const Head other) { +- swap(*this, other); +- return *this; +- } +- + bool hasPreviousVersion() const { + return _hasPreviousVersion; + } diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index c8095b0292..0cd1dd9def 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb @@ -40,6 +40,7 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0002-SConstruct-Pass-call-to-CheckLibWithHeader-as-a-keyw.patch \ file://0003-boost-Fix-build-with-clang-23.patch \ file://0004-ssl-Fix-build-with-OpenSSL-4.patch \ + file://0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch \ " SRC_URI:append:libc-musl = "\ file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \ From patchwork Wed Nov 18 11:01:20 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Awais Belal X-Patchwork-Id: 104750 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.10108.1794999730659071028 for ; Wed, 18 Nov 2026 03:02:10 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=xVzsXzxD; spf=pass (domain: gmail.com, ip: 209.85.128.41, mailfrom: awais.belal@gmail.com) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4bb6ba3b244so8565025e9.3 for ; Wed, 18 Nov 2026 03:02:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1794999729; x=1795604529; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mBqccGZF0TcH8HaWSv91Z9Qic3aNcT7oeq1MQsoE+98=; b=xVzsXzxDXHZam3qLPq2sQrYzQSzSdlGRWr0CrJZ6ihBZGaw2d52C+V26CopQleyfBA G0OhkUo5kN5ZLVWr69AaouId6MrNRM/vEXsGYWRCyRLcCZzYueCYcXCHh1kS4rWDXBTE zO3AEUsuNBrDdVzrEamZh5QBcZ4vd66CtBrPCwD+migpdcG6Ey/8cHQMV/nt4u2owqf6 w22MRpXb0Y5QkU/A7XGMWSOWYWEJcbSTsWPoO4yZvtVy5jp/mkxBHokkfukKkVCpMVOT MRJDgy58grw11ekUZbg0E56bn1PBgjUm3jZexHxD4fZsnenuUN+7e/KDveTka5RJn4DA yOJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1794999729; x=1795604529; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=mBqccGZF0TcH8HaWSv91Z9Qic3aNcT7oeq1MQsoE+98=; b=sez02EQs9wqs1FLrDF60Bg+BEkiIafBn6m33RM8uCwIblSq0WqTrvEo6RjWKYIgTGu lWb1d9jHLDA94ikNLuXSm8z3W2cvP+I+6DO3rkDXFcNi95G2uoO+2qrJJ62RuT30JQnr wnSxhcoAIRtaHHX2AldvQan0C0UbUcBSK+2hgg7+uo9cJ0ObeFUrlBkDKWvXAiwk2TOI lknKlltRORGD/YxUlP50P8L1uJ5F+TdiI85jDN9AnYfDBn5Rf7d2ey3pJL2asMI7zlAK x2l+9r+mP+zyUmOWrUfDhRjYPaqOvBb+H4XureemnEfkhX3CVyYzpnjZOPC3eb9GqFyX SjTg== X-Gm-Message-State: APuU4Z/HJZas3PDt/JlMsc0jJm8ZbxboIb6dVlfNy1LMGVlJaIRCNHPx bwzMr0pfA++GVPi6dG3s6Jf7Ai+91slT1wGagXTw9uv8pMpNDlukZruIxZuiFX/v X-Gm-Gg: AYBFou0UJja2drhQU3bKUi2kmIAibv4KmEmXhU2/348PljL3Vh/qocgP7ZJnRFhkO+l Q2LC5S23FpcCbdxTvKTmfcVHWOwmtv8lCxrdR2ovq/D0zU2xLgB5JP84uuNYEmz/uG8P1sR5uVK sWyMq04K+Jwzn0/xUSOv76Jicp0wi3Ik/5Qos18QSaoLQyNed1OXRjFGq0NLcyboxteYRIj7M2P lTCW5c6sTMFL5uzlTl422UZ/+/DVs01zz4MNE/ThoUav8FsocVJ7kReGhikgH/m2LvJ8vx4Wjae lOw7Cg123gv6ZGKZaO1MnGD+TmgRtjr1UtstQFisSxujLPtRzTseVzaGm97haUwYbWrAc7iNpb+ nkvQ3DVvPX7H57rW3g3E52D/d9MIMsWOE2iw1b/1PM5tITx7cqhJCXwF8vDTZx/o0irLsXeaxUe B9CvuM+TJua6OFUd/w2Y71JLO/wygde+lhqF9Sq1V9kJzgPxy6sp8OPYE/+PvDz1B1k8/1On7vs XtyP8tDXrOJUuhElK49ijMJeTodr8un/PKOIywN1Fw+lLvwEJVbSsjLn+YMoIbT4hKZEhy163H1 Zdw9H62tJDAvyRtMig2Fb9BNLTVzANrRLU05mHWrgKrGnHyj6uMf5qD9k4ndYDcaBb4ZjYgeIbE = X-Received: by 2002:a05:600c:3509:b0:4a3:59ee:86b with SMTP id 5b1f17b1804b1-4bb7d5d66efmr43629925e9.4.1794999728490; Wed, 18 Nov 2026 03:02:08 -0800 (PST) Return-Path: Received: from elitebook.tailad32a6.ts.net ([101.53.238.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb7e57f6f9sm23139885e9.2.2026.11.18.03.02.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2026 03:02:07 -0800 (PST) From: Awais Belal To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Khem Raj , Awais B Subject: [meta-oe][wrynose][PATCH 7/7] mongodb: Keep build paths out of buildInfo Date: Wed, 18 Nov 2026 16:01:20 +0500 Message-Id: <20261118110120.3913031-8-awais.belal@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261118110120.3913031-1-awais.belal@gmail.com> References: <20261118110120.3913031-1-awais.belal@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 18 Nov 2026 11:02:20 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/132644 From: Khem Raj By default buildInfo embeds the compiler version string and CCFLAGS, CXXFLAGS and LINKFLAGS, which carry --sysroot and -ffile-prefix-map paths into mongod and mongos and trigger buildpaths QA warnings. Pass a variables file that drops those entries from MONGO_BUILDINFO_ENVIRONMENT_DATA. Signed-off-by: Khem Raj (cherry picked from commit 17fb07cf799cc98205c63c2d2cc956fc8d12b533) Signed-off-by: Awais B --- .../recipes-dbs/mongodb/mongodb/oe-buildinfo.vars | 11 +++++++++++ .../meta-python/recipes-dbs/mongodb/mongodb_git.bb | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/oe-buildinfo.vars diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/oe-buildinfo.vars b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/oe-buildinfo.vars new file mode 100644 index 0000000000..950dc4baa2 --- /dev/null +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb/oe-buildinfo.vars @@ -0,0 +1,11 @@ +# Keep the compiler and its flags, which carry build paths, out of +# the buildInfo command and --version output +from mongo.generators import default_buildinfo_environment_data + +MONGO_BUILDINFO_ENVIRONMENT_DATA = { + k: v for k, v in default_buildinfo_environment_data().items() + if k not in ('cc', 'ccflags', 'cxx', 'cxxflags', 'linkflags') +} + +# SConstruct rejects unknown names left in a variables file +del default_buildinfo_environment_data diff --git a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb index 0cd1dd9def..76a3acfda4 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb +++ b/meta-oe/dynamic-layers/meta-python/recipes-dbs/mongodb/mongodb_git.bb @@ -41,6 +41,7 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4;protocol=https \ file://0003-boost-Fix-build-with-clang-23.patch \ file://0004-ssl-Fix-build-with-OpenSSL-4.patch \ file://0005-SERVER-49099-Remove-the-Node-swap-function-in-Biggie.patch \ + file://oe-buildinfo.vars \ " SRC_URI:append:libc-musl = "\ file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \ @@ -87,6 +88,7 @@ EXTRA_OESCONS = "PREFIX=${prefix} \ TARGET_ARCH=${MONGO_ARCH} \ MONGO_VERSION=${PV} \ OBJCOPY=${OBJCOPY} \ + --variables-files=${UNPACKDIR}/oe-buildinfo.vars \ --ssl \ --disable-warnings-as-errors \ --use-system-zlib \