summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-dbs
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-dbs')
-rw-r--r--meta-oe/recipes-dbs/lmdb/files/CVE-2026-22185.patch31
-rw-r--r--meta-oe/recipes-dbs/lmdb/lmdb_0.9.35.bb (renamed from meta-oe/recipes-dbs/lmdb/lmdb_0.9.31.bb)5
-rw-r--r--meta-oe/recipes-dbs/postgresql/files/0001-tcl.m4-Recognize-tclsh9.patch2
-rw-r--r--meta-oe/recipes-dbs/postgresql/files/0002-Improve-reproducibility.patch9
-rw-r--r--meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch6
-rw-r--r--meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch4
-rw-r--r--meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch5
-rw-r--r--meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch6
-rw-r--r--meta-oe/recipes-dbs/postgresql/postgresql_17.8.bb (renamed from meta-oe/recipes-dbs/postgresql/postgresql_17.7.bb)4
-rw-r--r--meta-oe/recipes-dbs/rocksdb/files/0001-Findzstd.cmake-support-pkg-config-based-zstd-detecti.patch43
-rw-r--r--meta-oe/recipes-dbs/rocksdb/rocksdb_9.10.0.bb1
11 files changed, 61 insertions, 55 deletions
diff --git a/meta-oe/recipes-dbs/lmdb/files/CVE-2026-22185.patch b/meta-oe/recipes-dbs/lmdb/files/CVE-2026-22185.patch
deleted file mode 100644
index 6c85b2b8ed..0000000000
--- a/meta-oe/recipes-dbs/lmdb/files/CVE-2026-22185.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From 94ca20e5aed5d8730e045bb945fa3485b28a7981 Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Tue, 6 Jan 2026 20:52:25 +0000
4Subject: [PATCH] ITS#10421 mdb_load: check for malicious input
5
6From: Howard Chu <hyc@openldap.org>
7
8CVE: CVE-2026-22185
9Upstream-Status: Backport [https://github.com/LMDB/lmdb/commit/8e1fda85532a3c74276df38a42d234dcdfa1e40d]
10Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
11---
12 libraries/liblmdb/mdb_load.c | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c
16index d2a3cec..7eccf40 100644
17--- a/libraries/liblmdb/mdb_load.c
18+++ b/libraries/liblmdb/mdb_load.c
19@@ -208,6 +208,12 @@ badend:
20
21 c1 = buf->mv_data;
22 len = strlen((char *)c1);
23+ if (!len) {
24+ /* This can only happen with an intentionally invalid input
25+ * with a NUL byte after the leading SPACE
26+ */
27+ goto badend;
28+ }
29 l2 = len;
30
31 /* Is buffer too short? */
diff --git a/meta-oe/recipes-dbs/lmdb/lmdb_0.9.31.bb b/meta-oe/recipes-dbs/lmdb/lmdb_0.9.35.bb
index 29bfbb81fa..36f2056914 100644
--- a/meta-oe/recipes-dbs/lmdb/lmdb_0.9.31.bb
+++ b/meta-oe/recipes-dbs/lmdb/lmdb_0.9.35.bb
@@ -8,14 +8,13 @@ HOMEPAGE = "https://symas.com/lightning-memory-mapped-database/"
8LICENSE = "OLDAP-2.8" 8LICENSE = "OLDAP-2.8"
9LIC_FILES_CHKSUM = "file://LICENSE;md5=153d07ef052c4a37a8fac23bc6031972" 9LIC_FILES_CHKSUM = "file://LICENSE;md5=153d07ef052c4a37a8fac23bc6031972"
10 10
11SRC_URI = "git://github.com/LMDB/lmdb.git;nobranch=1;protocol=https \ 11SRC_URI = "git://github.com/LMDB/lmdb.git;nobranch=1;protocol=https;tag=LMDB_${PV} \
12 file://run-ptest \ 12 file://run-ptest \
13 file://0001-Makefile-use-libprefix-instead-of-libdir.patch \ 13 file://0001-Makefile-use-libprefix-instead-of-libdir.patch \
14 file://0001-make-set-soname-on-liblmdb.patch;patchdir=../.. \ 14 file://0001-make-set-soname-on-liblmdb.patch;patchdir=../.. \
15 file://CVE-2026-22185.patch;striplevel=3 \
16 " 15 "
17 16
18SRCREV = "ce201088de95d26fc0da36ba805bf2ddc2ba74ff" 17SRCREV = "69087ced3cb6082f7dcfb4fc2dcaa3b68a7e2e8c"
19 18
20inherit ptest 19inherit ptest
21 20
diff --git a/meta-oe/recipes-dbs/postgresql/files/0001-tcl.m4-Recognize-tclsh9.patch b/meta-oe/recipes-dbs/postgresql/files/0001-tcl.m4-Recognize-tclsh9.patch
index 89a509087f..445a6d4910 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0001-tcl.m4-Recognize-tclsh9.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0001-tcl.m4-Recognize-tclsh9.patch
@@ -1,4 +1,4 @@
1From f0d8240dbf594e6dfab31fd7d70ce340ac365a65 Mon Sep 17 00:00:00 2001 1From ab23817b4f4a02de21f63800adc30d6236c15c8b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 3 Nov 2024 15:50:50 -0800 3Date: Sun, 3 Nov 2024 15:50:50 -0800
4Subject: [PATCH] tcl.m4: Recognize tclsh9 4Subject: [PATCH] tcl.m4: Recognize tclsh9
diff --git a/meta-oe/recipes-dbs/postgresql/files/0002-Improve-reproducibility.patch b/meta-oe/recipes-dbs/postgresql/files/0002-Improve-reproducibility.patch
index b3e87cbc46..e0605347e3 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0002-Improve-reproducibility.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0002-Improve-reproducibility.patch
@@ -1,7 +1,7 @@
1From 084cc44215c1d5e6d33bc3d2e1d24da4fc98bdcd Mon Sep 17 00:00:00 2001 1From 736c190e0c8a1c5ce3dc84292d066292e969d81e Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Mon, 28 Dec 2020 16:38:21 +0800 3Date: Mon, 28 Dec 2020 16:38:21 +0800
4Subject: [PATCH 2/5] Improve reproducibility, 4Subject: [PATCH] Improve reproducibility,
5 5
6Remove build patch from binaries which pg_config do 6Remove build patch from binaries which pg_config do
7not record var-CC, var-CFLAGS, and configure 7not record var-CC, var-CFLAGS, and configure
@@ -23,7 +23,7 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
23 1 file changed, 3 deletions(-) 23 1 file changed, 3 deletions(-)
24 24
25diff --git a/src/common/Makefile b/src/common/Makefile 25diff --git a/src/common/Makefile b/src/common/Makefile
26index 113029b..58842a6 100644 26index 3d83299..e14cda6 100644
27--- a/src/common/Makefile 27--- a/src/common/Makefile
28+++ b/src/common/Makefile 28+++ b/src/common/Makefile
29@@ -31,9 +31,6 @@ include $(top_builddir)/src/Makefile.global 29@@ -31,9 +31,6 @@ include $(top_builddir)/src/Makefile.global
@@ -36,6 +36,3 @@ index 113029b..58842a6 100644
36 override CPPFLAGS += -DVAL_CFLAGS_SL="\"$(CFLAGS_SL)\"" 36 override CPPFLAGS += -DVAL_CFLAGS_SL="\"$(CFLAGS_SL)\""
37 override CPPFLAGS += -DVAL_LDFLAGS="\"$(STD_LDFLAGS)\"" 37 override CPPFLAGS += -DVAL_LDFLAGS="\"$(STD_LDFLAGS)\""
38 override CPPFLAGS += -DVAL_LDFLAGS_EX="\"$(LDFLAGS_EX)\"" 38 override CPPFLAGS += -DVAL_LDFLAGS_EX="\"$(LDFLAGS_EX)\""
39--
402.25.1
41
diff --git a/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch b/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch
index ce19bacc47..b91228aedd 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch
@@ -1,4 +1,4 @@
1From 30b1b37d309f67ba6d58f2197bd917107bc7d56c Mon Sep 17 00:00:00 2001 1From 29289c6f5b665ed9943bb7701a542fcdf64c4a22 Mon Sep 17 00:00:00 2001
2From: Yi Fan Yu <yifan.yu@windriver.com> 2From: Yi Fan Yu <yifan.yu@windriver.com>
3Date: Fri, 5 Feb 2021 17:15:42 -0500 3Date: Fri, 5 Feb 2021 17:15:42 -0500
4Subject: [PATCH] configure.ac: bypass autoconf 2.69 version check 4Subject: [PATCH] configure.ac: bypass autoconf 2.69 version check
@@ -13,12 +13,12 @@ Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
13 1 file changed, 4 deletions(-) 13 1 file changed, 4 deletions(-)
14 14
15diff --git a/configure.ac b/configure.ac 15diff --git a/configure.ac b/configure.ac
16index 642dbde..af37179 100644 16index 856b091..646394c 100644
17--- a/configure.ac 17--- a/configure.ac
18+++ b/configure.ac 18+++ b/configure.ac
19@@ -19,10 +19,6 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros 19@@ -19,10 +19,6 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
20 20
21 AC_INIT([PostgreSQL], [17.7], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/]) 21 AC_INIT([PostgreSQL], [17.8], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/])
22 22
23-m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required. 23-m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
24-Untested combinations of 'autoconf' and PostgreSQL versions are not 24-Untested combinations of 'autoconf' and PostgreSQL versions are not
diff --git a/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch b/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch
index d94f028036..1514c223c1 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0004-config_info.c-not-expose-build-info.patch
@@ -1,4 +1,4 @@
1From 62733bdc9346651637d9e5ac7cbf8d7311ef5d97 Mon Sep 17 00:00:00 2001 1From e4b32033827ed73c95e6e6aa26dd45e828ffc18b Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com> 2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Mon, 1 Aug 2022 15:44:38 +0800 3Date: Mon, 1 Aug 2022 15:44:38 +0800
4Subject: [PATCH] config_info.c: not expose build info 4Subject: [PATCH] config_info.c: not expose build info
@@ -14,7 +14,7 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
14 2 files changed, 2 insertions(+), 70 deletions(-) 14 2 files changed, 2 insertions(+), 70 deletions(-)
15 15
16diff --git a/configure.ac b/configure.ac 16diff --git a/configure.ac b/configure.ac
17index f0fa973..8ccd8bc 100644 17index 646394c..f5a5590 100644
18--- a/configure.ac 18--- a/configure.ac
19+++ b/configure.ac 19+++ b/configure.ac
20@@ -23,7 +23,7 @@ AC_COPYRIGHT([Copyright (c) 1996-2024, PostgreSQL Global Development Group]) 20@@ -23,7 +23,7 @@ AC_COPYRIGHT([Copyright (c) 1996-2024, PostgreSQL Global Development Group])
diff --git a/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch b/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch
index 8219fc80e9..753cd1bb97 100644
--- a/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/0005-postgresql-fix-ptest-failure-of-sysviews.patch
@@ -1,4 +1,4 @@
1From d1fb37569b5a8c21968f69164e8bc6e4bb0185eb Mon Sep 17 00:00:00 2001 1From 220b65291734b81a3c232877cf5fced20fe773e3 Mon Sep 17 00:00:00 2001
2From: Manoj Saun <manojsingh.saun@windriver.com> 2From: Manoj Saun <manojsingh.saun@windriver.com>
3Date: Wed, 22 Mar 2023 08:07:26 +0000 3Date: Wed, 22 Mar 2023 08:07:26 +0000
4Subject: [PATCH] postgresql: fix ptest failure of sysviews 4Subject: [PATCH] postgresql: fix ptest failure of sysviews
@@ -44,6 +44,3 @@ index b047fb5..d1e3999 100644
44 44
45 -- We expect no cursors in this test; see also portals.sql 45 -- We expect no cursors in this test; see also portals.sql
46 select count(*) = 0 as ok from pg_cursors; 46 select count(*) = 0 as ok from pg_cursors;
47--
482.34.1
49
diff --git a/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch b/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch
index a2f0500a8c..1142ff4878 100644
--- a/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch
+++ b/meta-oe/recipes-dbs/postgresql/files/not-check-libperl.patch
@@ -1,4 +1,4 @@
1From 1a9416bae71aa935797add3fa11407732ad010c0 Mon Sep 17 00:00:00 2001 1From 29e76cad362c7154920aa49aa0137e1773c4d3ec Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com> 2From: Changqing Li <changqing.li@windriver.com>
3Date: Tue, 27 Nov 2018 13:25:15 +0800 3Date: Tue, 27 Nov 2018 13:25:15 +0800
4Subject: [PATCH] not check libperl under cross compiling 4Subject: [PATCH] not check libperl under cross compiling
@@ -20,10 +20,10 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
20 1 file changed, 1 insertion(+), 1 deletion(-) 20 1 file changed, 1 insertion(+), 1 deletion(-)
21 21
22diff --git a/configure.ac b/configure.ac 22diff --git a/configure.ac b/configure.ac
23index f398184..493d5cd 100644 23index ce0966f..856b091 100644
24--- a/configure.ac 24--- a/configure.ac
25+++ b/configure.ac 25+++ b/configure.ac
26@@ -2336,7 +2336,7 @@ Use --without-tcl to disable building PL/Tcl.]) 26@@ -2340,7 +2340,7 @@ Use --without-tcl to disable building PL/Tcl.])
27 fi 27 fi
28 28
29 # check for <perl.h> 29 # check for <perl.h>
diff --git a/meta-oe/recipes-dbs/postgresql/postgresql_17.7.bb b/meta-oe/recipes-dbs/postgresql/postgresql_17.8.bb
index 81b096194c..ad1e9704cc 100644
--- a/meta-oe/recipes-dbs/postgresql/postgresql_17.7.bb
+++ b/meta-oe/recipes-dbs/postgresql/postgresql_17.8.bb
@@ -1,6 +1,6 @@
1require postgresql.inc 1require postgresql.inc
2 2
3LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=08b6032a749e67f6e3de84ea8e466933" 3LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=55760ee57ce4e51e4b57f0801ff032dd"
4 4
5SRC_URI += "\ 5SRC_URI += "\
6 file://not-check-libperl.patch \ 6 file://not-check-libperl.patch \
@@ -12,6 +12,6 @@ SRC_URI += "\
12 file://0001-tcl.m4-Recognize-tclsh9.patch \ 12 file://0001-tcl.m4-Recognize-tclsh9.patch \
13" 13"
14 14
15SRC_URI[sha256sum] = "ef9e343302eccd33112f1b2f0247be493cb5768313adeb558b02de8797a2e9b5" 15SRC_URI[sha256sum] = "a88d195dd93730452d0cfa1a11896720d6d1ba084bc2be7d7fc557fa4e4158a0"
16 16
17CVE_STATUS[CVE-2017-8806] = "not-applicable-config: Doesn't apply to our configuration of postgresql so we can safely ignore it." 17CVE_STATUS[CVE-2017-8806] = "not-applicable-config: Doesn't apply to our configuration of postgresql so we can safely ignore it."
diff --git a/meta-oe/recipes-dbs/rocksdb/files/0001-Findzstd.cmake-support-pkg-config-based-zstd-detecti.patch b/meta-oe/recipes-dbs/rocksdb/files/0001-Findzstd.cmake-support-pkg-config-based-zstd-detecti.patch
new file mode 100644
index 0000000000..dac61773e5
--- /dev/null
+++ b/meta-oe/recipes-dbs/rocksdb/files/0001-Findzstd.cmake-support-pkg-config-based-zstd-detecti.patch
@@ -0,0 +1,43 @@
1From 7509f5d4bfcd8ba8bc0ad8c2054b2b336d8c0c9f Mon Sep 17 00:00:00 2001
2From: Minjae Kim <mj.kim@mercedes-benz.com>
3Date: Mon, 9 Feb 2026 20:34:53 +0000
4Subject: [PATCH] Findzstd.cmake: support pkg-config based zstd detection
5
6In Yocto builds, zstd is built via Makefile and does not install
7CMake package configuration files. As a result, Findzstd.cmake
8fails to detect ZSTD_INCLUDE_DIRS.
9
10Add pkg-config based detection as a fallback to properly locate
11zstd headers and libraries.
12
13fix error:
14| Could NOT find zstd (missing: ZSTD_INCLUDE_DIRS)
15| Call Stack (most recent call first):
16
17
18Upstream-Status: Submitted [https://github.com/facebook/rocksdb/pull/14308]
19
20Signed-off-by: Minjae Kim <flowergom@gmail.com>
21
22---
23 cmake/modules/Findzstd.cmake | 4 ++++
24 1 file changed, 4 insertions(+)
25
26diff --git a/cmake/modules/Findzstd.cmake b/cmake/modules/Findzstd.cmake
27index e82fa148c8..f160be9ae0 100644
28--- a/cmake/modules/Findzstd.cmake
29+++ b/cmake/modules/Findzstd.cmake
30@@ -14,6 +14,10 @@ find_library(ZSTD_LIBRARIES
31 HINTS ${zstd_ROOT_DIR}/lib)
32
33 include(FindPackageHandleStandardArgs)
34+find_package(PkgConfig QUIET)
35+if(PKG_CONFIG_FOUND)
36+ pkg_check_modules(ZSTD QUIET libzstd)
37+endif()
38 find_package_handle_standard_args(zstd DEFAULT_MSG ZSTD_LIBRARIES ZSTD_INCLUDE_DIRS)
39
40 mark_as_advanced(
41--
422.43.0
43
diff --git a/meta-oe/recipes-dbs/rocksdb/rocksdb_9.10.0.bb b/meta-oe/recipes-dbs/rocksdb/rocksdb_9.10.0.bb
index c6d5a0ec7f..d8ba31e8ca 100644
--- a/meta-oe/recipes-dbs/rocksdb/rocksdb_9.10.0.bb
+++ b/meta-oe/recipes-dbs/rocksdb/rocksdb_9.10.0.bb
@@ -22,6 +22,7 @@ SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH};protocol=htt
22 file://run-ptest \ 22 file://run-ptest \
23 file://0001-Fix-build-error-with-gcc-13-by-adding-cstdint-header.patch \ 23 file://0001-Fix-build-error-with-gcc-13-by-adding-cstdint-header.patch \
24 file://0001-checkpoint.h-Add-missing-includes-cstdint.patch \ 24 file://0001-checkpoint.h-Add-missing-includes-cstdint.patch \
25 file://0001-Findzstd.cmake-support-pkg-config-based-zstd-detecti.patch \
25 " 26 "
26 27
27SRC_URI:append:riscv32 = " file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch" 28SRC_URI:append:riscv32 = " file://0001-replace-old-sync-with-new-atomic-builtin-equivalents.patch"