diff options
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb-native_10.5.4.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb-native_10.4.12.bb) | 0 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb.inc | 13 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-build-breakage-from-lock_guard-error-6161.patch | 32 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-23137-RocksDB-undefined-reference-to-crc32c_arm.patch | 48 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/c11_atomics.patch | 37 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch | 26 | ||||
| -rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb_10.5.4.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb_10.4.12.bb) | 2 |
7 files changed, 97 insertions, 61 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb-native_10.4.12.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_10.5.4.bb index e1a038dfa3..e1a038dfa3 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb-native_10.4.12.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb-native_10.5.4.bb | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index 95f5acba1f..58f573e5e3 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc | |||
| @@ -18,11 +18,10 @@ SRC_URI = "https://downloads.mariadb.org/interstitial/${BP}/source/${BP}.tar.gz | |||
| 18 | file://c11_atomics.patch \ | 18 | file://c11_atomics.patch \ |
| 19 | file://clang_version_header_conflict.patch \ | 19 | file://clang_version_header_conflict.patch \ |
| 20 | file://fix-arm-atomic.patch \ | 20 | file://fix-arm-atomic.patch \ |
| 21 | file://0001-Fix-build-breakage-from-lock_guard-error-6161.patch \ | ||
| 22 | file://0001-Fix-library-LZ4-lookup.patch \ | 21 | file://0001-Fix-library-LZ4-lookup.patch \ |
| 22 | file://0001-MDEV-23137-RocksDB-undefined-reference-to-crc32c_arm.patch \ | ||
| 23 | " | 23 | " |
| 24 | SRC_URI[md5sum] = "97d7c0f508c04a31c138fdb24e95dbc4" | 24 | SRC_URI[sha256sum] = "26db2becc9cec37e99a4e73390bd2eaa74568e21f9cf110359f4f68b37154c72" |
| 25 | SRC_URI[sha256sum] = "fef1e1d38aa253dd8a51006bd15aad184912fce31c446bb69434fcde735aa208" | ||
| 26 | 25 | ||
| 27 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" | 26 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" |
| 28 | 27 | ||
| @@ -169,8 +168,12 @@ do_install() { | |||
| 169 | mv ${D}${datadir}/doc/README ${D}${datadir}/doc/${PN}/ | 168 | mv ${D}${datadir}/doc/README ${D}${datadir}/doc/${PN}/ |
| 170 | fi | 169 | fi |
| 171 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then | 170 | if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; then |
| 172 | mv ${D}/lib/security ${D}/${libdir} | 171 | pam_so=$(find ${D} -name pam_user_map.so) |
| 173 | rmdir --ignore-fail-on-non-empty ${D}/lib | 172 | if [ x"${pam_so}" != x ]; then |
| 173 | pam_dir=$(dirname ${pam_so}) | ||
| 174 | mv ${pam_dir} ${D}/${libdir} | ||
| 175 | rmdir --ignore-fail-on-non-empty ${pam_dir%security} | ||
| 176 | fi | ||
| 174 | fi | 177 | fi |
| 175 | } | 178 | } |
| 176 | 179 | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-build-breakage-from-lock_guard-error-6161.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-build-breakage-from-lock_guard-error-6161.patch deleted file mode 100644 index 87c70617a1..0000000000 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-build-breakage-from-lock_guard-error-6161.patch +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | Subject: [PATCH] Fix build breakage from lock_guard error (#6161) | ||
| 2 | |||
| 3 | Summary: | ||
| 4 | This change fixes a source issue that caused compile time error which | ||
| 5 | breaks build for many fbcode services in that setup. The size() member | ||
| 6 | function of channel is a const member, so member variables accessed | ||
| 7 | within it are implicitly const as well. This caused error when clang | ||
| 8 | fails to resolve to a constructor that takes std::mutex because the | ||
| 9 | suitable constructor got rejected due to loss of constness for its | ||
| 10 | argument. The fix is to add mutable modifier to the lock_ member of | ||
| 11 | channel. | ||
| 12 | |||
| 13 | Pull Request resolved: https://github.com/facebook/rocksdb/pull/6161 | ||
| 14 | |||
| 15 | Differential Revision: D18967685 | ||
| 16 | |||
| 17 | Pulled By: maysamyabandeh | ||
| 18 | |||
| 19 | Upstream-Status: Backport | ||
| 20 | |||
| 21 | fbshipit-source-id:698b6a5153c3c92eeacb842c467aa28cc350d432 | ||
| 22 | --- a/storage/rocksdb/rocksdb/util/channel.h | ||
| 23 | +++ b/storage/rocksdb/rocksdb/util/channel.h | ||
| 24 | @@ -60,7 +60,7 @@ class channel { | ||
| 25 | |||
| 26 | private: | ||
| 27 | std::condition_variable cv_; | ||
| 28 | - std::mutex lock_; | ||
| 29 | + mutable std::mutex lock_; | ||
| 30 | std::queue<T> buffer_; | ||
| 31 | bool eof_; | ||
| 32 | }; | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-23137-RocksDB-undefined-reference-to-crc32c_arm.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-23137-RocksDB-undefined-reference-to-crc32c_arm.patch new file mode 100644 index 0000000000..1856c1af76 --- /dev/null +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-MDEV-23137-RocksDB-undefined-reference-to-crc32c_arm.patch | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | From d88ea260882ca414e940cd6af225617f00503f71 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Krunal Bauskar <krunalbauskar@gmail.com> | ||
| 3 | Date: Mon, 27 Jul 2020 18:38:10 +0800 | ||
| 4 | Subject: [PATCH] MDEV-23137: RocksDB: undefined reference to crc32c_arm64 | ||
| 5 | |||
| 6 | RocksDB fails to build on arm64: undefined reference to | ||
| 7 | `crc32c_arm64(unsigned int, unsigned char const*, unsigned int)' | ||
| 8 | |||
| 9 | MariaDB uses storage/rocksdb/build_rocksdb.cmake to compile RocksDB. | ||
| 10 | Said cmake missed adding crc32c_arm64 compilation target so if | ||
| 11 | machine native architecture supported crc32 then complier would enable | ||
| 12 | usage of function defined in crc32c_arm64 causing the listed error. | ||
| 13 | |||
| 14 | Added crc32c_arm64 complition target. | ||
| 15 | |||
| 16 | closes #1642 | ||
| 17 | |||
| 18 | Upstream-Status: Backport | ||
| 19 | |||
| 20 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 21 | --- | ||
| 22 | storage/rocksdb/build_rocksdb.cmake | 10 ++++++++++ | ||
| 23 | 1 file changed, 10 insertions(+) | ||
| 24 | |||
| 25 | diff --git a/storage/rocksdb/build_rocksdb.cmake b/storage/rocksdb/build_rocksdb.cmake | ||
| 26 | index 3f3dca7e990..7d2252c5f77 100644 | ||
| 27 | --- a/storage/rocksdb/build_rocksdb.cmake | ||
| 28 | +++ b/storage/rocksdb/build_rocksdb.cmake | ||
| 29 | @@ -442,6 +442,16 @@ else() | ||
| 30 | util/crc32c_ppc.c | ||
| 31 | util/crc32c_ppc_asm.S) | ||
| 32 | endif(CMAKE_SYSTEM_PROCESSOR MATCHES "ppc64") | ||
| 33 | + # aarch | ||
| 34 | + if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64") | ||
| 35 | + CHECK_CXX_COMPILER_FLAG("-march=armv8-a+crc+crypto" HAS_ARMV8_CRC) | ||
| 36 | + if(HAS_ARMV8_CRC) | ||
| 37 | + message(STATUS " HAS_ARMV8_CRC yes") | ||
| 38 | + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8-a+crc+crypto -Wno-unused-function") | ||
| 39 | + list(APPEND ROCKSDB_SOURCES | ||
| 40 | + util/crc32c_arm64.cc) | ||
| 41 | + endif(HAS_ARMV8_CRC) | ||
| 42 | + endif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64") | ||
| 43 | endif() | ||
| 44 | SET(SOURCES) | ||
| 45 | FOREACH(s ${ROCKSDB_SOURCES}) | ||
| 46 | -- | ||
| 47 | 2.17.1 | ||
| 48 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/c11_atomics.patch b/meta-oe/recipes-dbs/mysql/mariadb/c11_atomics.patch index 169986130c..36217f9aae 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/c11_atomics.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/c11_atomics.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | Author: Vicențiu Ciorbaru <vicentiu@mariadb.org> | 1 | From 976468458d53d8bb71acf48ddfc852a60557acb9 Mon Sep 17 00:00:00 2001 |
| 2 | Date: Fri Dec 21 19:14:04 2018 +0200 | 2 | From: =?UTF-8?q?Vicen=C8=9Biu=20Ciorbaru?= <vicentiu@mariadb.org> |
| 3 | 3 | Date: Thu, 23 Jul 2020 00:02:21 -0700 | |
| 4 | Link with libatomic to enable C11 atomics support | 4 | Subject: [PATCH] Link with libatomic to enable C11 atomics support |
| 5 | 5 | ||
| 6 | Some architectures (mips) require libatomic to support proper | 6 | Some architectures (mips) require libatomic to support proper |
| 7 | atomic operations. Check first if support is available without | 7 | atomic operations. Check first if support is available without |
| @@ -9,10 +9,18 @@ Date: Fri Dec 21 19:14:04 2018 +0200 | |||
| 9 | 9 | ||
| 10 | Upstream-Status: Pending | 10 | 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> | ||
| 13 | --- | ||
| 14 | configure.cmake | 20 +++++++++++++++++++- | ||
| 15 | mysys/CMakeLists.txt | 4 ++++ | ||
| 16 | sql/CMakeLists.txt | 4 ++++ | ||
| 17 | 3 files changed, 27 insertions(+), 1 deletion(-) | ||
| 12 | 18 | ||
| 19 | diff --git a/configure.cmake b/configure.cmake | ||
| 20 | index a355214..6ee595f 100644 | ||
| 13 | --- a/configure.cmake | 21 | --- a/configure.cmake |
| 14 | +++ b/configure.cmake | 22 | +++ b/configure.cmake |
| 15 | @@ -926,7 +926,25 @@ int main() | 23 | @@ -865,7 +865,25 @@ int main() |
| 16 | long long int *ptr= &var; | 24 | long long int *ptr= &var; |
| 17 | return (int)__atomic_load_n(ptr, __ATOMIC_SEQ_CST); | 25 | return (int)__atomic_load_n(ptr, __ATOMIC_SEQ_CST); |
| 18 | }" | 26 | }" |
| @@ -39,10 +47,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 39 | 47 | ||
| 40 | IF(WITH_VALGRIND) | 48 | IF(WITH_VALGRIND) |
| 41 | SET(HAVE_valgrind 1) | 49 | SET(HAVE_valgrind 1) |
| 50 | diff --git a/mysys/CMakeLists.txt b/mysys/CMakeLists.txt | ||
| 51 | index 3d8a20e..42f1441 100644 | ||
| 42 | --- a/mysys/CMakeLists.txt | 52 | --- a/mysys/CMakeLists.txt |
| 43 | +++ b/mysys/CMakeLists.txt | 53 | +++ b/mysys/CMakeLists.txt |
| 44 | @@ -78,6 +78,10 @@ TARGET_LINK_LIBRARIES(mysys dbug strings | 54 | @@ -129,6 +129,10 @@ TARGET_LINK_LIBRARIES(mysys dbug strings ${ZLIB_LIBRARY} |
| 45 | ${LIBNSL} ${LIBM} ${LIBRT} ${LIBDL} ${LIBSOCKET} ${LIBEXECINFO} ${CRC32_LIBRARY}) | 55 | ${LIBNSL} ${LIBM} ${LIBRT} ${LIBDL} ${LIBSOCKET} ${LIBEXECINFO}) |
| 46 | DTRACE_INSTRUMENT(mysys) | 56 | DTRACE_INSTRUMENT(mysys) |
| 47 | 57 | ||
| 48 | +IF (HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC) | 58 | +IF (HAVE_GCC_C11_ATOMICS_WITH_LIBATOMIC) |
| @@ -52,9 +62,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 52 | IF(HAVE_BFD_H) | 62 | IF(HAVE_BFD_H) |
| 53 | TARGET_LINK_LIBRARIES(mysys bfd) | 63 | TARGET_LINK_LIBRARIES(mysys bfd) |
| 54 | ENDIF(HAVE_BFD_H) | 64 | ENDIF(HAVE_BFD_H) |
| 65 | diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt | ||
| 66 | index 616017b..53575f6 100644 | ||
| 55 | --- a/sql/CMakeLists.txt | 67 | --- a/sql/CMakeLists.txt |
| 56 | +++ b/sql/CMakeLists.txt | 68 | +++ b/sql/CMakeLists.txt |
| 57 | @@ -178,6 +178,10 @@ ELSE() | 69 | @@ -219,6 +219,10 @@ ELSE() |
| 58 | SET(MYSQLD_SOURCE main.cc ${DTRACE_PROBES_ALL}) | 70 | SET(MYSQLD_SOURCE main.cc ${DTRACE_PROBES_ALL}) |
| 59 | ENDIF() | 71 | ENDIF() |
| 60 | 72 | ||
| @@ -62,6 +74,9 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 62 | + TARGET_LINK_LIBRARIES(sql atomic) | 74 | + TARGET_LINK_LIBRARIES(sql atomic) |
| 63 | +ENDIF() | 75 | +ENDIF() |
| 64 | + | 76 | + |
| 65 | 77 | IF(MSVC) | |
| 66 | IF(MSVC AND NOT WITHOUT_DYNAMIC_PLUGINS) | 78 | SET(libs_to_export_symbols sql mysys dbug strings) |
| 67 | 79 | # Create shared library of already compiled object | |
| 80 | -- | ||
| 81 | 2.17.1 | ||
| 82 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch b/meta-oe/recipes-dbs/mysql/mariadb/sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch index afc1be47b5..4cb0443392 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | From 796464015bffe6e0beca9e1c355b223512803c3e Mon Sep 17 00:00:00 2001 | 1 | From cfce1491827e5a581878b5e166bf4d30e6d90e07 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 23:01:00 -0800 | 3 | Date: Thu, 23 Jul 2020 00:08:16 -0700 |
| 4 | Subject: [PATCH] sql/CMakeLists.txt: fix gen_lex_hash not found | 4 | Subject: [PATCH] sql/CMakeLists.txt: fix gen_lex_hash not found |
| 5 | 5 | ||
| 6 | Fix the below do_compile issue in cross-compiling env. | 6 | Fix the below do_compile issue in cross-compiling env. |
| @@ -10,18 +10,17 @@ Fix the below do_compile issue in cross-compiling env. | |||
| 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 | sql/CMakeLists.txt | 30 ++++++++++++++++++++---------- | 14 | sql/CMakeLists.txt | 30 ++++++++++++++++++++---------- |
| 16 | 1 file changed, 20 insertions(+), 10 deletions(-) | 15 | 1 file changed, 20 insertions(+), 10 deletions(-) |
| 17 | 16 | ||
| 18 | diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt | 17 | diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt |
| 19 | index c6910f46..bf51f4cb 100644 | 18 | index 0dc3caa..616017b 100644 |
| 20 | --- a/sql/CMakeLists.txt | 19 | --- a/sql/CMakeLists.txt |
| 21 | +++ b/sql/CMakeLists.txt | 20 | +++ b/sql/CMakeLists.txt |
| 22 | @@ -50,11 +50,16 @@ ${WSREP_INCLUDES} | 21 | @@ -52,11 +52,16 @@ ${CMAKE_BINARY_DIR}/sql |
| 23 | 22 | ${CMAKE_SOURCE_DIR}/tpool | |
| 24 | 23 | ) | |
| 25 | 24 | ||
| 26 | -ADD_CUSTOM_COMMAND( | 25 | -ADD_CUSTOM_COMMAND( |
| 27 | - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lex_token.h | 26 | - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lex_token.h |
| @@ -39,9 +38,9 @@ index c6910f46..bf51f4cb 100644 | |||
| 39 | + COMMAND gen_lex_token > lex_token.h) | 38 | + COMMAND gen_lex_token > lex_token.h) |
| 40 | +ENDIF() | 39 | +ENDIF() |
| 41 | 40 | ||
| 42 | ADD_DEFINITIONS(-DMYSQL_SERVER -DHAVE_EVENT_SCHEDULER) | 41 | ADD_CUSTOM_COMMAND( |
| 43 | 42 | OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/sql_yacc_ora.yy | |
| 44 | @@ -370,11 +375,16 @@ IF(NOT CMAKE_CROSSCOMPILING) | 43 | @@ -345,11 +350,16 @@ IF(NOT CMAKE_CROSSCOMPILING) |
| 45 | ADD_EXECUTABLE(gen_lex_hash gen_lex_hash.cc) | 44 | ADD_EXECUTABLE(gen_lex_hash gen_lex_hash.cc) |
| 46 | ENDIF() | 45 | ENDIF() |
| 47 | 46 | ||
| @@ -61,5 +60,8 @@ index c6910f46..bf51f4cb 100644 | |||
| 61 | + COMMAND gen_lex_hash > lex_hash.h) | 60 | + COMMAND gen_lex_hash > lex_hash.h) |
| 62 | +ENDIF() | 61 | +ENDIF() |
| 63 | 62 | ||
| 64 | MYSQL_ADD_EXECUTABLE(mysql_tzinfo_to_sql tztime.cc COMPONENT Server) | 63 | MYSQL_ADD_EXECUTABLE(mariadb-tzinfo-to-sql tztime.cc COMPONENT Server) |
| 65 | SET_TARGET_PROPERTIES(mysql_tzinfo_to_sql PROPERTIES COMPILE_FLAGS "-DTZINFO2SQL") | 64 | SET_TARGET_PROPERTIES(mariadb-tzinfo-to-sql PROPERTIES COMPILE_FLAGS "-DTZINFO2SQL") |
| 65 | -- | ||
| 66 | 2.17.1 | ||
| 67 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb_10.4.12.bb b/meta-oe/recipes-dbs/mysql/mariadb_10.5.4.bb index c0b53379d9..220b904b25 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb_10.4.12.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb_10.5.4.bb | |||
| @@ -2,7 +2,7 @@ require mariadb.inc | |||
| 2 | 2 | ||
| 3 | EXTRA_OECMAKE += "-DSTACK_DIRECTION=-1" | 3 | EXTRA_OECMAKE += "-DSTACK_DIRECTION=-1" |
| 4 | 4 | ||
| 5 | DEPENDS += "mariadb-native bison-native openssl ncurses zlib libaio libedit libevent libxml2" | 5 | DEPENDS += "mariadb-native bison-native curl openssl ncurses zlib libaio libedit libevent libxml2" |
| 6 | 6 | ||
| 7 | PROVIDES += "mysql5 libmysqlclient" | 7 | PROVIDES += "mysql5 libmysqlclient" |
| 8 | 8 | ||
