diff options
Diffstat (limited to 'meta-oe/recipes-dbs/mysql/mariadb')
20 files changed, 138 insertions, 357 deletions
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..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 | |||
@@ -1,4 +1,4 @@ | |||
1 | From 68100b1f2243304289b9a9a35e8fb0e1bb0cf70f Mon Sep 17 00:00:00 2001 | 1 | From ef47f8f41722b90a86ace86f0f509b4775c2f725 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Tue, 24 Jan 2023 21:40:43 -0800 | 3 | Date: Tue, 24 Jan 2023 21:40:43 -0800 |
4 | Subject: [PATCH] Add missing includes <cstdint> and <cstdio> | 4 | Subject: [PATCH] Add missing includes <cstdint> and <cstdio> |
@@ -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,30 +42,29 @@ 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 @@ |
75 | 62 | ||
76 | #pragma once | 63 | #pragma once |
77 | 64 | ||
78 | +#include <cstdint> | 65 | +#include <cstdint> |
79 | #include <sstream> | 66 | #include <sstream> |
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 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-Ensure-compatibility-with-ARMv9-by-updating-.arch-di.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-Ensure-compatibility-with-ARMv9-by-updating-.arch-di.patch new file mode 100644 index 0000000000..2a1c74a68c --- /dev/null +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-Ensure-compatibility-with-ARMv9-by-updating-.arch-di.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 0b1ba174bd5148c0675b335fcebde767a56e10bb Mon Sep 17 00:00:00 2001 | ||
2 | From: Ruiqiang Hao <Ruiqiang.Hao@windriver.com> | ||
3 | Date: Mon, 2 Dec 2024 02:18:46 +0000 | ||
4 | Subject: [PATCH] Ensure compatibility with ARMv9 by updating .arch directive | ||
5 | |||
6 | The pmem_cvap() function currently uses the '.arch armv8.2-a' directive | ||
7 | for the 'dc cvap' instruction. This will cause build errors below when | ||
8 | compiling for ARMv9 systems. Update the '.arch' directive to 'armv9.4-a' | ||
9 | to ensure compatibility with ARMv9 architectures. | ||
10 | |||
11 | {standard input}: Assembler messages: | ||
12 | {standard input}:169: Error: selected processor does not support `retaa' | ||
13 | {standard input}:286: Error: selected processor does not support `retaa' | ||
14 | make[2]: *** [storage/innobase/CMakeFiles/innobase_embedded.dir/build.make: | ||
15 | 1644: storage/innobase/CMakeFiles/innobase_embedded.dir/sync/cache.cc.o] | ||
16 | Error 1 | ||
17 | |||
18 | Upstream-Status: Submitted | ||
19 | |||
20 | Signed-off-by: Ruiqiang Hao <Ruiqiang.Hao@windriver.com> | ||
21 | --- | ||
22 | storage/innobase/sync/cache.cc | 5 +++++ | ||
23 | 1 file changed, 5 insertions(+) | ||
24 | |||
25 | diff --git a/storage/innobase/sync/cache.cc b/storage/innobase/sync/cache.cc | ||
26 | index 43d642d0..c5e67709 100644 | ||
27 | --- a/storage/innobase/sync/cache.cc | ||
28 | +++ b/storage/innobase/sync/cache.cc | ||
29 | @@ -82,7 +82,12 @@ static void pmem_cvap(const void* buf, size_t size) | ||
30 | for (uintptr_t u= uintptr_t(buf) & ~(CPU_LEVEL1_DCACHE_LINESIZE), | ||
31 | end= uintptr_t(buf) + size; | ||
32 | u < end; u+= CPU_LEVEL1_DCACHE_LINESIZE) | ||
33 | +#if defined __ARM_ARCH && __ARM_ARCH == 9 | ||
34 | + __asm__ __volatile__(".arch armv9.4-a\n dc cvap, %0" :: "r"(u) : "memory"); | ||
35 | +#else | ||
36 | __asm__ __volatile__(".arch armv8.2-a\n dc cvap, %0" :: "r"(u) : "memory"); | ||
37 | +#endif | ||
38 | + | ||
39 | __asm__ __volatile__("dmb ishst" ::: "memory"); | ||
40 | } | ||
41 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-library-LZ4-lookup.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-library-LZ4-lookup.patch index d8671b76b0..8105d3d785 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-library-LZ4-lookup.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-library-LZ4-lookup.patch | |||
@@ -1,18 +1,17 @@ | |||
1 | From f15fbdf1244ca9ce01c5507660a86d685ed88bcf Mon Sep 17 00:00:00 2001 | 1 | From 2e64c0c22f630cbc301d385e46021853116f9c75 Mon Sep 17 00:00:00 2001 |
2 | From: Sumit Garg <sumit.garg@linaro.org> | 2 | From: Sumit Garg <sumit.garg@linaro.org> |
3 | Date: Mon, 21 Mar 2022 15:08:40 +0800 | 3 | Date: Mon, 21 Mar 2022 15:08:40 +0800 |
4 | Subject: [PATCH] Fix library LZ4 lookup. | 4 | Subject: [PATCH] Fix library LZ4 lookup. |
5 | 5 | ||
6 | Upstream-Status: Pending | ||
6 | Signed-off-by: Sumit Garg <sumit.garg@linaro.org> | 7 | Signed-off-by: Sumit Garg <sumit.garg@linaro.org> |
7 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | 8 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
8 | --- | 9 | --- |
9 | Upstream-Status: Pending | ||
10 | |||
11 | cmake/FindLZ4.cmake | 9 +++++++-- | 10 | cmake/FindLZ4.cmake | 9 +++++++-- |
12 | 1 file changed, 7 insertions(+), 2 deletions(-) | 11 | 1 file changed, 7 insertions(+), 2 deletions(-) |
13 | 12 | ||
14 | diff --git a/cmake/FindLZ4.cmake b/cmake/FindLZ4.cmake | 13 | diff --git a/cmake/FindLZ4.cmake b/cmake/FindLZ4.cmake |
15 | index eebd859..094241c 100644 | 14 | index eebd8596..094241ce 100644 |
16 | --- a/cmake/FindLZ4.cmake | 15 | --- a/cmake/FindLZ4.cmake |
17 | +++ b/cmake/FindLZ4.cmake | 16 | +++ b/cmake/FindLZ4.cmake |
18 | @@ -1,5 +1,10 @@ | 17 | @@ -1,5 +1,10 @@ |
@@ -28,6 +27,3 @@ index eebd859..094241c 100644 | |||
28 | 27 | ||
29 | if(LZ4_INCLUDE_DIRS AND EXISTS "${LZ4_INCLUDE_DIRS}/lz4.h") | 28 | if(LZ4_INCLUDE_DIRS AND EXISTS "${LZ4_INCLUDE_DIRS}/lz4.h") |
30 | file(STRINGS "${LZ4_INCLUDE_DIRS}/lz4.h" LZ4_H REGEX "^#define LZ4_VERSION_[MR]") | 29 | file(STRINGS "${LZ4_INCLUDE_DIRS}/lz4.h" LZ4_H REGEX "^#define LZ4_VERSION_[MR]") |
31 | -- | ||
32 | 2.25.1 | ||
33 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-33439-Fix-build-with-libxml2-2.12.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-33439-Fix-build-with-libxml2-2.12.patch deleted file mode 100644 index 3e42535dad..0000000000 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-33439-Fix-build-with-libxml2-2.12.patch +++ /dev/null | |||
@@ -1,170 +0,0 @@ | |||
1 | From dae52f5916ef59434c93f0b716270f59dd0c3a94 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jan Tojnar <jtojnar@gmail.com> | ||
3 | Date: Sun, 7 Jan 2024 10:19:54 +0100 | ||
4 | Subject: [PATCH] MDEV-33439 Fix build with libxml2 2.12 | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | libxml2 2.12.0 made `xmlGetLastError()` return `const` pointer: | ||
10 | |||
11 | https://gitlab.gnome.org/GNOME/libxml2/-/commit/61034116d0a3c8b295c6137956adc3ae55720711 | ||
12 | |||
13 | Clang 16 does not like this: | ||
14 | |||
15 | error: assigning to 'xmlErrorPtr' (aka '_xmlError *') from 'const xmlError *' (aka 'const _xmlError *') discards qualifiers | ||
16 | error: cannot initialize a variable of type 'xmlErrorPtr' (aka '_xmlError *') with an rvalue of type 'const xmlError *' (aka 'const _xmlError *') | ||
17 | |||
18 | Let’s update the variables to `const`. | ||
19 | For older versions, it will be automatically converted. | ||
20 | |||
21 | But then `xmlResetError(xmlError*)` will not like the `const` pointer: | ||
22 | |||
23 | error: no matching function for call to 'xmlResetError' | ||
24 | note: candidate function not viable: 1st argument ('const xmlError *' (aka 'const _xmlError *')) would lose const qualifier | ||
25 | |||
26 | Let’s replace it with `xmlResetLastError()`. | ||
27 | |||
28 | ALso remove `LIBXMLDOC::Xerr` protected member property. | ||
29 | It was introduced in 65b0e5455b547a3d574fa77b34cce23ae3bea0a0 | ||
30 | along with the `xmlResetError` calls. | ||
31 | It does not appear to be used for anything. | ||
32 | |||
33 | Upstream-Status: Backport [https://github.com/MariaDB/server/pull/2983] | ||
34 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
35 | --- | ||
36 | storage/connect/libdoc.cpp | 39 +++++++++++++++++++------------------- | ||
37 | 1 file changed, 19 insertions(+), 20 deletions(-) | ||
38 | |||
39 | diff --git a/storage/connect/libdoc.cpp b/storage/connect/libdoc.cpp | ||
40 | index 67f22ce2..ab588dd4 100644 | ||
41 | --- a/storage/connect/libdoc.cpp | ||
42 | +++ b/storage/connect/libdoc.cpp | ||
43 | @@ -93,7 +93,6 @@ class LIBXMLDOC : public XMLDOCUMENT { | ||
44 | xmlXPathContextPtr Ctxp; | ||
45 | xmlXPathObjectPtr Xop; | ||
46 | xmlXPathObjectPtr NlXop; | ||
47 | - xmlErrorPtr Xerr; | ||
48 | char *Buf; // Temporary | ||
49 | bool Nofreelist; | ||
50 | }; // end of class LIBXMLDOC | ||
51 | @@ -327,7 +326,6 @@ LIBXMLDOC::LIBXMLDOC(char *nsl, char *nsdf, char *enc, PFBLOCK fp) | ||
52 | Ctxp = NULL; | ||
53 | Xop = NULL; | ||
54 | NlXop = NULL; | ||
55 | - Xerr = NULL; | ||
56 | Buf = NULL; | ||
57 | Nofreelist = false; | ||
58 | } // end of LIBXMLDOC constructor | ||
59 | @@ -365,8 +363,8 @@ bool LIBXMLDOC::ParseFile(PGLOBAL g, char *fn) | ||
60 | Encoding = (char*)Docp->encoding; | ||
61 | |||
62 | return false; | ||
63 | - } else if ((Xerr = xmlGetLastError())) | ||
64 | - xmlResetError(Xerr); | ||
65 | + } else if (xmlGetLastError()) | ||
66 | + xmlResetLastError(); | ||
67 | |||
68 | return true; | ||
69 | } // end of ParseFile | ||
70 | @@ -505,9 +503,9 @@ int LIBXMLDOC::DumpDoc(PGLOBAL g, char *ofn) | ||
71 | #if 1 | ||
72 | // This function does not crash ( | ||
73 | if (xmlSaveFormatFileEnc((const char *)ofn, Docp, Encoding, 0) < 0) { | ||
74 | - xmlErrorPtr err = xmlGetLastError(); | ||
75 | + const xmlError *err = xmlGetLastError(); | ||
76 | strcpy(g->Message, (err) ? err->message : "Error saving XML doc"); | ||
77 | - xmlResetError(Xerr); | ||
78 | + xmlResetLastError(); | ||
79 | rc = -1; | ||
80 | } // endif Save | ||
81 | // rc = xmlDocDump(of, Docp); | ||
82 | @@ -546,8 +544,8 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp) | ||
83 | if (Nlist) { | ||
84 | xmlXPathFreeNodeSet(Nlist); | ||
85 | |||
86 | - if ((Xerr = xmlGetLastError())) | ||
87 | - xmlResetError(Xerr); | ||
88 | + if (xmlGetLastError()) | ||
89 | + xmlResetLastError(); | ||
90 | |||
91 | Nlist = NULL; | ||
92 | } // endif Nlist | ||
93 | @@ -555,8 +553,8 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp) | ||
94 | if (Xop) { | ||
95 | xmlXPathFreeObject(Xop); | ||
96 | |||
97 | - if ((Xerr = xmlGetLastError())) | ||
98 | - xmlResetError(Xerr); | ||
99 | + if (xmlGetLastError()) | ||
100 | + xmlResetLastError(); | ||
101 | |||
102 | Xop = NULL; | ||
103 | } // endif Xop | ||
104 | @@ -564,8 +562,8 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp) | ||
105 | if (NlXop) { | ||
106 | xmlXPathFreeObject(NlXop); | ||
107 | |||
108 | - if ((Xerr = xmlGetLastError())) | ||
109 | - xmlResetError(Xerr); | ||
110 | + if (xmlGetLastError()) | ||
111 | + xmlResetLastError(); | ||
112 | |||
113 | NlXop = NULL; | ||
114 | } // endif NlXop | ||
115 | @@ -573,8 +571,8 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp) | ||
116 | if (Ctxp) { | ||
117 | xmlXPathFreeContext(Ctxp); | ||
118 | |||
119 | - if ((Xerr = xmlGetLastError())) | ||
120 | - xmlResetError(Xerr); | ||
121 | + if (xmlGetLastError()) | ||
122 | + xmlResetLastError(); | ||
123 | |||
124 | Ctxp = NULL; | ||
125 | } // endif Ctxp | ||
126 | @@ -590,6 +588,7 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp) | ||
127 | /******************************************************************/ | ||
128 | xmlNodeSetPtr LIBXMLDOC::GetNodeList(PGLOBAL g, xmlNodePtr np, char *xp) | ||
129 | { | ||
130 | + const xmlError *xerr; | ||
131 | xmlNodeSetPtr nl; | ||
132 | |||
133 | if (trace(1)) | ||
134 | @@ -649,11 +648,11 @@ xmlNodeSetPtr LIBXMLDOC::GetNodeList(PGLOBAL g, xmlNodePtr np, char *xp) | ||
135 | } else | ||
136 | xmlXPathFreeObject(Xop); // Caused node not found | ||
137 | |||
138 | - if ((Xerr = xmlGetLastError())) { | ||
139 | - strcpy(g->Message, Xerr->message); | ||
140 | - xmlResetError(Xerr); | ||
141 | + if ((xerr = xmlGetLastError())) { | ||
142 | + strcpy(g->Message, xerr->message); | ||
143 | + xmlResetLastError(); | ||
144 | return NULL; | ||
145 | - } // endif Xerr | ||
146 | + } // endif xerr | ||
147 | |||
148 | } // endif Xop | ||
149 | |||
150 | @@ -1079,7 +1078,7 @@ void XML2NODE::AddText(PGLOBAL g, PCSZ txtp) | ||
151 | /******************************************************************/ | ||
152 | void XML2NODE::DeleteChild(PGLOBAL g, PXNODE dnp) | ||
153 | { | ||
154 | - xmlErrorPtr xerr; | ||
155 | + const xmlError *xerr; | ||
156 | |||
157 | if (trace(1)) | ||
158 | htrc("DeleteChild: node=%p\n", dnp); | ||
159 | @@ -1122,7 +1121,7 @@ void XML2NODE::DeleteChild(PGLOBAL g, PXNODE dnp) | ||
160 | if (trace(1)) | ||
161 | htrc("DeleteChild: errmsg=%-.256s\n", xerr->message); | ||
162 | |||
163 | - xmlResetError(xerr); | ||
164 | + xmlResetLastError(); | ||
165 | } // end of DeleteChild | ||
166 | |||
167 | /* -------------------- class XML2NODELIST ---------------------- */ | ||
168 | -- | ||
169 | 2.44.0 | ||
170 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-the-compile_time_assert-lines.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-the-compile_time_assert-lines.patch deleted file mode 100644 index 9a6e28297b..0000000000 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-the-compile_time_assert-lines.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | From cc5f1d0759b367265a1a000287e2ec15c31eb518 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
3 | Date: Mon, 26 Feb 2024 14:56:02 +0800 | ||
4 | Subject: [PATCH] Remove the compile_time_assert lines | ||
5 | |||
6 | Remove the problematic compile_time_assert lines to fix the below build | ||
7 | failure on 32-bit arm. | ||
8 | In file included from TOPDIR/build/tmp/work/cortexa15t2hf-neon-yoe-linux-gnueabi/mariadb/10.11.7/mariadb-10.11.7/tests/mysql_client_test.c:38: | ||
9 | TOPDIR/build/tmp/work/cortexa15t2hf-neon-yoe-linux-gnueabi/mariadb/10.11.7/mariadb-10.11.7/tests/mysql_client_fw.c:1438:3: error: 'compile_time_assert' declared as an array with a negative size | ||
10 | 1438 | compile_time_assert(sizeof(MYSQL) == 77*sizeof(void*)+656); | ||
11 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
12 | |||
13 | Upstream-Status: Inappropriate [Upstream will bring the asset back | ||
14 | in a new way [1]] | ||
15 | [1] https://jira.mariadb.org/browse/MDEV-33429 | ||
16 | |||
17 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
18 | --- | ||
19 | tests/mysql_client_fw.c | 8 -------- | ||
20 | 1 file changed, 8 deletions(-) | ||
21 | |||
22 | diff --git a/tests/mysql_client_fw.c b/tests/mysql_client_fw.c | ||
23 | index c9e64678..5c0c7ce2 100644 | ||
24 | --- a/tests/mysql_client_fw.c | ||
25 | +++ b/tests/mysql_client_fw.c | ||
26 | @@ -1430,14 +1430,6 @@ int main(int argc, char **argv) | ||
27 | tests_to_run[i]= NULL; | ||
28 | } | ||
29 | |||
30 | -#ifdef _WIN32 | ||
31 | - /* must be the same in C/C and embedded, 1208 on 64bit, 968 on 32bit */ | ||
32 | - compile_time_assert(sizeof(MYSQL) == 60*sizeof(void*)+728); | ||
33 | -#else | ||
34 | - /* must be the same in C/C and embedded, 1272 on 64bit, 964 on 32bit */ | ||
35 | - compile_time_assert(sizeof(MYSQL) == 77*sizeof(void*)+656); | ||
36 | -#endif | ||
37 | - | ||
38 | if (mysql_server_init(embedded_server_arg_count, | ||
39 | embedded_server_args, | ||
40 | (char**) embedded_server_groups)) | ||
41 | -- | ||
42 | 2.25.1 | ||
43 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-aio_linux-Check-if-syscall-exists-before-using-it.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-aio_linux-Check-if-syscall-exists-before-using-it.patch index aba9b9d966..eddfdaaf77 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-aio_linux-Check-if-syscall-exists-before-using-it.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-aio_linux-Check-if-syscall-exists-before-using-it.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 0a3222338efc108c831fbdd719a47d35f4b0adcd Mon Sep 17 00:00:00 2001 | 1 | From f9f019049a9bb09471e8303d4510afae07f225c8 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Aug 2021 06:49:25 +0000 | 3 | Date: Wed, 18 Aug 2021 06:49:25 +0000 |
4 | Subject: [PATCH] aio_linux: Check if syscall exists before using it | 4 | Subject: [PATCH] aio_linux: Check if syscall exists before using it |
@@ -10,19 +10,17 @@ tpool/aio_linux.cc:63:20: error: '__NR_io_getevents' was not declared in this sc | |||
10 | | ^~~~~~~~~~~~~~~~~ | 10 | | ^~~~~~~~~~~~~~~~~ |
11 | | io_getevents | 11 | | io_getevents |
12 | 12 | ||
13 | Upstream-Staus: Pending | 13 | Upstream-Status: Pending |
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
15 | --- | 15 | --- |
16 | Upstream-Status: Pending | ||
17 | |||
18 | tpool/aio_linux.cc | 4 ++++ | 16 | tpool/aio_linux.cc | 4 ++++ |
19 | 1 file changed, 4 insertions(+) | 17 | 1 file changed, 4 insertions(+) |
20 | 18 | ||
21 | diff --git a/tpool/aio_linux.cc b/tpool/aio_linux.cc | 19 | diff --git a/tpool/aio_linux.cc b/tpool/aio_linux.cc |
22 | index 4abc213..da75411 100644 | 20 | index 507c6b92..a6adf1af 100644 |
23 | --- a/tpool/aio_linux.cc | 21 | --- a/tpool/aio_linux.cc |
24 | +++ b/tpool/aio_linux.cc | 22 | +++ b/tpool/aio_linux.cc |
25 | @@ -58,6 +58,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 - 1301 USA*/ | 23 | @@ -59,6 +59,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 - 1301 USA*/ |
26 | */ | 24 | */ |
27 | static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev) | 25 | static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev) |
28 | { | 26 | { |
@@ -30,7 +28,7 @@ index 4abc213..da75411 100644 | |||
30 | int saved_errno= errno; | 28 | int saved_errno= errno; |
31 | int ret= syscall(__NR_io_getevents, reinterpret_cast<long>(ctx), | 29 | int ret= syscall(__NR_io_getevents, reinterpret_cast<long>(ctx), |
32 | min_nr, nr, ev, 0); | 30 | min_nr, nr, ev, 0); |
33 | @@ -67,6 +68,9 @@ static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev) | 31 | @@ -68,6 +69,9 @@ static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev) |
34 | errno= saved_errno; | 32 | errno= saved_errno; |
35 | } | 33 | } |
36 | return ret; | 34 | return ret; |
@@ -40,6 +38,3 @@ index 4abc213..da75411 100644 | |||
40 | } | 38 | } |
41 | 39 | ||
42 | 40 | ||
43 | -- | ||
44 | 2.29.2 | ||
45 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch index 0a2eed44f4..bfcd45b64b 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From d611f78198dee64bb6a05933d200b544e2510b76 Mon Sep 17 00:00:00 2001 | 1 | From 3a29c2f7afe10bf0bc0529b5d9ea44866946ac5a Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sat, 14 Nov 2020 14:37:13 -0800 | 3 | Date: Sat, 14 Nov 2020 14:37:13 -0800 |
4 | Subject: [PATCH] innobase: Define __NR_futex if it does not exist | 4 | Subject: [PATCH] innobase: Define __NR_futex if it does not exist |
@@ -19,7 +19,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
19 | 1 file changed, 3 insertions(+) | 19 | 1 file changed, 3 insertions(+) |
20 | 20 | ||
21 | diff --git a/storage/innobase/log/log0sync.cc b/storage/innobase/log/log0sync.cc | 21 | diff --git a/storage/innobase/log/log0sync.cc b/storage/innobase/log/log0sync.cc |
22 | index 7799e605..4fab8f74 100644 | 22 | index 0de283ca..265ab691 100644 |
23 | --- a/storage/innobase/log/log0sync.cc | 23 | --- a/storage/innobase/log/log0sync.cc |
24 | +++ b/storage/innobase/log/log0sync.cc | 24 | +++ b/storage/innobase/log/log0sync.cc |
25 | @@ -66,6 +66,9 @@ Note that if write operation is very fast, a) or b) can be fine as alternative. | 25 | @@ -66,6 +66,9 @@ Note that if write operation is very fast, a) or b) can be fine as alternative. |
@@ -32,6 +32,3 @@ index 7799e605..4fab8f74 100644 | |||
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | #include <atomic> | 34 | #include <atomic> |
35 | -- | ||
36 | 2.29.2 | ||
37 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch index 456a2bad64..1475bb1a51 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From f92f657973997df30afdb0032c88ad3a14ead46b Mon Sep 17 00:00:00 2001 | 1 | From 360d41c1dd2d28d5102d66179095cedacaf5dc3a Mon Sep 17 00:00:00 2001 |
2 | From: Mingli Yu <mingli.yu@windriver.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Fri, 23 Sep 2022 15:48:21 +0800 | 3 | Date: Fri, 23 Sep 2022 15:48:21 +0800 |
4 | Subject: [PATCH] sql/CMakeLists.txt: fix gen_lex_hash not found | 4 | Subject: [PATCH] sql/CMakeLists.txt: fix gen_lex_hash not found |
@@ -15,10 +15,10 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | |||
15 | 1 file changed, 22 insertions(+), 8 deletions(-) | 15 | 1 file changed, 22 insertions(+), 8 deletions(-) |
16 | 16 | ||
17 | diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt | 17 | diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt |
18 | index 241b482..27a3991 100644 | 18 | index 0195555e..507136cb 100644 |
19 | --- a/sql/CMakeLists.txt | 19 | --- a/sql/CMakeLists.txt |
20 | +++ b/sql/CMakeLists.txt | 20 | +++ b/sql/CMakeLists.txt |
21 | @@ -60,11 +60,18 @@ ${CMAKE_BINARY_DIR}/sql | 21 | @@ -64,11 +64,18 @@ ${CMAKE_BINARY_DIR}/sql |
22 | ${CMAKE_SOURCE_DIR}/tpool | 22 | ${CMAKE_SOURCE_DIR}/tpool |
23 | ) | 23 | ) |
24 | 24 | ||
@@ -41,7 +41,7 @@ index 241b482..27a3991 100644 | |||
41 | 41 | ||
42 | FIND_PACKAGE(BISON 2.4) | 42 | FIND_PACKAGE(BISON 2.4) |
43 | 43 | ||
44 | @@ -372,11 +379,18 @@ IF(NOT CMAKE_CROSSCOMPILING OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR) | 44 | @@ -405,11 +412,18 @@ IF(NOT CMAKE_CROSSCOMPILING OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR) |
45 | ADD_EXECUTABLE(gen_lex_hash gen_lex_hash.cc) | 45 | ADD_EXECUTABLE(gen_lex_hash gen_lex_hash.cc) |
46 | ENDIF() | 46 | ENDIF() |
47 | 47 | ||
@@ -64,6 +64,3 @@ index 241b482..27a3991 100644 | |||
64 | 64 | ||
65 | MYSQL_ADD_EXECUTABLE(mariadb-tzinfo-to-sql tztime.cc) | 65 | MYSQL_ADD_EXECUTABLE(mariadb-tzinfo-to-sql tztime.cc) |
66 | SET_TARGET_PROPERTIES(mariadb-tzinfo-to-sql PROPERTIES COMPILE_FLAGS "-DTZINFO2SQL") | 66 | SET_TARGET_PROPERTIES(mariadb-tzinfo-to-sql PROPERTIES COMPILE_FLAGS "-DTZINFO2SQL") |
67 | -- | ||
68 | 2.25.1 | ||
69 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/configure.cmake-fix-valgrind.patch b/meta-oe/recipes-dbs/mysql/mariadb/configure.cmake-fix-valgrind.patch index ac94279585..2841a59a73 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/configure.cmake-fix-valgrind.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/configure.cmake-fix-valgrind.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 24e2b0edc2612acefcc48414bb6f0aeb086061a9 Mon Sep 17 00:00:00 2001 | 1 | From c24181245bc502a384635d7f7f48f12863f84c2f Mon Sep 17 00:00:00 2001 |
2 | From: Jackie Huang <jackie.huang@windriver.com> | 2 | From: Jackie Huang <jackie.huang@windriver.com> |
3 | Date: Tue, 26 Feb 2019 23:57:06 -0800 | 3 | Date: Tue, 26 Feb 2019 23:57:06 -0800 |
4 | Subject: [PATCH] configure.cmake: fix valgrind | 4 | Subject: [PATCH] configure.cmake: fix valgrind |
@@ -16,16 +16,15 @@ Upstream-Status: Inappropriate [oe specific] | |||
16 | 16 | ||
17 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> | 17 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
18 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | 18 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
19 | |||
20 | --- | 19 | --- |
21 | configure.cmake | 5 ++--- | 20 | configure.cmake | 5 ++--- |
22 | 1 file changed, 2 insertions(+), 3 deletions(-) | 21 | 1 file changed, 2 insertions(+), 3 deletions(-) |
23 | 22 | ||
24 | diff --git a/configure.cmake b/configure.cmake | 23 | diff --git a/configure.cmake b/configure.cmake |
25 | index 3cfc4b31..d017b3b3 100644 | 24 | index 61f30a75..3e730082 100644 |
26 | --- a/configure.cmake | 25 | --- a/configure.cmake |
27 | +++ b/configure.cmake | 26 | +++ b/configure.cmake |
28 | @@ -930,10 +930,9 @@ HAVE_GCC_C11_ATOMICS) | 27 | @@ -881,10 +881,9 @@ ENDIF() |
29 | 28 | ||
30 | IF(WITH_VALGRIND) | 29 | IF(WITH_VALGRIND) |
31 | SET(HAVE_valgrind 1) | 30 | SET(HAVE_valgrind 1) |
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/cross-compiling.patch b/meta-oe/recipes-dbs/mysql/mariadb/cross-compiling.patch index d0d6e3c730..dc34c07d31 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/cross-compiling.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/cross-compiling.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 80be37351d995654f86b838f6b5ed47e8a90261b Mon Sep 17 00:00:00 2001 | 1 | From b6d8dbb7e930f5caa9e3e3c71706b0cf9eea7bb3 Mon Sep 17 00:00:00 2001 |
2 | From: Mingli Yu <mingli.yu@windriver.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Fri, 23 Sep 2022 12:05:17 +0800 | 3 | Date: Fri, 23 Sep 2022 12:05:17 +0800 |
4 | Subject: [PATCH] CMakeLists.txt: not include import_executables.cmake | 4 | Subject: [PATCH] CMakeLists.txt: not include import_executables.cmake |
@@ -14,10 +14,10 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | |||
14 | 1 file changed, 5 deletions(-) | 14 | 1 file changed, 5 deletions(-) |
15 | 15 | ||
16 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 16 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
17 | index f9e2b1b..34924ba 100644 | 17 | index 3828420c..ee38615a 100644 |
18 | --- a/CMakeLists.txt | 18 | --- a/CMakeLists.txt |
19 | +++ b/CMakeLists.txt | 19 | +++ b/CMakeLists.txt |
20 | @@ -394,11 +394,6 @@ CHECK_LIBFMT() | 20 | @@ -428,11 +428,6 @@ CHECK_LIBFMT() |
21 | ADD_SUBDIRECTORY(tpool) | 21 | ADD_SUBDIRECTORY(tpool) |
22 | CHECK_SYSTEMD() | 22 | CHECK_SYSTEMD() |
23 | 23 | ||
@@ -29,6 +29,3 @@ index f9e2b1b..34924ba 100644 | |||
29 | # | 29 | # |
30 | # Setup maintainer mode options. Platform checks are | 30 | # Setup maintainer mode options. Platform checks are |
31 | # not run with the warning options as to not perturb fragile checks | 31 | # not run with the warning options as to not perturb fragile checks |
32 | -- | ||
33 | 2.25.1 | ||
34 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch b/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch index 05b0cf8ff7..39b7fad983 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From f447aca534d1a12809eeb146e8220d305cc3884d Mon Sep 17 00:00:00 2001 | 1 | From af4247cd24eab2d728fb3592f6e125ef5290361b Mon Sep 17 00:00:00 2001 |
2 | From: Mingli Yu <mingli.yu@windriver.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Thu, 9 Apr 2020 14:07:19 +0800 | 3 | Date: Thu, 9 Apr 2020 14:07:19 +0800 |
4 | Subject: [PATCH] build_rocksdb.cmake: fix atomic support on arm | 4 | Subject: [PATCH] build_rocksdb.cmake: fix atomic support on arm |
@@ -16,10 +16,10 @@ Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | |||
16 | 1 file changed, 3 insertions(+) | 16 | 1 file changed, 3 insertions(+) |
17 | 17 | ||
18 | diff --git a/storage/rocksdb/build_rocksdb.cmake b/storage/rocksdb/build_rocksdb.cmake | 18 | diff --git a/storage/rocksdb/build_rocksdb.cmake b/storage/rocksdb/build_rocksdb.cmake |
19 | index d7895b0..3bcd52a 100644 | 19 | index e89dbfc0..acc6b48e 100644 |
20 | --- a/storage/rocksdb/build_rocksdb.cmake | 20 | --- a/storage/rocksdb/build_rocksdb.cmake |
21 | +++ b/storage/rocksdb/build_rocksdb.cmake | 21 | +++ b/storage/rocksdb/build_rocksdb.cmake |
22 | @@ -470,6 +470,9 @@ list(APPEND SOURCES ${CMAKE_CURRENT_BINARY_DIR}/build_version.cc) | 22 | @@ -490,6 +490,9 @@ list(APPEND SOURCES ${CMAKE_CURRENT_BINARY_DIR}/build_version.cc) |
23 | 23 | ||
24 | ADD_CONVENIENCE_LIBRARY(rocksdblib ${SOURCES}) | 24 | ADD_CONVENIENCE_LIBRARY(rocksdblib ${SOURCES}) |
25 | target_link_libraries(rocksdblib ${THIRDPARTY_LIBS} ${SYSTEM_LIBS}) | 25 | target_link_libraries(rocksdblib ${THIRDPARTY_LIBS} ${SYSTEM_LIBS}) |
@@ -29,6 +29,3 @@ index d7895b0..3bcd52a 100644 | |||
29 | IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | 29 | IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
30 | set_target_properties(rocksdblib PROPERTIES COMPILE_FLAGS "-fPIC -fno-builtin-memcmp -Wno-error") | 30 | set_target_properties(rocksdblib PROPERTIES COMPILE_FLAGS "-fPIC -fno-builtin-memcmp -Wno-error") |
31 | endif() | 31 | endif() |
32 | -- | ||
33 | 2.7.4 | ||
34 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/lfs64.patch b/meta-oe/recipes-dbs/mysql/mariadb/lfs64.patch index 7a685a6521..d53eb99e4c 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/lfs64.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/lfs64.patch | |||
@@ -1,5 +1,15 @@ | |||
1 | From 24667f728fabe141a92d4de828ab24d9fe953b08 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sun, 25 Dec 2022 19:23:17 -0800 | ||
4 | Subject: [PATCH] mariadb: Alias lseek64/open64/ftruncate64 on musl systems | ||
5 | |||
1 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
7 | --- | ||
8 | storage/connect/os.h | 4 +++- | ||
9 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
2 | 10 | ||
11 | diff --git a/storage/connect/os.h b/storage/connect/os.h | ||
12 | index 7d0d5cab..10da630f 100644 | ||
3 | --- a/storage/connect/os.h | 13 | --- a/storage/connect/os.h |
4 | +++ b/storage/connect/os.h | 14 | +++ b/storage/connect/os.h |
5 | @@ -2,13 +2,15 @@ | 15 | @@ -2,13 +2,15 @@ |
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/mysql-systemd-start b/meta-oe/recipes-dbs/mysql/mariadb/mysql-systemd-start index 189c02021d..b7ae09a4f7 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/mysql-systemd-start +++ b/meta-oe/recipes-dbs/mysql/mariadb/mysql-systemd-start | |||
@@ -34,7 +34,7 @@ install_db () { | |||
34 | [ -d "$datadir/mysql" ] && exit 0 | 34 | [ -d "$datadir/mysql" ] && exit 0 |
35 | 35 | ||
36 | # Create initial db | 36 | # Create initial db |
37 | /usr/bin/mysql_install_db --rpm --datadir="$datadir" --user=mysql | 37 | /usr/bin/mariadb-install-db --rpm --datadir="$datadir" --user=mysql |
38 | exit 0 | 38 | exit 0 |
39 | } | 39 | } |
40 | 40 | ||
@@ -51,7 +51,7 @@ pinger () { | |||
51 | 51 | ||
52 | while /bin/true ; do | 52 | while /bin/true ; do |
53 | sleep 1 | 53 | sleep 1 |
54 | mysqladmin --no-defaults --socket="$adminsocket" --user=UNKNOWN_MYSQL_USER ping >/dev/null 2>&1 && break | 54 | mariadb-admin --no-defaults --socket="$adminsocket" --user=UNKNOWN_MYSQL_USER ping >/dev/null 2>&1 && break |
55 | done | 55 | done |
56 | exit 0 | 56 | exit 0 |
57 | } | 57 | } |
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/mysqld.service b/meta-oe/recipes-dbs/mysql/mariadb/mysqld.service index d88361703d..9c47fede1c 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/mysqld.service +++ b/meta-oe/recipes-dbs/mysql/mariadb/mysqld.service | |||
@@ -13,7 +13,7 @@ Group=mysql | |||
13 | PermissionsStartOnly=true | 13 | PermissionsStartOnly=true |
14 | 14 | ||
15 | # Start main service | 15 | # Start main service |
16 | ExecStart=@BINDIR@/mysqld_safe --basedir=@PREFIX@ | 16 | ExecStart=@BINDIR@/mariadbd-safe --basedir=@PREFIX@ |
17 | 17 | ||
18 | # Don't signal startup success before a ping works | 18 | # Don't signal startup success before a ping works |
19 | ExecStartPost=@BINDIR@/mysql-systemd-start post | 19 | ExecStartPost=@BINDIR@/mysql-systemd-start post |
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/riscv32.patch b/meta-oe/recipes-dbs/mysql/mariadb/riscv32.patch new file mode 100644 index 0000000000..24b86584e3 --- /dev/null +++ b/meta-oe/recipes-dbs/mysql/mariadb/riscv32.patch | |||
@@ -0,0 +1,19 @@ | |||
1 | Do not use static_cast in C sources | ||
2 | |||
3 | C compiler does not recognise static_cast which is a C++ keyword | ||
4 | and bails out compiling mysys/my_rdtsc.c, use traditional typecast | ||
5 | instead | ||
6 | |||
7 | Upstream-Status: Submitted [https://github.com/MariaDB/server/pull/1981/files#r2032207090] | ||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | --- a/include/my_rdtsc.h | ||
10 | +++ b/include/my_rdtsc.h | ||
11 | @@ -226,7 +226,7 @@ static inline ulonglong my_timer_cycles( | ||
12 | "sub %0, zero, %0\n" | ||
13 | "and %1, %1, %0\n" | ||
14 | : "=r"(result_hi0), "=r"(result_lo), "=r"(result_hi1)); | ||
15 | - return (static_cast<ulonglong>(result_hi1) << 32) | result_lo; | ||
16 | + return ((ulonglong)result_hi1 << 32) | result_lo; | ||
17 | # else | ||
18 | ulonglong result; | ||
19 | __asm __volatile__("rdtime %0" : "=r"(result)); | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/ssize_t.patch b/meta-oe/recipes-dbs/mysql/mariadb/ssize_t.patch index 4e499d4137..819b65f041 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/ssize_t.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/ssize_t.patch | |||
@@ -1,7 +1,16 @@ | |||
1 | ssize_t comes from sys/types.h therefore include it | 1 | From cfa843c91a036d0926c76c6dec6fd2a1f38e4843 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 31 May 2021 21:55:00 -0700 | ||
4 | Subject: [PATCH] ssize_t comes from sys/types.h therefore include it | ||
2 | 5 | ||
3 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
8 | --- | ||
9 | wsrep-lib/include/wsrep/gtid.hpp | 2 +- | ||
10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
11 | |||
12 | diff --git a/wsrep-lib/include/wsrep/gtid.hpp b/wsrep-lib/include/wsrep/gtid.hpp | ||
13 | index 0d49c58d..d61a6585 100644 | ||
5 | --- a/wsrep-lib/include/wsrep/gtid.hpp | 14 | --- a/wsrep-lib/include/wsrep/gtid.hpp |
6 | +++ b/wsrep-lib/include/wsrep/gtid.hpp | 15 | +++ b/wsrep-lib/include/wsrep/gtid.hpp |
7 | @@ -25,7 +25,7 @@ | 16 | @@ -25,7 +25,7 @@ |
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/support-files-CMakeLists.txt-fix-do_populate_sysroot.patch b/meta-oe/recipes-dbs/mysql/mariadb/support-files-CMakeLists.txt-fix-do_populate_sysroot.patch index 233d9e6af6..30c9e2452a 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/support-files-CMakeLists.txt-fix-do_populate_sysroot.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/support-files-CMakeLists.txt-fix-do_populate_sysroot.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 4ac5b555d058d4d489f25a3806a787b7b2465d09 Mon Sep 17 00:00:00 2001 | 1 | From 34713c3bba68cb94b373b750c1c8fcc0b04b2c45 Mon Sep 17 00:00:00 2001 |
2 | From: Mingli Yu <mingli.yu@windriver.com> | 2 | From: Mingli Yu <mingli.yu@windriver.com> |
3 | Date: Wed, 27 Feb 2019 22:41:26 -0800 | 3 | Date: Wed, 27 Feb 2019 22:41:26 -0800 |
4 | Subject: [PATCH] support-files/CMakeLists.txt: fix do_populate_sysroot issue | 4 | Subject: [PATCH] support-files/CMakeLists.txt: fix do_populate_sysroot issue |
@@ -10,16 +10,15 @@ ERROR: mariadb-native-10.3.13-r0 do_populate_sysroot: sstate found an absolute p | |||
10 | Upstream-Status: Inappropriate [oe build specific] | 10 | Upstream-Status: Inappropriate [oe build specific] |
11 | 11 | ||
12 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | 12 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
13 | |||
14 | --- | 13 | --- |
15 | support-files/CMakeLists.txt | 7 ------- | 14 | support-files/CMakeLists.txt | 7 ------- |
16 | 1 file changed, 7 deletions(-) | 15 | 1 file changed, 7 deletions(-) |
17 | 16 | ||
18 | diff --git a/support-files/CMakeLists.txt b/support-files/CMakeLists.txt | 17 | diff --git a/support-files/CMakeLists.txt b/support-files/CMakeLists.txt |
19 | index b5767432..56733de1 100644 | 18 | index ee1d420e..a99c0605 100644 |
20 | --- a/support-files/CMakeLists.txt | 19 | --- a/support-files/CMakeLists.txt |
21 | +++ b/support-files/CMakeLists.txt | 20 | +++ b/support-files/CMakeLists.txt |
22 | @@ -165,12 +165,5 @@ IF(UNIX) | 21 | @@ -245,12 +245,5 @@ IF(UNIX AND NOT WITHOUT_SERVER) |
23 | INSTALL(FILES rpm/enable_encryption.preset DESTINATION ${INSTALL_SYSCONF2DIR} | 22 | INSTALL(FILES rpm/enable_encryption.preset DESTINATION ${INSTALL_SYSCONF2DIR} |
24 | COMPONENT IniFiles) | 23 | COMPONENT IniFiles) |
25 | ENDIF() | 24 | ENDIF() |
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch b/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch index 3244ab8da2..3840472213 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch | |||
@@ -1,14 +1,22 @@ | |||
1 | Use SYS_futex for syscall | 1 | From 166811dfcfc61e7646275aa993d7d7f4b02d1f49 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 3 Apr 2021 12:40:14 -0700 | ||
4 | Subject: [PATCH] Use SYS_futex for syscall | ||
2 | 5 | ||
3 | glibc defines SYS_futex and on newer 32bit CPUs like RISCV-32, arc there | 6 | glibc defines SYS_futex and on newer 32bit CPUs like RISCV-32, arc there |
4 | is no 32bit time_t therefore define SYS_futex in terms of SYS_futex_time64 | 7 | is no 32bit time_t therefore define SYS_futex in terms of SYS_futex_time64 |
5 | 8 | ||
6 | Upstream-Status: Pending | 9 | Upstream-Status: Pending |
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
11 | --- | ||
12 | storage/innobase/sync/srw_lock.cc | 6 ++++++ | ||
13 | 1 file changed, 6 insertions(+) | ||
8 | 14 | ||
15 | diff --git a/storage/innobase/sync/srw_lock.cc b/storage/innobase/sync/srw_lock.cc | ||
16 | index 28b586de..3ee71142 100644 | ||
9 | --- a/storage/innobase/sync/srw_lock.cc | 17 | --- a/storage/innobase/sync/srw_lock.cc |
10 | +++ b/storage/innobase/sync/srw_lock.cc | 18 | +++ b/storage/innobase/sync/srw_lock.cc |
11 | @@ -210,6 +210,12 @@ void ssux_lock_low::wake() { WakeByAddre | 19 | @@ -226,6 +226,12 @@ void ssux_lock_impl<spinloop>::wake() noexcept { WakeByAddressSingle(&readers); |
12 | # ifdef __linux__ | 20 | # ifdef __linux__ |
13 | # include <linux/futex.h> | 21 | # include <linux/futex.h> |
14 | # include <sys/syscall.h> | 22 | # include <sys/syscall.h> |