diff options
author | Mingli Yu <mingli.yu@windriver.com> | 2024-02-26 17:04:29 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2024-02-26 08:13:22 -0800 |
commit | 0e18a0cea962a187cffcca248b1685924742afd4 (patch) | |
tree | 93626014d0aefd6a1d239c41bde020b5e1f2f92e /meta-oe/recipes-dbs/mysql | |
parent | 067b6cd59b54f5a9633540b4d46f14c55968d264 (diff) | |
download | meta-openembedded-0e18a0cea962a187cffcca248b1685924742afd4.tar.gz |
mariadb: Upgrade to 10.11.7
As the change [1] introduced in 10.11.7, there comes below configure failure:
| -- Performing Test HAVE_SYSTEM_LIBFMT
| CMake Error: try_run() invoked in cross-compiling mode, please set the following cache variables appropriately:
| HAVE_SYSTEM_LIBFMT_EXITCODE (advanced)
| For details see /build/tmp-glibc/work/core2-64-wrs-linux/mariadb/10.11.7/build/TryRunResults.cmake
| -- Performing Test HAVE_SYSTEM_LIBFMT - Failed
[snip]
Considering [1] is mainly used to test fmt 10.0.0 failure and we use libfmt
10.2.1 now, so define "-DHAVE_SYSTEM_LIBFMT_EXITCODE=0" as workaround [2] to
fix the above configure error.
Remove the problematic assert lines to fix the below build failure on 32bit
arm as the next 10.11 release will bring the assert back in a way that works
on 32-bit arm [3].
In file included from TOPDIR/build/tmp/work/cortexa15t2hf-neon-yoe-linux-gnueabi/mariadb/10.11.7/mariadb-10.11.7/tests/mysql_client_test.c:38:
TOPDIR/build/tmp/work/cortexa15t2hf-neon-yoe-linux-gnueabi/mariadb/10.11.7/mariadb-10.11.7/tests/mysql_client_fw.c:1438:3: error: 'compile_time_assert' declared as an array with a negative size
1438 | compile_time_assert(sizeof(MYSQL) == 77*sizeof(void*)+656);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1] https://github.com/MariaDB/server/commit/b5c367cd88e37091ab5f8dab0396c01c97d037e2
[2] https://jira.mariadb.org/browse/MDEV-30694
[3] https://jira.mariadb.org/browse/MDEV-33429
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/mysql')
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb-native_10.11.7.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb-native_10.11.6.bb) | 0 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb.inc | 4 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-the-compile_time_assert-lines.patch | 43 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb_10.11.7.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb_10.11.6.bb) | 0 |
4 files changed, 46 insertions, 1 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb-native_10.11.6.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_10.11.7.bb index 578357b480..578357b480 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb-native_10.11.6.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb-native_10.11.7.bb | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index 25dc15b466..9e6d490cbe 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc | |||
@@ -23,9 +23,10 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ | |||
23 | file://0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch \ | 23 | file://0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch \ |
24 | file://lfs64.patch \ | 24 | file://lfs64.patch \ |
25 | file://0001-Add-missing-includes-cstdint-and-cstdio.patch \ | 25 | file://0001-Add-missing-includes-cstdint-and-cstdio.patch \ |
26 | file://0001-Remove-the-compile_time_assert-lines.patch \ | ||
26 | " | 27 | " |
27 | SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch" | 28 | SRC_URI:append:libc-musl = " file://ppc-remove-glibc-dep.patch" |
28 | SRC_URI[sha256sum] = "1c0163463e98d71f4780741611a40981eee2bc44d392601ca49bbf948d04dd67" | 29 | SRC_URI[sha256sum] = "5239a245ed90517e96396605cd01ccd8f73cd7442d1b3076b6ffe258110e5157" |
29 | 30 | ||
30 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" | 31 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/releases" |
31 | 32 | ||
@@ -96,6 +97,7 @@ EXTRA_OECMAKE = "-DWITH_EMBEDDED_SERVER=ON \ | |||
96 | -DMYSQL_DATADIR:PATH=/var/mysql \ | 97 | -DMYSQL_DATADIR:PATH=/var/mysql \ |
97 | -DCAT_EXECUTABLE=`which cat` \ | 98 | -DCAT_EXECUTABLE=`which cat` \ |
98 | -DSTACK_DIRECTION=1 \ | 99 | -DSTACK_DIRECTION=1 \ |
100 | -DHAVE_SYSTEM_LIBFMT_EXITCODE=0 \ | ||
99 | -DCMAKE_AR:FILEPATH=${AR}" | 101 | -DCMAKE_AR:FILEPATH=${AR}" |
100 | 102 | ||
101 | 103 | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-the-compile_time_assert-lines.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-the-compile_time_assert-lines.patch new file mode 100644 index 0000000000..9a6e28297b --- /dev/null +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-Remove-the-compile_time_assert-lines.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From cc5f1d0759b367265a1a000287e2ec15c31eb518 Mon Sep 17 00:00:00 2001 | ||
2 | From: Mingli Yu <mingli.yu@windriver.com> | ||
3 | Date: Mon, 26 Feb 2024 14:56:02 +0800 | ||
4 | Subject: [PATCH] Remove the compile_time_assert lines | ||
5 | |||
6 | Remove the problematic compile_time_assert lines to fix the below build | ||
7 | failure on 32-bit arm. | ||
8 | In file included from TOPDIR/build/tmp/work/cortexa15t2hf-neon-yoe-linux-gnueabi/mariadb/10.11.7/mariadb-10.11.7/tests/mysql_client_test.c:38: | ||
9 | TOPDIR/build/tmp/work/cortexa15t2hf-neon-yoe-linux-gnueabi/mariadb/10.11.7/mariadb-10.11.7/tests/mysql_client_fw.c:1438:3: error: 'compile_time_assert' declared as an array with a negative size | ||
10 | 1438 | compile_time_assert(sizeof(MYSQL) == 77*sizeof(void*)+656); | ||
11 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
12 | |||
13 | Upstream-Status: Inappropriate [Upstream will bring the asset back | ||
14 | in a new way [1]] | ||
15 | [1] https://jira.mariadb.org/browse/MDEV-33429 | ||
16 | |||
17 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
18 | --- | ||
19 | tests/mysql_client_fw.c | 8 -------- | ||
20 | 1 file changed, 8 deletions(-) | ||
21 | |||
22 | diff --git a/tests/mysql_client_fw.c b/tests/mysql_client_fw.c | ||
23 | index c9e64678..5c0c7ce2 100644 | ||
24 | --- a/tests/mysql_client_fw.c | ||
25 | +++ b/tests/mysql_client_fw.c | ||
26 | @@ -1430,14 +1430,6 @@ int main(int argc, char **argv) | ||
27 | tests_to_run[i]= NULL; | ||
28 | } | ||
29 | |||
30 | -#ifdef _WIN32 | ||
31 | - /* must be the same in C/C and embedded, 1208 on 64bit, 968 on 32bit */ | ||
32 | - compile_time_assert(sizeof(MYSQL) == 60*sizeof(void*)+728); | ||
33 | -#else | ||
34 | - /* must be the same in C/C and embedded, 1272 on 64bit, 964 on 32bit */ | ||
35 | - compile_time_assert(sizeof(MYSQL) == 77*sizeof(void*)+656); | ||
36 | -#endif | ||
37 | - | ||
38 | if (mysql_server_init(embedded_server_arg_count, | ||
39 | embedded_server_args, | ||
40 | (char**) embedded_server_groups)) | ||
41 | -- | ||
42 | 2.25.1 | ||
43 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb_10.11.6.bb b/meta-oe/recipes-dbs/mysql/mariadb_10.11.7.bb index b1d1355e2b..b1d1355e2b 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb_10.11.6.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb_10.11.7.bb | |||