summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb-native_10.6.4.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb-native_10.5.11.bb)0
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb.inc6
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb/0001-aio_linux-Check-if-syscall-exists-before-using-it.patch14
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb/0001-disable-ucontext-on-musl.patch26
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb/clang_version_header_conflict.patch32
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb/ppc-remove-glibc-dep.patch19
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch27
-rw-r--r--meta-oe/recipes-dbs/mysql/mariadb_10.6.4.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb_10.5.11.bb)0
8 files changed, 28 insertions, 96 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb-native_10.5.11.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_10.6.4.bb
index e38726d3f9..e38726d3f9 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb-native_10.5.11.bb
+++ b/meta-oe/recipes-dbs/mysql/mariadb-native_10.6.4.bb
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc
index 2496ac8fdc..81a7859323 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb.inc
+++ b/meta-oe/recipes-dbs/mysql/mariadb.inc
@@ -12,20 +12,18 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \
12 file://mysql-systemd-start \ 12 file://mysql-systemd-start \
13 file://configure.cmake-fix-valgrind.patch \ 13 file://configure.cmake-fix-valgrind.patch \
14 file://support-files-CMakeLists.txt-fix-do_populate_sysroot.patch \ 14 file://support-files-CMakeLists.txt-fix-do_populate_sysroot.patch \
15 file://0001-disable-ucontext-on-musl.patch \
16 file://c11_atomics.patch \ 15 file://c11_atomics.patch \
17 file://clang_version_header_conflict.patch \
18 file://fix-arm-atomic.patch \ 16 file://fix-arm-atomic.patch \
19 file://0001-Fix-library-LZ4-lookup.patch \ 17 file://0001-Fix-library-LZ4-lookup.patch \
20 file://0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch \ 18 file://0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch \
21 file://0001-aio_linux-Check-if-syscall-exists-before-using-it.patch \ 19 file://0001-aio_linux-Check-if-syscall-exists-before-using-it.patch \
22 file://sys_futex.patch \
23 file://ssize_t.patch \ 20 file://ssize_t.patch \
24 file://mm_malloc.patch \ 21 file://mm_malloc.patch \
22 file://sys_futex.patch \
25 " 23 "
26SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch" 24SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch"
27 25
28SRC_URI[sha256sum] = "761053605fe30ce393f324852117990350840a93b3e6305ef4d2f8c8305cc47a" 26SRC_URI[sha256sum] = "75bf9b147a95d38160d01a73b098d50a1960563b46d16a235971fff64d99643c"
29 27
30UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" 28UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases"
31 29
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 a2f7812c50..6ed174113b 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,6 +1,6 @@
1From 5d9a869a72420cf0bb08b6aa93e980df90bdcf2e Mon Sep 17 00:00:00 2001 1From 0a3222338efc108c831fbdd719a47d35f4b0adcd Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 3 Apr 2021 12:02:36 -0700 3Date: Wed, 18 Aug 2021 06:49:25 +0000
4Subject: [PATCH] aio_linux: Check if syscall exists before using it 4Subject: [PATCH] aio_linux: Check if syscall exists before using it
5 5
6Return -ENOSYS if not implememented, fixes build on arches like RISCV32 6Return -ENOSYS if not implememented, fixes build on arches like RISCV32
@@ -17,10 +17,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 1 file changed, 4 insertions(+) 17 1 file changed, 4 insertions(+)
18 18
19diff --git a/tpool/aio_linux.cc b/tpool/aio_linux.cc 19diff --git a/tpool/aio_linux.cc b/tpool/aio_linux.cc
20index d9aa8be2..d8a87a8f 100644 20index 4abc213..da75411 100644
21--- a/tpool/aio_linux.cc 21--- a/tpool/aio_linux.cc
22+++ b/tpool/aio_linux.cc 22+++ b/tpool/aio_linux.cc
23@@ -59,6 +59,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 - 1301 USA*/ 23@@ -58,6 +58,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 - 1301 USA*/
24 */ 24 */
25 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)
26 { 26 {
@@ -28,7 +28,7 @@ index d9aa8be2..d8a87a8f 100644
28 int saved_errno= errno; 28 int saved_errno= errno;
29 int ret= syscall(__NR_io_getevents, reinterpret_cast<long>(ctx), 29 int ret= syscall(__NR_io_getevents, reinterpret_cast<long>(ctx),
30 min_nr, nr, ev, 0); 30 min_nr, nr, ev, 0);
31@@ -68,6 +69,9 @@ static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev) 31@@ -67,6 +68,9 @@ static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev)
32 errno= saved_errno; 32 errno= saved_errno;
33 } 33 }
34 return ret; 34 return ret;
@@ -36,8 +36,8 @@ index d9aa8be2..d8a87a8f 100644
36+ return -ENOSYS; 36+ return -ENOSYS;
37+#endif 37+#endif
38 } 38 }
39 #endif 39
40 40
41-- 41--
422.31.1 422.29.2
43 43
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-disable-ucontext-on-musl.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-disable-ucontext-on-musl.patch
deleted file mode 100644
index daf2432a54..0000000000
--- a/meta-oe/recipes-dbs/mysql/mariadb/0001-disable-ucontext-on-musl.patch
+++ /dev/null
@@ -1,26 +0,0 @@
1From b658bdb38b7ff6a78915fd0ac390fc224e4006cb Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 26 Mar 2017 14:30:33 -0700
4Subject: [PATCH] disable ucontext on musl
5
6musl does not have *contex() APIs even though it has ucontext.h header
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9
10---
11 include/my_context.h | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/include/my_context.h b/include/my_context.h
15index ea0e3496..4c9b37dc 100644
16--- a/include/my_context.h
17+++ b/include/my_context.h
18@@ -31,7 +31,7 @@
19 #define MY_CONTEXT_USE_X86_64_GCC_ASM
20 #elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__)
21 #define MY_CONTEXT_USE_I386_GCC_ASM
22-#elif defined(HAVE_UCONTEXT_H)
23+#elif defined(__GLIBC__) && defined(HAVE_UCONTEXT_H)
24 #define MY_CONTEXT_USE_UCONTEXT
25 #else
26 #define MY_CONTEXT_DISABLE
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/clang_version_header_conflict.patch b/meta-oe/recipes-dbs/mysql/mariadb/clang_version_header_conflict.patch
deleted file mode 100644
index c77a869441..0000000000
--- a/meta-oe/recipes-dbs/mysql/mariadb/clang_version_header_conflict.patch
+++ /dev/null
@@ -1,32 +0,0 @@
1libc++ also has a file called version and this file and how cflags are specified
2it ends up including this file and resulting in compile errors
3
4fixes errors like
5storage/mroonga/version:1:1: error: expected unqualified-id
67.07
7^
8
9Upstream-Status: Pending
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12--- a/storage/mroonga/CMakeLists.txt
13+++ b/storage/mroonga/CMakeLists.txt
14@@ -80,7 +80,7 @@ else()
15 set(MRN_SOURCE_DIR ${CMAKE_SOURCE_DIR})
16 endif()
17
18-file(READ ${MRN_SOURCE_DIR}/version MRN_VERSION)
19+file(READ ${MRN_SOURCE_DIR}/ver MRN_VERSION)
20 file(READ ${MRN_SOURCE_DIR}/version_major MRN_VERSION_MAJOR)
21 file(READ ${MRN_SOURCE_DIR}/version_minor MRN_VERSION_MINOR)
22 file(READ ${MRN_SOURCE_DIR}/version_micro MRN_VERSION_MICRO)
23--- /dev/null
24+++ b/storage/mroonga/ver
25@@ -0,0 +1 @@
26+7.07
27\ No newline at end of file
28--- a/storage/mroonga/version
29+++ /dev/null
30@@ -1 +0,0 @@
31-7.07
32\ No newline at end of file
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
index d6e53c29e1..a4deee6070 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb/ppc-remove-glibc-dep.patch
+++ b/meta-oe/recipes-dbs/mysql/mariadb/ppc-remove-glibc-dep.patch
@@ -3,11 +3,13 @@ Remove glibc specific function dependencies
3Sourced from: https://git.alpinelinux.org/aports/tree/main/mariadb/ppc-remove-glibc-dep.patch 3Sourced from: https://git.alpinelinux.org/aports/tree/main/mariadb/ppc-remove-glibc-dep.patch
4Signed-off-by: Khem Raj <raj.khem@gmail.com> 4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5 5
6diff --git a/include/my_cpu.h b/include/my_cpu.h
7index f2e26fca..94599b74 100644
6--- a/include/my_cpu.h 8--- a/include/my_cpu.h
7+++ b/include/my_cpu.h 9+++ b/include/my_cpu.h
8@@ -24,17 +24,16 @@ 10@@ -24,17 +24,16 @@
9 */ 11 */
10 12
11 #ifdef _ARCH_PWR8 13 #ifdef _ARCH_PWR8
12-#include <sys/platform/ppc.h> 14-#include <sys/platform/ppc.h>
13 /* Very low priority */ 15 /* Very low priority */
@@ -28,7 +30,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
28 /* High priority */ 30 /* High priority */
29 #define HMT_high() asm volatile("or 3,3,3") 31 #define HMT_high() asm volatile("or 3,3,3")
30 #else 32 #else
31@@ -81,7 +80,7 @@ static inline void MY_RELAX_CPU(void) 33@@ -72,7 +71,7 @@ static inline void MY_RELAX_CPU(void)
32 __asm__ __volatile__ ("pause"); 34 __asm__ __volatile__ ("pause");
33 #endif 35 #endif
34 #elif defined(_ARCH_PWR8) 36 #elif defined(_ARCH_PWR8)
@@ -36,15 +38,4 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
36+ __builtin_ppc_get_timebase(); 38+ __builtin_ppc_get_timebase();
37 #elif defined __GNUC__ && (defined __arm__ || defined __aarch64__) 39 #elif defined __GNUC__ && (defined __arm__ || defined __aarch64__)
38 /* Mainly, prevent the compiler from optimizing away delay loops */ 40 /* Mainly, prevent the compiler from optimizing away delay loops */
39 #ifdef _aarch64_ 41 __asm__ __volatile__ ("":::"memory");
40--- a/storage/tokudb/PerconaFT/portability/toku_time.h
41+++ b/storage/tokudb/PerconaFT/portability/toku_time.h
42@@ -124,7 +124,7 @@ static inline tokutime_t toku_time_now(v
43 __asm __volatile__ ("mrs %[rt], cntvct_el0" : [rt] "=r" (result));
44 return result;
45 #elif defined(__powerpc__)
46- return __ppc_get_timebase();
47+ return __builtin_ppc_get_timebase();
48 #else
49 #error No timer implementation for this platform
50 #endif
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch b/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch
index 3277a3eee1..3244ab8da2 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch
+++ b/meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch
@@ -1,22 +1,23 @@
1 Use SYS_futex for syscall 1Use SYS_futex for syscall
2 2
3glibc defines SYS_futex and on newer 32bit CPUs like RISCV-32, arc there 3glibc defines SYS_futex and on newer 32bit CPUs like RISCV-32, arc there
4is no 32bit time_t therefore define SYS_futex in terms of SYS_futex_time64 4is no 32bit time_t therefore define SYS_futex in terms of SYS_futex_time64
5 5
6Upstream-Status: Pending 6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com> 7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8--- a/storage/innobase/include/ib0mutex.h 8
9+++ b/storage/innobase/include/ib0mutex.h 9--- a/storage/innobase/sync/srw_lock.cc
10@@ -150,6 +150,12 @@ private: 10+++ b/storage/innobase/sync/srw_lock.cc
11 #include <linux/futex.h> 11@@ -210,6 +210,12 @@ void ssux_lock_low::wake() { WakeByAddre
12 #include <sys/syscall.h> 12 # ifdef __linux__
13 13 # include <linux/futex.h>
14 # include <sys/syscall.h>
14+/** Newer 32bit CPUs eg. RISCV-32 are defaulting to 64bit time_t from get go and 15+/** Newer 32bit CPUs eg. RISCV-32 are defaulting to 64bit time_t from get go and
15+ therefore do not define __NR_futex */ 16+ therefore do not define __NR_futex */
16+#if !defined(SYS_futex) && defined(SYS_futex_time64) 17+# if !defined(SYS_futex) && defined(SYS_futex_time64)
17+# define SYS_futex SYS_futex_time64 18+# define SYS_futex SYS_futex_time64
18+#endif 19+# endif
19+ 20+
20 /** Mutex implementation that used the Linux futex. */ 21 # define SRW_FUTEX(a,op,n) \
21 template <template <typename> class Policy> 22 syscall(SYS_futex, a, FUTEX_ ## op ## _PRIVATE, n, nullptr, nullptr, 0)
22 struct TTASFutexMutex { 23 # elif defined __OpenBSD__
diff --git a/meta-oe/recipes-dbs/mysql/mariadb_10.5.11.bb b/meta-oe/recipes-dbs/mysql/mariadb_10.6.4.bb
index 04dfb42234..04dfb42234 100644
--- a/meta-oe/recipes-dbs/mysql/mariadb_10.5.11.bb
+++ b/meta-oe/recipes-dbs/mysql/mariadb_10.6.4.bb