diff options
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb-native_11.4.8.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb-native_11.4.6.bb) | 2 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb.inc | 3 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/0001-aio_linux-Check-if-syscall-exists-before-using-it.patch | 40 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb/0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch | 6 | ||||
-rw-r--r-- | meta-oe/recipes-dbs/mysql/mariadb_11.4.8.bb (renamed from meta-oe/recipes-dbs/mysql/mariadb_11.4.6.bb) | 0 |
5 files changed, 5 insertions, 46 deletions
diff --git a/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.6.bb b/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.8.bb index 578357b480..ff48dcd806 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.6.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb-native_11.4.8.bb | |||
@@ -3,7 +3,7 @@ inherit native | |||
3 | 3 | ||
4 | PROVIDES += "mysql5-native" | 4 | PROVIDES += "mysql5-native" |
5 | DEPENDS = "ncurses-native zlib-native bison-native libpcre2-native \ | 5 | DEPENDS = "ncurses-native zlib-native bison-native libpcre2-native \ |
6 | gnutls-native fmt-native \ | 6 | libxml2-native gnutls-native fmt-native \ |
7 | " | 7 | " |
8 | 8 | ||
9 | RDEPENDS:${PN} = "" | 9 | RDEPENDS:${PN} = "" |
diff --git a/meta-oe/recipes-dbs/mysql/mariadb.inc b/meta-oe/recipes-dbs/mysql/mariadb.inc index 67dd687c02..53a24d14bc 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb.inc +++ b/meta-oe/recipes-dbs/mysql/mariadb.inc | |||
@@ -15,7 +15,6 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ | |||
15 | file://fix-arm-atomic.patch \ | 15 | file://fix-arm-atomic.patch \ |
16 | file://0001-Fix-library-LZ4-lookup.patch \ | 16 | file://0001-Fix-library-LZ4-lookup.patch \ |
17 | file://0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch \ | 17 | file://0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch \ |
18 | file://0001-aio_linux-Check-if-syscall-exists-before-using-it.patch \ | ||
19 | file://ssize_t.patch \ | 18 | file://ssize_t.patch \ |
20 | file://sys_futex.patch \ | 19 | file://sys_futex.patch \ |
21 | file://cross-compiling.patch \ | 20 | file://cross-compiling.patch \ |
@@ -26,7 +25,7 @@ SRC_URI = "https://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ | |||
26 | file://riscv32.patch \ | 25 | file://riscv32.patch \ |
27 | file://0001-Remove-x86-specific-loop-in-my_convert.patch \ | 26 | file://0001-Remove-x86-specific-loop-in-my_convert.patch \ |
28 | " | 27 | " |
29 | SRC_URI[sha256sum] = "1b26c0bb2d025dbfac3b9852d2b7eafda56a171b67ac2e27831ec0414fb7df07" | 28 | SRC_URI[sha256sum] = "52fa4dca2c5f80afc1667d523a27c06176d98532298a6b0c31ed73505f49e15c" |
30 | 29 | ||
31 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/tags" | 30 | UPSTREAM_CHECK_URI = "https://github.com/MariaDB/server/tags" |
32 | 31 | ||
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 deleted file mode 100644 index eddfdaaf77..0000000000 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-aio_linux-Check-if-syscall-exists-before-using-it.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From f9f019049a9bb09471e8303d4510afae07f225c8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 18 Aug 2021 06:49:25 +0000 | ||
4 | Subject: [PATCH] aio_linux: Check if syscall exists before using it | ||
5 | |||
6 | Return -ENOSYS if not implememented, fixes build on arches like RISCV32 | ||
7 | Fixes | ||
8 | tpool/aio_linux.cc:63:20: error: '__NR_io_getevents' was not declared in this scope; did you mean 'io_getevents'? | ||
9 | 63 | int ret= syscall(__NR_io_getevents, reinterpret_cast<long>(ctx), | ||
10 | | ^~~~~~~~~~~~~~~~~ | ||
11 | | io_getevents | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | tpool/aio_linux.cc | 4 ++++ | ||
17 | 1 file changed, 4 insertions(+) | ||
18 | |||
19 | diff --git a/tpool/aio_linux.cc b/tpool/aio_linux.cc | ||
20 | index 507c6b92..a6adf1af 100644 | ||
21 | --- a/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*/ | ||
24 | */ | ||
25 | static int my_getevents(io_context_t ctx, long min_nr, long nr, io_event *ev) | ||
26 | { | ||
27 | +#ifdef __NR_io_getevents | ||
28 | int saved_errno= errno; | ||
29 | int ret= syscall(__NR_io_getevents, reinterpret_cast<long>(ctx), | ||
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) | ||
32 | errno= saved_errno; | ||
33 | } | ||
34 | return ret; | ||
35 | +#else | ||
36 | + return -ENOSYS; | ||
37 | +#endif | ||
38 | } | ||
39 | |||
40 | |||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb/0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch b/meta-oe/recipes-dbs/mysql/mariadb/0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch index 1475bb1a51..7c73699b08 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb/0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch +++ b/meta-oe/recipes-dbs/mysql/mariadb/0001-sql-CMakeLists.txt-fix-gen_lex_hash-not-found.patch | |||
@@ -18,8 +18,8 @@ diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt | |||
18 | index 0195555e..507136cb 100644 | 18 | index 0195555e..507136cb 100644 |
19 | --- a/sql/CMakeLists.txt | 19 | --- a/sql/CMakeLists.txt |
20 | +++ b/sql/CMakeLists.txt | 20 | +++ b/sql/CMakeLists.txt |
21 | @@ -64,11 +64,18 @@ ${CMAKE_BINARY_DIR}/sql | 21 | @@ -63,11 +63,18 @@ |
22 | ${CMAKE_SOURCE_DIR}/tpool | 22 | ${CMAKE_BINARY_DIR}/sql |
23 | ) | 23 | ) |
24 | 24 | ||
25 | -ADD_CUSTOM_COMMAND( | 25 | -ADD_CUSTOM_COMMAND( |
@@ -41,7 +41,7 @@ index 0195555e..507136cb 100644 | |||
41 | 41 | ||
42 | FIND_PACKAGE(BISON 2.4) | 42 | FIND_PACKAGE(BISON 2.4) |
43 | 43 | ||
44 | @@ -405,11 +412,18 @@ IF(NOT CMAKE_CROSSCOMPILING OR DEFINED CMAKE_CROSSCOMPILING_EMULATOR) | 44 | @@ -405,11 +412,18 @@ |
45 | ADD_EXECUTABLE(gen_lex_hash gen_lex_hash.cc) | 45 | ADD_EXECUTABLE(gen_lex_hash gen_lex_hash.cc) |
46 | ENDIF() | 46 | ENDIF() |
47 | 47 | ||
diff --git a/meta-oe/recipes-dbs/mysql/mariadb_11.4.6.bb b/meta-oe/recipes-dbs/mysql/mariadb_11.4.8.bb index b1d1355e2b..b1d1355e2b 100644 --- a/meta-oe/recipes-dbs/mysql/mariadb_11.4.6.bb +++ b/meta-oe/recipes-dbs/mysql/mariadb_11.4.8.bb | |||