diff options
| author | Mingli Yu <mingli.yu@windriver.com> | 2021-08-18 17:32:20 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-08-23 22:00:40 -0700 |
| commit | 8a80e07d3a24bfd881f5b631f8c0f14665fb63fd (patch) | |
| tree | 5465e0888322379821ef786651805ee01bbc6a7c /meta-oe/recipes-dbs | |
| parent | 736eae4899fb15d5430c75f49f7a18e7de68f7ea (diff) | |
| download | meta-openembedded-8a80e07d3a24bfd881f5b631f8c0f14665fb63fd.tar.gz | |
mariadb: Upgrade to 10.6.4
Drop patches such as 0001-disable-ucontext-on-musl.patch is used to
patch include/my_context.h which is deleted in 10.6.x [1] and rebase one
patch to avoid fuzz warnings.
[1] https://github.com/MariaDB/server/commit/32a29afea777d8bbfcea7a2b5e6e5ee674013cb5
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-dbs')
| -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.inc | 6 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/0001-aio_linux-Check-if-syscall-exists-before-using-it.patch | 14 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/0001-disable-ucontext-on-musl.patch | 26 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/clang_version_header_conflict.patch | 32 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/ppc-remove-glibc-dep.patch | 19 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/sys_futex.patch | 27 | ||||
| -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 | " |
| 26 | SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch" | 24 | SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch" |
| 27 | 25 | ||
| 28 | SRC_URI[sha256sum] = "761053605fe30ce393f324852117990350840a93b3e6305ef4d2f8c8305cc47a" | 26 | SRC_URI[sha256sum] = "75bf9b147a95d38160d01a73b098d50a1960563b46d16a235971fff64d99643c" |
| 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-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 @@ | |||
| 1 | From 5d9a869a72420cf0bb08b6aa93e980df90bdcf2e Mon Sep 17 00:00:00 2001 | 1 | From 0a3222338efc108c831fbdd719a47d35f4b0adcd 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, 3 Apr 2021 12:02:36 -0700 | 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 |
| 5 | 5 | ||
| 6 | Return -ENOSYS if not implememented, fixes build on arches like RISCV32 | 6 | Return -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 | ||
| 19 | 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 |
| 20 | index d9aa8be2..d8a87a8f 100644 | 20 | index 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 | -- |
| 42 | 2.31.1 | 42 | 2.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 @@ | |||
| 1 | From b658bdb38b7ff6a78915fd0ac390fc224e4006cb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 26 Mar 2017 14:30:33 -0700 | ||
| 4 | Subject: [PATCH] disable ucontext on musl | ||
| 5 | |||
| 6 | musl does not have *contex() APIs even though it has ucontext.h header | ||
| 7 | |||
| 8 | Signed-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 | |||
| 14 | diff --git a/include/my_context.h b/include/my_context.h | ||
| 15 | index 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 @@ | |||
| 1 | libc++ also has a file called version and this file and how cflags are specified | ||
| 2 | it ends up including this file and resulting in compile errors | ||
| 3 | |||
| 4 | fixes errors like | ||
| 5 | storage/mroonga/version:1:1: error: expected unqualified-id | ||
| 6 | 7.07 | ||
| 7 | ^ | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-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 | |||
| 3 | Sourced from: https://git.alpinelinux.org/aports/tree/main/mariadb/ppc-remove-glibc-dep.patch | 3 | Sourced from: https://git.alpinelinux.org/aports/tree/main/mariadb/ppc-remove-glibc-dep.patch |
| 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 5 | 5 | ||
| 6 | diff --git a/include/my_cpu.h b/include/my_cpu.h | ||
| 7 | index 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 | 1 | Use SYS_futex for syscall |
| 2 | 2 | ||
| 3 | glibc defines SYS_futex and on newer 32bit CPUs like RISCV-32, arc there | 3 | 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 | 4 | is no 32bit time_t therefore define SYS_futex in terms of SYS_futex_time64 |
| 5 | 5 | ||
| 6 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 7 | Signed-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 | |||
