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/mysql/mariadb-native_11.4.10.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb-native_11.4.9.bb)0
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb.inc4
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-38029-my_tzinfo-t-fails-for-certain-TZ-values-o.patch47
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-x86-specific-loop-in-my_convert.patch93
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb_11.4.10.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb_11.4.9.bb)0
-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/files/0001-Fix-build-error-with-gcc-13-by-adding-cstdint-header.patch28
-rw-r--r--meta-oe/recipes-dbs/rocksdb/files/0005-Implement-timer-implementation-for-mips-platform.patch4
-rw-r--r--meta-oe/recipes-dbs/rocksdb/files/static_library_as_option.patch2
-rw-r--r--meta-oe/recipes-dbs/rocksdb/rocksdb_10.10.1.bb (renamed from meta-oe/recipes-dbs/rocksdb/rocksdb_9.10.0.bb)9
19 files changed, 70 insertions, 232 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/mysql/mariadb-native_11.4.9.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.10.bb
index ff48dcd806..ff48dcd806 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.9.bb
+++ b/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.10.bb
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc
index 4fcb5a1e40..9470184d3d 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb.inc
+++ b/meta-oe/recipes-dbs/mysql/mariadb.inc
@@ -23,12 +23,10 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \
23 file://lfs64.patch \ 23 file://lfs64.patch \
24 file://0001-Add-missing-includes-cstdint-and-cstdio.patch \ 24 file://0001-Add-missing-includes-cstdint-and-cstdio.patch \
25 file://riscv32.patch \ 25 file://riscv32.patch \
26 file://0001-Remove-x86-specific-loop-in-my_convert.patch \
27 file://0001-support-reproducible-builds.patch \ 26 file://0001-support-reproducible-builds.patch \
28 file://0001-storage-mroonga-CMakeLists.txt-fix-reproducible-buil.patch \ 27 file://0001-storage-mroonga-CMakeLists.txt-fix-reproducible-buil.patch \
29 file://0001-MDEV-38029-my_tzinfo-t-fails-for-certain-TZ-values-o.patch \
30 " 28 "
31SRC_URI[sha256sum] = "8e481ca29b5a740444d45451c8ea2d93711cf525d6fa5d27bc9512cf8973b075" 29SRC_URI[sha256sum] = "14783ddc5edd966ff05aa0efd5ed6d3d369ed5b9e4080a448f00f87a9f0a4a6b"
32 30
33UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/tags" 31UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/tags"
34 32
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-38029-my_tzinfo-t-fails-for-certain-TZ-values-o.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-38029-my_tzinfo-t-fails-for-certain-TZ-values-o.patch
deleted file mode 100644
index f1e07e304a..0000000000
--- a/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-38029-my_tzinfo-t-fails-for-certain-TZ-values-o.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1From 61bc216ff9e1d0a8a7fafce57ba916018cd6ac6d Mon Sep 17 00:00:00 2001
2From: Vladislav Vaintroub <vvaintroub@gmail.com>
3Date: Wed, 19 Nov 2025 13:01:56 +0100
4Subject: [PATCH] MDEV-38029 my_tzinfo-t fails for certain TZ values on musl
5
6From: Vladislav Vaintroub <vvaintroub@gmail.com>
7
8The test fails for TZ values such as `PST8PDT` (present but outdated in
9tzdb) and custom forms like `GST-1GDT`. On musl, these values do not
10trigger the expected DST transitions, leading to incorrect DST offsets
11or abbreviations.
12
13This appears to be a musl libc bug; the same TZ values behave correctly
14elsewhere, including Windows. We work around it by skipping the
15affected tests when musl is detected.
16
17Upstream-Status: Submitted [https://github.com/MariaDB/server/pull/4452]
18Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
19---
20 unittest/mysys/my_tzinfo-t.c | 14 ++++++++++++++
21 1 file changed, 14 insertions(+)
22
23diff --git a/unittest/mysys/my_tzinfo-t.c b/unittest/mysys/my_tzinfo-t.c
24index b38ebd37..585d52f8 100644
25--- a/unittest/mysys/my_tzinfo-t.c
26+++ b/unittest/mysys/my_tzinfo-t.c
27@@ -112,6 +112,20 @@ void test_timezone(const char *tz_env, const char **expected_tznames,
28 }
29 }
30 ok(found, "%s: timezone_name = %s", tz_env, timezone_name);
31+
32+#if defined __linux__ && !defined __GLIBC__ && !defined __UCLIBC__
33+ /*
34+ MUSL incorrectly calculates UTC offsets and abbreviations
35+ for certain values of TZ (DST related). See MDEV-38029
36+ Skip tests in this case.
37+ */
38+ if (!strcmp(tz_env, "PST8PDT") || !strcmp(tz_env, "GST-1GDT"))
39+ {
40+ skip(6, "musl UTC offset/abbreviation bug, tzname %s, see MDEV-38029", tz_env);
41+ return;
42+ }
43+#endif
44+
45 my_tzinfo(SUMMER_TIMESTAMP, &tz);
46 ok(summer_gmt_off == tz.seconds_offset, "%s: Summer GMT offset %ld", tz_env, tz.seconds_offset);
47 check_utc_offset(SUMMER_TIMESTAMP,tz.seconds_offset, tz_env);
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-x86-specific-loop-in-my_convert.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-x86-specific-loop-in-my_convert.patch
deleted file mode 100644
index afcf4fe843..0000000000
--- a/meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-x86-specific-loop-in-my_convert.patch
+++ /dev/null
@@ -1,93 +0,0 @@
1From 79d2a95391abc133e86688696ae21628b7035b2d Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?=
3 <zboszor@gmail.com>
4Date: Wed, 1 Oct 2025 09:29:04 +0200
5Subject: [PATCH] Remove x86 specific loop in my_convert()
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10mysqldump/mariadb-dump crashes with this backtrace:
11
12| (gdb) bt
13| #0 my_convert (to=<optimized out>, to_length=160, to_cs=0x55b5740fbda0 <my_charset_utf8mb4_general_ci>, from=<optimized out>, from_length=40,
14| from_cs=0x55b57408bda0 <my_charset_utf8mb3_unicode_ci>, errors=0x7f950c35cd6c) at /usr/src/debug/mariadb/11.8.3/strings/ctype.c:1256
15| #1 0x000055b572d9f4a0 in copy_and_convert (to=0x7f94fc00c9db "Configuratiogicate_log\020automagicate_log\017is_done_message\017is_done_message",
16| to_length=<optimized out>, to_cs=<optimized out>, from=0x7f94fc059f37 "Configuration downloading from portal...", from_length=40, from_cs=<optimized out>,
17| errors=0x7f950c35cd6c) at /usr/src/debug/mariadb/11.8.3/sql/sql_string.h:53
18| #2 Protocol::net_store_data_cs (this=0x7f94fc001260, from=0x7f94fc059f37 "Configuration downloading from portal...", length=40, from_cs=<optimized out>,
19| to_cs=<optimized out>) at /usr/src/debug/mariadb/11.8.3/sql/protocol.cc:114
20| #3 0x000055b572da103f in Protocol::send_result_set_row (this=this@entry=0x7f94fc001260, row_items=row_items@entry=0x7f94fc013418)
21| at /usr/src/debug/mariadb/11.8.3/sql/protocol.cc:1359
22| #4 0x000055b572e19442 in select_send::send_data (this=0x7f94fc014f78, items=...) at /usr/src/debug/mariadb/11.8.3/sql/sql_class.cc:3294
23| #5 0x000055b572ef7c69 in select_result_sink::send_data_with_check (u=<optimized out>, sent=<optimized out>, this=<optimized out>, items=...)
24| at /usr/src/debug/mariadb/11.8.3/sql/sql_class.h:6264
25| #6 select_result_sink::send_data_with_check (this=<optimized out>, items=..., u=<optimized out>, sent=<optimized out>)
26| at /usr/src/debug/mariadb/11.8.3/sql/sql_class.h:6254
27| #7 end_send (join=<optimized out>, join_tab=<optimized out>, end_of_records=<optimized out>) at /usr/src/debug/mariadb/11.8.3/sql/sql_select.cc:25629
28| #8 0x000055b572ec38b6 in evaluate_join_record (join=join@entry=0x7f94fc014fa0, join_tab=join_tab@entry=0x7f94fc016940, error=error@entry=0)
29| at /usr/src/debug/mariadb/11.8.3/sql/sql_select.cc:24523
30| #9 0x000055b572edcbf2 in sub_select (join=0x7f94fc014fa0, join_tab=0x7f94fc016940, end_of_records=<optimized out>)
31| at /usr/src/debug/mariadb/11.8.3/sql/sql_select.cc:24290
32| #10 0x000055b572f119c6 in do_select (join=0x7f94fc014fa0, procedure=<optimized out>) at /usr/src/debug/mariadb/11.8.3/sql/sql_select.cc:23801
33| #11 JOIN::exec_inner (this=this@entry=0x7f94fc014fa0) at /usr/src/debug/mariadb/11.8.3/sql/sql_select.cc:5071
34| #12 0x000055b572f11d43 in JOIN::exec (this=this@entry=0x7f94fc014fa0) at /usr/src/debug/mariadb/11.8.3/sql/sql_select.cc:4859
35| #13 0x000055b572f0ffe6 in mysql_select (thd=thd@entry=0x7f94fc000cd8, tables=0x7f94fc013f38, fields=..., conds=0x0, og_num=0, order=0x0, group=0x0, having=0x0,
36| proc_param=0x0, select_options=551922436864, result=0x7f94fc014f78, unit=0x7f94fc005038, select_lex=0x7f94fc013160)
37| at /usr/src/debug/mariadb/11.8.3/sql/sql_select.cc:5387
38| #14 0x000055b572f107dd in handle_select (thd=thd@entry=0x7f94fc000cd8, lex=lex@entry=0x7f94fc004f58, result=result@entry=0x7f94fc014f78,
39| setup_tables_done_option=setup_tables_done_option@entry=0) at /usr/src/debug/mariadb/11.8.3/sql/sql_select.cc:633
40| #15 0x000055b572e77d9e in execute_sqlcom_select (thd=thd@entry=0x7f94fc000cd8, all_tables=0x7f94fc013f38) at /usr/src/debug/mariadb/11.8.3/sql/sql_parse.cc:6190
41| #16 0x000055b572e877be in mysql_execute_command (thd=thd@entry=0x7f94fc000cd8, is_called_from_prepared_stmt=is_called_from_prepared_stmt@entry=false)
42| at /usr/src/debug/mariadb/11.8.3/sql/sql_parse.cc:3975
43| #17 0x000055b572e88e03 in mysql_parse (thd=0x7f94fc000cd8, rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>)
44| at /usr/src/debug/mariadb/11.8.3/sql/sql_parse.cc:7905
45| #18 0x000055b572e8b2a1 in dispatch_command (command=command@entry=COM_QUERY, thd=thd@entry=0x7f94fc000cd8, packet=packet@entry=0x7f94fc0088a9 "",
46| packet_length=packet_length@entry=152, blocking=blocking@entry=true) at /usr/src/debug/mariadb/11.8.3/sql/sql_parse.cc:1903
47| #19 0x000055b572e8cf7c in do_command (thd=thd@entry=0x7f94fc000cd8, blocking=blocking@entry=true) at /usr/src/debug/mariadb/11.8.3/sql/sql_parse.cc:1416
48| #20 0x000055b572fcfc0d in do_handle_one_connection (connect=<optimized out>, put_in_cache=true) at /usr/src/debug/mariadb/11.8.3/sql/sql_connect.cc:1415
49| #21 0x000055b572fcffc5 in handle_one_connection (arg=arg@entry=0x55b57943cbd8) at /usr/src/debug/mariadb/11.8.3/sql/sql_connect.cc:1327
50| #22 0x000055b573382440 in pfs_spawn_thread (arg=0x55b5795eb598) at /usr/src/debug/mariadb/11.8.3/storage/perfschema/pfs.cc:2198
51| #23 0x00007f952e8571dd in start_thread (arg=<optimized out>) at pthread_create.c:448
52| #24 0x00007f952e8d318c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
53
54See also:
55https://jira.mariadb.org/browse/MDEV-37786
56https://jira.mariadb.org/browse/MDEV-37148
57
58Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
59Upstream-Status: Inappropriate [oe specific]
60---
61 strings/ctype.c | 16 ----------------
62 1 file changed, 16 deletions(-)
63
64diff --git a/strings/ctype.c b/strings/ctype.c
65index 629514e5e9c..d7e788c693b 100644
66--- a/strings/ctype.c
67+++ b/strings/ctype.c
68@@ -1243,22 +1243,6 @@ my_convert(char *to, uint32 to_length, CHARSET_INFO *to_cs,
69
70 length= length2= MY_MIN(to_length, from_length);
71
72-#if defined(__i386__) || defined(__x86_64__)
73- /*
74- Special loop for i386, it allows to refer to a
75- non-aligned memory block as UINT32, which makes
76- it possible to copy four bytes at once. This
77- gives about 10% performance improvement comparing
78- to byte-by-byte loop.
79- */
80- for ( ; length >= 4; length-= 4, from+= 4, to+= 4)
81- {
82- if ((*(uint32*)from) & 0x80808080)
83- break;
84- *((uint32*) to)= *((const uint32*) from);
85- }
86-#endif /* __i386__ */
87-
88 for (; ; *to++= *from++, length--)
89 {
90 if (!length)
91--
922.51.0
93
diff --git a/meta-oe/recipes-dbs/mysql/mariadb_11.4.9.bb b/meta-oe/recipes-dbs/mysql/mariadb_11.4.10.bb
index b1d1355e2b..b1d1355e2b 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb_11.4.9.bb
+++ b/meta-oe/recipes-dbs/mysql/mariadb_11.4.10.bb
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/files/0001-Fix-build-error-with-gcc-13-by-adding-cstdint-header.patch b/meta-oe/recipes-dbs/rocksdb/files/0001-Fix-build-error-with-gcc-13-by-adding-cstdint-header.patch
index 168bd76ac7..31e3eb53d3 100644
--- a/meta-oe/recipes-dbs/rocksdb/files/0001-Fix-build-error-with-gcc-13-by-adding-cstdint-header.patch
+++ b/meta-oe/recipes-dbs/rocksdb/files/0001-Fix-build-error-with-gcc-13-by-adding-cstdint-header.patch
@@ -22,35 +22,9 @@ TOPDIR/tmp/work/core2-64-oe-linux/rocksdb/9.10.0/git/db/blob/blob_file_meta.h:28
22Upstream-Status: Submitted [https://github.com/facebook/rocksdb/pull/13437] 22Upstream-Status: Submitted [https://github.com/facebook/rocksdb/pull/13437]
23Signed-off-by: mark.yang <mark.yang@lge.com> 23Signed-off-by: mark.yang <mark.yang@lge.com>
24--- 24---
25 db/blob/blob_file_meta.h | 1 +
26 include/rocksdb/trace_record.h | 1 +
27 include/rocksdb/write_batch_base.h | 1 + 25 include/rocksdb/write_batch_base.h | 1 +
28 3 files changed, 3 insertions(+) 26 1 file changed, 1 insertion(+)
29 27
30diff --git a/db/blob/blob_file_meta.h b/db/blob/blob_file_meta.h
31index d7c8a1243..2e47726f8 100644
32--- a/db/blob/blob_file_meta.h
33+++ b/db/blob/blob_file_meta.h
34@@ -6,6 +6,7 @@
35 #pragma once
36
37 #include <cassert>
38+#include <cstdint>
39 #include <iosfwd>
40 #include <memory>
41 #include <string>
42diff --git a/include/rocksdb/trace_record.h b/include/rocksdb/trace_record.h
43index 8f9c3ee2f..d321f5387 100644
44--- a/include/rocksdb/trace_record.h
45+++ b/include/rocksdb/trace_record.h
46@@ -5,6 +5,7 @@
47
48 #pragma once
49
50+#include <cstdint>
51 #include <memory>
52 #include <string>
53 #include <vector>
54diff --git a/include/rocksdb/write_batch_base.h b/include/rocksdb/write_batch_base.h 28diff --git a/include/rocksdb/write_batch_base.h b/include/rocksdb/write_batch_base.h
55index 3334a1292..43b186029 100644 29index 3334a1292..43b186029 100644
56--- a/include/rocksdb/write_batch_base.h 30--- a/include/rocksdb/write_batch_base.h
diff --git a/meta-oe/recipes-dbs/rocksdb/files/0005-Implement-timer-implementation-for-mips-platform.patch b/meta-oe/recipes-dbs/rocksdb/files/0005-Implement-timer-implementation-for-mips-platform.patch
index 2979b73d2f..6205e55b3f 100644
--- a/meta-oe/recipes-dbs/rocksdb/files/0005-Implement-timer-implementation-for-mips-platform.patch
+++ b/meta-oe/recipes-dbs/rocksdb/files/0005-Implement-timer-implementation-for-mips-platform.patch
@@ -14,9 +14,9 @@ diff --git a/utilities/transactions/lock/range/range_tree/lib/portability/toku_t
14index 0a7488c397..ad7d9f2124 100644 14index 0a7488c397..ad7d9f2124 100644
15--- a/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h 15--- a/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
16+++ b/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h 16+++ b/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
17@@ -162,6 +162,12 @@ static inline tokutime_t toku_time_now(void) { 17@@ -158,6 +158,12 @@ static inline tokutime_t toku_time_now(void) {
18 unsigned long result; 18 unsigned long result;
19 asm volatile ("rdtime.d\t%0,$r0" : "=r" (result)); 19 asm volatile("rdtime.d\t%0,$r0" : "=r"(result));
20 return result; 20 return result;
21+#elif defined(__mips__) 21+#elif defined(__mips__)
22+ // mips apparently only allows rdtsc for superusers, so we fall 22+ // mips apparently only allows rdtsc for superusers, so we fall
diff --git a/meta-oe/recipes-dbs/rocksdb/files/static_library_as_option.patch b/meta-oe/recipes-dbs/rocksdb/files/static_library_as_option.patch
index 9a85e8db45..0f957433a7 100644
--- a/meta-oe/recipes-dbs/rocksdb/files/static_library_as_option.patch
+++ b/meta-oe/recipes-dbs/rocksdb/files/static_library_as_option.patch
@@ -26,7 +26,7 @@ index 93b884dd9c1..2ca925d505c 100644
26+option(ROCKSDB_BUILD_STATIC "Build static versions of the RocksDB libraries" ON) 26+option(ROCKSDB_BUILD_STATIC "Build static versions of the RocksDB libraries" ON)
27 27
28 if( NOT DEFINED CMAKE_CXX_STANDARD ) 28 if( NOT DEFINED CMAKE_CXX_STANDARD )
29 set(CMAKE_CXX_STANDARD 17) 29 set(CMAKE_CXX_STANDARD 20)
30@@ -1139,11 +1140,13 @@ string(REGEX REPLACE "[^0-9: /-]+" "" GIT_DATE "${GIT_DATE}") 30@@ -1139,11 +1140,13 @@ string(REGEX REPLACE "[^0-9: /-]+" "" GIT_DATE "${GIT_DATE}")
31 set(BUILD_VERSION_CC ${CMAKE_BINARY_DIR}/build_version.cc) 31 set(BUILD_VERSION_CC ${CMAKE_BINARY_DIR}/build_version.cc)
32 configure_file(util/build_version.cc.in ${BUILD_VERSION_CC} @ONLY) 32 configure_file(util/build_version.cc.in ${BUILD_VERSION_CC} @ONLY)
diff --git a/meta-oe/recipes-dbs/rocksdb/rocksdb_9.10.0.bb b/meta-oe/recipes-dbs/rocksdb/rocksdb_10.10.1.bb
index c6d5a0ec7f..cc0e887ea5 100644
--- a/meta-oe/recipes-dbs/rocksdb/rocksdb_9.10.0.bb
+++ b/meta-oe/recipes-dbs/rocksdb/rocksdb_10.10.1.bb
@@ -6,10 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENSE.Apache;md5=3b83ef96387f14655fc854ddc3c6bd57 \
6 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 6 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
7 file://LICENSE.leveldb;md5=fb04ff57a14f308f2eed4a9b87d45837" 7 file://LICENSE.leveldb;md5=fb04ff57a14f308f2eed4a9b87d45837"
8 8
9SRCREV = "ae8fb3e5000e46d8d4c9dbf3a36019c0aaceebff" 9SRCREV = "4595a5e95ae8525c42e172a054435782b3479c57"
10SRCBRANCH = "9.10.fb" 10SRCBRANCH = "10.10.fb"
11 11
12SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH};protocol=https \ 12SRC_URI = "git://github.com/facebook/${BPN}.git;branch=${SRCBRANCH};protocol=https;tag=v${PV} \
13 file://0001-cmake-Add-check-for-atomic-support.patch \ 13 file://0001-cmake-Add-check-for-atomic-support.patch \
14 file://0002-cmake-Use-exported-target-for-bz2.patch \ 14 file://0002-cmake-Use-exported-target-for-bz2.patch \
15 file://0003-cmake-Do-not-add-msse4.2-mpclmul-on-clang.patch \ 15 file://0003-cmake-Do-not-add-msse4.2-mpclmul-on-clang.patch \
@@ -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"
@@ -38,7 +39,7 @@ PACKAGECONFIG[bzip2] = "-DWITH_BZ2=ON,-DWITH_BZ2=OFF,bzip2"
38PACKAGECONFIG[lz4] = "-DWITH_LZ4=ON,-DWITH_LZ4=OFF,lz4" 39PACKAGECONFIG[lz4] = "-DWITH_LZ4=ON,-DWITH_LZ4=OFF,lz4"
39PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib" 40PACKAGECONFIG[zlib] = "-DWITH_ZLIB=ON,-DWITH_ZLIB=OFF,zlib"
40PACKAGECONFIG[zstd] = "-DWITH_ZSTD=ON,-DWITH_ZSTD=OFF,zstd" 41PACKAGECONFIG[zstd] = "-DWITH_ZSTD=ON,-DWITH_ZSTD=OFF,zstd"
41PACKAGECONFIG[lite] = "-DROCKSDB_LITE=ON,-DROCKSDB_LITE=OFF" 42PACKAGECONFIG[liburing] = "-DWITH_LIBURING=ON,-DWITH_LIBURING=OFF,liburing"
42PACKAGECONFIG[gflags] = "-DWITH_GFLAGS=ON,-DWITH_GFLAGS=OFF,gflags" 43PACKAGECONFIG[gflags] = "-DWITH_GFLAGS=ON,-DWITH_GFLAGS=OFF,gflags"
43 44
44# Tools and tests currently don't compile on armv5 so we disable them 45# Tools and tests currently don't compile on armv5 so we disable them