diff options
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb-native_11.4.6.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb-native_11.4.5.bb) | 0 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb.inc | 4 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/0001-Add-missing-includes-cstdint-and-cstdio.patch | 40 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/3871.patch | 29 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch | 23 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb_11.4.6.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb_11.4.5.bb) | 0 |
6 files changed, 16 insertions, 80 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.5.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.6.bb index 578357b480..578357b480 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.5.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.6.bb | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index 3a39d036f7..13e55ebacd 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc | |||
@@ -17,17 +17,15 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ | |||
17 | file://0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch \ | 17 | file://0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch \ |
18 | file://0001-aio_linux-Check-if-syscall-exists-before-using-it.patch \ | 18 | file://0001-aio_linux-Check-if-syscall-exists-before-using-it.patch \ |
19 | file://ssize_t.patch \ | 19 | file://ssize_t.patch \ |
20 | file://mm_malloc.patch \ | ||
21 | file://sys_futex.patch \ | 20 | file://sys_futex.patch \ |
22 | file://cross-compiling.patch \ | 21 | file://cross-compiling.patch \ |
23 | file://0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch \ | 22 | file://0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch \ |
24 | file://lfs64.patch \ | 23 | file://lfs64.patch \ |
25 | file://0001-Add-missing-includes-cstdint-and-cstdio.patch \ | 24 | file://0001-Add-missing-includes-cstdint-and-cstdio.patch \ |
26 | file://0001-Ensure-compatibility-with-ARMv9-by-updating-.arch-di.patch \ | 25 | file://0001-Ensure-compatibility-with-ARMv9-by-updating-.arch-di.patch \ |
27 | file://3871.patch \ | ||
28 | file://riscv32.patch \ | 26 | file://riscv32.patch \ |
29 | " | 27 | " |
30 | SRC_URI[sha256sum] = "ff6595f8c482f9921e39b97fa1122377a69f0dcbd92553c6b9032cbf0e9b5354" | 28 | SRC_URI[sha256sum] = "1b26c0bb2d025dbfac3b9852d2b7eafda56a171b67ac2e27831ec0414fb7df07" |
31 | 29 | ||
32 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/tags" | 30 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/tags" |
33 | 31 | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-Add-missing-includes-cstdint-and-cstdio.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-Add-missing-includes-cstdint-and-cstdio.patch index 08e73424d1..bc1b992919 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-Add-missing-includes-cstdint-and-cstdio.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-Add-missing-includes-cstdint-and-cstdio.patch | |||
@@ -11,27 +11,14 @@ Upstream-Status: Pending | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
12 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | 12 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
13 | --- | 13 | --- |
14 | .../rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h | 1 + | 14 | storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h | 1 + |
15 | storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h | 1 + | 15 | .../rocksdb/rocksdb/table/block_based/data_block_hash_index.h | 1 + |
16 | .../rocksdb/rocksdb/table/block_based/data_block_hash_index.h | 1 + | 16 | storage/rocksdb/rocksdb/util/slice.cc | 2 +- |
17 | storage/rocksdb/rocksdb/util/slice.cc | 1 + | 17 | storage/rocksdb/rocksdb/util/string_util.h | 1 + |
18 | storage/rocksdb/rocksdb/util/string_util.h | 1 + | 18 | 4 files changed, 4 insertions(+), 1 deletion(-) |
19 | 5 files changed, 5 insertions(+) | ||
20 | 19 | ||
21 | diff --git a/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h b/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h | ||
22 | index 963c1d8e..73487edd 100644 | ||
23 | --- a/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h | ||
24 | +++ b/storage/rocksdb/rocksdb/db/compaction/compaction_iteration_stats.h | ||
25 | @@ -5,6 +5,7 @@ | ||
26 | |||
27 | #pragma once | ||
28 | |||
29 | +#include <cstdint> | ||
30 | #include "rocksdb/rocksdb_namespace.h" | ||
31 | |||
32 | struct CompactionIterationStats { | ||
33 | diff --git a/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h b/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h | 20 | diff --git a/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h b/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h |
34 | index c7f93b4c..3c2ab805 100644 | 21 | index 7fb9d489..f7b4e6f0 100644 |
35 | --- a/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h | 22 | --- a/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h |
36 | +++ b/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h | 23 | +++ b/storage/rocksdb/rocksdb/include/rocksdb/utilities/checkpoint.h |
37 | @@ -8,6 +8,7 @@ | 24 | @@ -8,6 +8,7 @@ |
@@ -55,19 +42,20 @@ index f356395f..32152217 100644 | |||
55 | #include <vector> | 42 | #include <vector> |
56 | 43 | ||
57 | diff --git a/storage/rocksdb/rocksdb/util/slice.cc b/storage/rocksdb/rocksdb/util/slice.cc | 44 | diff --git a/storage/rocksdb/rocksdb/util/slice.cc b/storage/rocksdb/rocksdb/util/slice.cc |
58 | index 6db11cc9..c26b6a21 100644 | 45 | index 3c3656de..b18d7f5d 100644 |
59 | --- a/storage/rocksdb/rocksdb/util/slice.cc | 46 | --- a/storage/rocksdb/rocksdb/util/slice.cc |
60 | +++ b/storage/rocksdb/rocksdb/util/slice.cc | 47 | +++ b/storage/rocksdb/rocksdb/util/slice.cc |
61 | @@ -8,6 +8,7 @@ | 48 | @@ -12,7 +12,7 @@ |
62 | // found in the LICENSE file. See the AUTHORS file for names of contributors. | 49 | #include <stdio.h> |
63 | 50 | ||
64 | #include <algorithm> | 51 | #include <algorithm> |
52 | - | ||
65 | +#include <cstdint> | 53 | +#include <cstdint> |
54 | #include "rocksdb/convenience.h" | ||
66 | #include "rocksdb/slice_transform.h" | 55 | #include "rocksdb/slice_transform.h" |
67 | #include "rocksdb/slice.h" | 56 | #include "rocksdb/utilities/object_registry.h" |
68 | #include "util/string_util.h" | ||
69 | diff --git a/storage/rocksdb/rocksdb/util/string_util.h b/storage/rocksdb/rocksdb/util/string_util.h | 57 | diff --git a/storage/rocksdb/rocksdb/util/string_util.h b/storage/rocksdb/rocksdb/util/string_util.h |
70 | index a761be66..064d059f 100644 | 58 | index 7794dbb0..b480177e 100644 |
71 | --- a/storage/rocksdb/rocksdb/util/string_util.h | 59 | --- a/storage/rocksdb/rocksdb/util/string_util.h |
72 | +++ b/storage/rocksdb/rocksdb/util/string_util.h | 60 | +++ b/storage/rocksdb/rocksdb/util/string_util.h |
73 | @@ -6,6 +6,7 @@ | 61 | @@ -6,6 +6,7 @@ |
@@ -78,3 +66,5 @@ index a761be66..064d059f 100644 | |||
78 | #include <sstream> | 66 | #include <sstream> |
79 | #include <string> | 67 | #include <string> |
80 | #include <unordered_map> | 68 | #include <unordered_map> |
69 | -- | ||
70 | 2.40.0 | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/3871.patch b/meta-oe/recipes-dbs/mysql/mariadb/3871.patch deleted file mode 100644 index 4bbca2d706..0000000000 --- a/meta-oe/recipes-dbs/mysql/mariadb/3871.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From d6923ac0adc11a0364acd421316116190eedb508 Mon Sep 17 00:00:00 2001 | ||
2 | From: Brad Smith <brad@comstyle.com> | ||
3 | Date: Fri, 7 Mar 2025 02:04:01 -0500 | ||
4 | Subject: [PATCH] Fix building with Clang and GCC on RISC-V | ||
5 | |||
6 | Clang does not have the builtin __builtin_riscv_pause(). | ||
7 | |||
8 | Upstream-Status: Backport [https://github.com/MariaDB/server/pull/3871] | ||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | --- | ||
11 | include/my_cpu.h | 7 ++++++- | ||
12 | 1 file changed, 6 insertions(+), 1 deletion(-) | ||
13 | |||
14 | --- a/include/my_cpu.h | ||
15 | +++ b/include/my_cpu.h | ||
16 | @@ -97,7 +97,12 @@ static inline void MY_RELAX_CPU(void) | ||
17 | /* Changed from __ppc_get_timebase for musl and clang compatibility */ | ||
18 | __builtin_ppc_get_timebase(); | ||
19 | #elif defined __GNUC__ && defined __riscv | ||
20 | - __builtin_riscv_pause(); | ||
21 | + /* The GCC-only __builtin_riscv_pause() or the pause instruction is | ||
22 | + encoded like a fence instruction with special parameters. On RISC-V | ||
23 | + implementations that do not support arch=+zihintpause this | ||
24 | + instruction could be interpreted as a more expensive memory fence; | ||
25 | + it should not be an illegal instruction. */ | ||
26 | + __asm__ volatile(".long 0x0100000f" ::: "memory"); | ||
27 | #elif defined __GNUC__ | ||
28 | /* Mainly, prevent the compiler from optimizing away delay loops */ | ||
29 | __asm__ __volatile__ ("":::"memory"); | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch b/meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch deleted file mode 100644 index a590a3fa36..0000000000 --- a/meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | From 76e4c3e8d001eaaabd0fb34c136b81b82830c420 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 15 Jun 2021 22:48:07 -0700 | ||
4 | Subject: [PATCH] mariadb: Fix build with clang/musl | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | --- | ||
8 | storage/rocksdb/rocksdb/port/jemalloc_helper.h | 2 +- | ||
9 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
10 | |||
11 | diff --git a/storage/rocksdb/rocksdb/port/jemalloc_helper.h b/storage/rocksdb/rocksdb/port/jemalloc_helper.h | ||
12 | index f6f72f8c..b9657cf3 100644 | ||
13 | --- a/storage/rocksdb/rocksdb/port/jemalloc_helper.h | ||
14 | +++ b/storage/rocksdb/rocksdb/port/jemalloc_helper.h | ||
15 | @@ -5,7 +5,7 @@ | ||
16 | |||
17 | #pragma once | ||
18 | |||
19 | -#if defined(__clang__) | ||
20 | +#if defined(__clang__) && defined(__GLIBC__) | ||
21 | // glibc's `posix_memalign()` declaration specifies `throw()` while clang's | ||
22 | // declaration does not. There is a hack in clang to make its re-declaration | ||
23 | // compatible with glibc's if they are declared consecutively. That hack breaks | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb_11.4.5.bb b/meta-oe/recipes-dbs/mysql/mariadb_11.4.6.bb index b1d1355e2b..b1d1355e2b 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb_11.4.5.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb_11.4.6.bb | |||