diff options
| author | Mingli Yu <mingli.yu@windriver.com> | 2021-12-22 13:47:14 +0800 |
|---|---|---|
| committer | Armin Kuster <akuster808@gmail.com> | 2022-01-30 15:13:01 -0800 |
| commit | 46907548e490d1ea2170a9e11a6a823522d6c491 (patch) | |
| tree | 0c2e5e4ea87605ead8e75f4d10b548be8da9ab4e /meta-oe | |
| parent | 3230cebe01ece645990b445591b312401b6293cf (diff) | |
| download | meta-openembedded-46907548e490d1ea2170a9e11a6a823522d6c491.tar.gz | |
mariadb: Upgrade to 10.5.13
Remove c11_atomics.patch as the logic is already included in the
new version [1].
[1] https://github.com/MariaDB/server/commit/f502ccbcb5dfce29067434885a23db8d1bd5f134
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb-native_10.5.13.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb-native_10.5.12.bb) | 0 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb.inc | 3 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/c11_atomics.patch | 82 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb_10.5.13.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb_10.5.12.bb) | 0 |
4 files changed, 1 insertions, 84 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb-native_10.5.12.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_10.5.13.bb index 73b2a0980d..73b2a0980d 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb-native_10.5.12.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb-native_10.5.13.bb | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index 3ecb292560..4a7b3cac48 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc | |||
| @@ -13,7 +13,6 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ | |||
| 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 \ | 15 | file://0001-disable-ucontext-on-musl.patch \ |
| 16 | file://c11_atomics.patch \ | ||
| 17 | file://clang_version_header_conflict.patch \ | 16 | file://clang_version_header_conflict.patch \ |
| 18 | file://fix-arm-atomic.patch \ | 17 | file://fix-arm-atomic.patch \ |
| 19 | file://0001-Fix-library-LZ4-lookup.patch \ | 18 | file://0001-Fix-library-LZ4-lookup.patch \ |
| @@ -25,7 +24,7 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ | |||
| 25 | " | 24 | " |
| 26 | SRC_URI_append_libc-musl = " file://ppc-remove-glibc-dep.patch" | 25 | SRC_URI_append_libc-musl = " file://ppc-remove-glibc-dep.patch" |
| 27 | 26 | ||
| 28 | SRC_URI[sha256sum] = "ab4f1ca69a30c5372e191a68e8b543a74168327680fb1f4067e8cc0a5582e4bd" | 27 | SRC_URI[sha256sum] = "16f008c66831130e9263b2601265d566ffc4e890d37bacecd4dcecebfd0d1c58" |
| 29 | 28 | ||
| 30 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" | 29 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" |
| 31 | 30 | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/c11_atomics.patch b/meta-oe/recipes-dbs/mysql/mariadb/c11_atomics.patch deleted file mode 100644 index 1c76ab3918..0000000000 --- a/meta-oe/recipes-dbs/mysql/mariadb/c11_atomics.patch +++ /dev/null | |||
| @@ -1,82 +0,0 @@ | |||
| 1 | From 976468458d53d8bb71acf48ddfc852a60557acb9 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Vicen=C8=9Biu=20Ciorbaru?= <vicentiu@mariadb.org> | ||
| 3 | Date: Thu, 23 Jul 2020 00:02:21 -0700 | ||
| 4 | Subject: [PATCH] Link with libatomic to enable C11 atomics support | ||
| 5 | |||
| 6 | Some architectures (mips) require libatomic to support proper | ||
| 7 | atomic operations. Check first if support is available without | ||
| 8 | linking, otherwise use the library. | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 13 | --- | ||
| 14 | configure.cmake | 20 +++++++++++++++++++- | ||
| 15 | mysys/CMakeLists.txt | 4 ++++ | ||
| 16 | sql/CMakeLists.txt | 4 ++++ | ||
| 17 | 3 files changed, 27 insertions(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/configure.cmake b/configure.cmake | ||
| 20 | index 4fc324a9..23a2ea91 100644 | ||
| 21 | --- a/configure.cmake | ||
| 22 | +++ b/configure.cmake | ||
| 23 | @@ -862,7 +862,25 @@ int main() | ||
| 24 | long long int *ptr= &var; | ||
| 25 | return (int)__atomic_load_n(ptr, __ATOMIC_SEQ_CST); | ||
| 26 | }" | ||
| 27 | -HAVE_GCC_C11_ATOMICS) | ||
| 28 | +HAVE_GCC_C11_ATOMICS_WITHOUT_LIBATOMIC) | ||
| 29 | +IF (HAVE_GCC_C11_ATOMICS_WITHOUT_LIBATOMIC) | ||
| 30 | + SET(HAVE_GCC_C11_ATOMICS True) | ||
| 31 | +ELSE() | ||
| 32 | + SET(OLD_CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}) | ||
| 33 | + LIST(APPEND CMAKE_REQUIRED_LIBRARIES "atomic") | ||
| 34 | + CHECK_CXX_SOURCE_COMPILES(" | ||
| 35 | + int main() | ||
| 36 | + { | ||
| 37 | + long long int var= 1; | ||
| 38 | + long long int *ptr= &var; | ||
| 39 | + return (int)__atomic_load_n(ptr, __ATOMIC_SEQ_CST); | ||
| 40 | + }" | ||
| 41 | + HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC) | ||
| 42 | + IF(HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC) | ||
| 43 | + SET(HAVE_GCC_C11_ATOMICS True) | ||
| 44 | + ENDIF() | ||
| 45 | + SET(CMAKE_REQUIRED_LIBRARIES ${OLD_CMAKE_REQUIRED_LIBRARIES}) | ||
| 46 | +ENDIF() | ||
| 47 | |||
| 48 | IF(WITH_VALGRIND) | ||
| 49 | SET(HAVE_valgrind 1) | ||
| 50 | diff --git a/mysys/CMakeLists.txt b/mysys/CMakeLists.txt | ||
| 51 | index 6aab788f..91b9c393 100644 | ||
| 52 | --- a/mysys/CMakeLists.txt | ||
| 53 | +++ b/mysys/CMakeLists.txt | ||
| 54 | @@ -154,6 +154,10 @@ TARGET_LINK_LIBRARIES(mysys dbug strings ${ZLIB_LIBRARY} | ||
| 55 | ${LIBNSL} ${LIBM} ${LIBRT} ${CMAKE_DL_LIBS} ${LIBSOCKET} ${LIBEXECINFO}) | ||
| 56 | DTRACE_INSTRUMENT(mysys) | ||
| 57 | |||
| 58 | +IF (HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC) | ||
| 59 | + TARGET_LINK_LIBRARIES(mysys atomic) | ||
| 60 | +ENDIF() | ||
| 61 | + | ||
| 62 | IF(HAVE_BFD_H) | ||
| 63 | TARGET_LINK_LIBRARIES(mysys bfd) | ||
| 64 | ENDIF(HAVE_BFD_H) | ||
| 65 | diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt | ||
| 66 | index b9cd418f..d42e5017 100644 | ||
| 67 | --- a/sql/CMakeLists.txt | ||
| 68 | +++ b/sql/CMakeLists.txt | ||
| 69 | @@ -222,6 +222,10 @@ ELSE() | ||
| 70 | SET(MYSQLD_SOURCE main.cc ${DTRACE_PROBES_ALL}) | ||
| 71 | ENDIF() | ||
| 72 | |||
| 73 | +IF (HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC) | ||
| 74 | + TARGET_LINK_LIBRARIES(sql atomic) | ||
| 75 | +ENDIF() | ||
| 76 | + | ||
| 77 | IF(MSVC OR CMAKE_SYSTEM_NAME MATCHES AIX) | ||
| 78 | SET(libs_to_export_symbols sql mysys dbug strings) | ||
| 79 | # Create shared library of already compiled object | ||
| 80 | -- | ||
| 81 | 2.25.1 | ||
| 82 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb_10.5.12.bb b/meta-oe/recipes-dbs/mysql/mariadb_10.5.13.bb index 57d7736ea3..57d7736ea3 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb_10.5.12.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb_10.5.13.bb | |||
