diff options
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb-native_10.4.11.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb-native_10.3.18.bb) | 0 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb.inc | 7 | ||||
-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/fix-arm-atomic.patch | 9 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb_10.4.11.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb_10.3.18.bb) | 0 |
5 files changed, 38 insertions, 10 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb-native_10.3.18.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_10.4.11.bb index e1a038dfa3..e1a038dfa3 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb-native_10.3.18.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb-native_10.4.11.bb | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index ec5ac11ef0..1c1b8a0a87 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc | |||
@@ -4,7 +4,7 @@ SECTION = "libs" | |||
4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b1becf0cfa3366e0f4d854d1d264f311" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=b1becf0cfa3366e0f4d854d1d264f311" |
6 | 6 | ||
7 | SRC_URI = "http://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ | 7 | SRC_URI = "https://downloads.mariadb.org/interstitial/${BP}/source/${BP}.tar.gz \ |
8 | file://my.cnf \ | 8 | file://my.cnf \ |
9 | file://mysqld.service \ | 9 | file://mysqld.service \ |
10 | file://install_db.service \ | 10 | file://install_db.service \ |
@@ -18,9 +18,10 @@ SRC_URI = "http://archive.mariadb.org/${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 \ | ||
21 | " | 22 | " |
22 | SRC_URI[md5sum] = "b3524c0825c3a1c255496daea38304a0" | 23 | SRC_URI[md5sum] = "d0de881ab8ead46928cafb7d558535c1" |
23 | SRC_URI[sha256sum] = "69456ca85bf9d96c6d28b4ade2a9f6787d79a602e27ef941f9ba4e0b55dddedc" | 24 | SRC_URI[sha256sum] = "4c076232b99433b09eb3c6d62f607192b3474d022703699b8f6aef4e79de3fb9" |
24 | 25 | ||
25 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" | 26 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" |
26 | 27 | ||
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 new file mode 100644 index 0000000000..87c70617a1 --- /dev/null +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-build-breakage-from-lock_guard-error-6161.patch | |||
@@ -0,0 +1,32 @@ | |||
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/fix-arm-atomic.patch b/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch index 34d31148b4..185b7b77ff 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/fix-arm-atomic.patch | |||
@@ -15,11 +15,9 @@ Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> | |||
15 | storage/rocksdb/build_rocksdb.cmake | 3 +++ | 15 | storage/rocksdb/build_rocksdb.cmake | 3 +++ |
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 | ||
19 | index c36c761..2b539ff 100644 | ||
20 | --- a/storage/rocksdb/build_rocksdb.cmake | 18 | --- a/storage/rocksdb/build_rocksdb.cmake |
21 | +++ b/storage/rocksdb/build_rocksdb.cmake | 19 | +++ b/storage/rocksdb/build_rocksdb.cmake |
22 | @@ -424,6 +424,9 @@ list(APPEND SOURCES ${CMAKE_CURRENT_BINARY_DIR}/build_version.cc) | 20 | @@ -470,6 +470,9 @@ list(APPEND SOURCES ${CMAKE_CURRENT_BINA |
23 | 21 | ||
24 | ADD_CONVENIENCE_LIBRARY(rocksdblib ${SOURCES}) | 22 | ADD_CONVENIENCE_LIBRARY(rocksdblib ${SOURCES}) |
25 | target_link_libraries(rocksdblib ${THIRDPARTY_LIBS} ${SYSTEM_LIBS}) | 23 | target_link_libraries(rocksdblib ${THIRDPARTY_LIBS} ${SYSTEM_LIBS}) |
@@ -27,8 +25,5 @@ index c36c761..2b539ff 100644 | |||
27 | + TARGET_LINK_LIBRARIES(rocksdblib atomic) | 25 | + TARGET_LINK_LIBRARIES(rocksdblib atomic) |
28 | +ENDIF() | 26 | +ENDIF() |
29 | IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | 27 | 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 -frtti") | 28 | set_target_properties(rocksdblib PROPERTIES COMPILE_FLAGS "-fPIC -fno-builtin-memcmp") |
31 | endif() | 29 | endif() |
32 | -- | ||
33 | 2.17.1 | ||
34 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb_10.3.18.bb b/meta-oe/recipes-dbs/mysql/mariadb_10.4.11.bb index c0b53379d9..c0b53379d9 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb_10.3.18.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb_10.4.11.bb | |||