diff options
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb-native_10.11.12.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb-native_10.11.9.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 | 43 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch | 13 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/ppc-remove-glibc-dep.patch | 43 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb_10.11.12.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb_10.11.9.bb) | 0 |
6 files changed, 16 insertions, 87 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb-native_10.11.9.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_10.11.12.bb index 578357b480..578357b480 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb-native_10.11.9.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb-native_10.11.12.bb | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index f52947f359..83a3a1cafd 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc | |||
@@ -17,15 +17,13 @@ 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 | " | 25 | " |
27 | SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch" | 26 | SRC_URI[sha256sum] = "d61f23090cfc14f43e8a27c2d3ce7f80247e74481bb26a2d3a6308b8d194e167" |
28 | SRC_URI[sha256sum] = "0a00180864cd016187c986faab8010de23a117b9a75f91d6456421f894e48d20" | ||
29 | 27 | ||
30 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" | 28 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" |
31 | 29 | ||
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 f8ccb998be..fa580d039a 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,20 +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" | 57 | diff --git a/storage/rocksdb/rocksdb/util/string_util.h b/storage/rocksdb/rocksdb/util/string_util.h |
69 | 58 | index 7794dbb0..b480177e 100644 | |
70 | diff --git a/util/string_util.h b/util/string_util.h | ||
71 | index 55d106fff02..11178fd1d7b 100644 | ||
72 | --- a/storage/rocksdb/rocksdb/util/string_util.h | 59 | --- a/storage/rocksdb/rocksdb/util/string_util.h |
73 | +++ b/storage/rocksdb/rocksdb/util/string_util.h | 60 | +++ b/storage/rocksdb/rocksdb/util/string_util.h |
74 | @@ -6,6 +6,7 @@ | 61 | @@ -6,6 +6,7 @@ |
@@ -80,5 +67,5 @@ index 55d106fff02..11178fd1d7b 100644 | |||
80 | #include <string> | 67 | #include <string> |
81 | #include <unordered_map> | 68 | #include <unordered_map> |
82 | -- | 69 | -- |
83 | 2.25.1 | 70 | 2.40.0 |
84 | 71 | ||
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 6aa6c84882..0000000000 --- a/meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | --- a/storage/rocksdb/rocksdb/port/jemalloc_helper.h | ||
4 | +++ b/storage/rocksdb/rocksdb/port/jemalloc_helper.h | ||
5 | @@ -5,7 +5,7 @@ | ||
6 | |||
7 | #pragma once | ||
8 | |||
9 | -#if defined(__clang__) | ||
10 | +#if defined(__clang__) && defined(__GLIBC__) | ||
11 | // glibc's `posix_memalign()` declaration specifies `throw()` while clang's | ||
12 | // declaration does not. There is a hack in clang to make its re-declaration | ||
13 | // compatible with glibc's if they are declared consecutively. That hack breaks | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/ppc-remove-glibc-dep.patch b/meta-oe/recipes-dbs/mysql/mariadb/ppc-remove-glibc-dep.patch deleted file mode 100644 index 3787b74ad1..0000000000 --- a/meta-oe/recipes-dbs/mysql/mariadb/ppc-remove-glibc-dep.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Remove glibc specific function dependencies | ||
4 | |||
5 | Sourced from: https://git.alpinelinux.org/aports/tree/main/mariadb/ppc-remove-glibc-dep.patch | ||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | |||
8 | diff --git a/include/my_cpu.h b/include/my_cpu.h | ||
9 | index f2e26fca..94599b74 100644 | ||
10 | --- a/include/my_cpu.h | ||
11 | +++ b/include/my_cpu.h | ||
12 | @@ -24,17 +24,16 @@ | ||
13 | */ | ||
14 | |||
15 | #ifdef _ARCH_PWR8 | ||
16 | -#include <sys/platform/ppc.h> | ||
17 | /* Very low priority */ | ||
18 | -#define HMT_very_low() __ppc_set_ppr_very_low() | ||
19 | +#define HMT_very_low() asm volatile("or 31,31,31") | ||
20 | /* Low priority */ | ||
21 | -#define HMT_low() __ppc_set_ppr_low() | ||
22 | +#define HMT_low() asm volatile ("or 1,1,1") | ||
23 | /* Medium low priority */ | ||
24 | -#define HMT_medium_low() __ppc_set_ppr_med_low() | ||
25 | +#define HMT_medium_low() asm volatile ("or 6,6,6") | ||
26 | /* Medium priority */ | ||
27 | -#define HMT_medium() __ppc_set_ppr_med() | ||
28 | +#define HMT_medium() asm volatile ("or 2,2,2") | ||
29 | /* Medium high priority */ | ||
30 | -#define HMT_medium_high() __ppc_set_ppr_med_high() | ||
31 | +#define HMT_medium_high() asm volatile("or 5,5,5") | ||
32 | /* High priority */ | ||
33 | #define HMT_high() asm volatile("or 3,3,3") | ||
34 | #else | ||
35 | @@ -72,7 +71,7 @@ static inline void MY_RELAX_CPU(void) | ||
36 | __asm__ __volatile__ ("pause"); | ||
37 | #endif | ||
38 | #elif defined(_ARCH_PWR8) | ||
39 | - __ppc_get_timebase(); | ||
40 | + __builtin_ppc_get_timebase(); | ||
41 | #elif defined __GNUC__ && (defined __arm__ || defined __aarch64__) | ||
42 | /* Mainly, prevent the compiler from optimizing away delay loops */ | ||
43 | __asm__ __volatile__ ("":::"memory"); | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb_10.11.9.bb b/meta-oe/recipes-dbs/mysql/mariadb_10.11.12.bb index b1d1355e2b..b1d1355e2b 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb_10.11.9.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb_10.11.12.bb | |||