mariadb: Fix configure
PATCH 1/1 mariadb: Fix configure
Assume recent CMake upgrade made this pop up.
Signed-off-by Andreas Müller <[email protected]>
--- meta-oe/recipes-dbs/mysql/mariadb.inc | 1 + ...onfigure-by-closing-IF-ELSE-properly.patch | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 meta-oe/recipes-dbs/mysql/mariadb/0002-Fix-configure-by-closing-IF-ELSE-properly.patch
meta-oe/recipes-dbs/mysql/mariadb.inc +1 -0
@@ -22,6 +22,7 @@ SRC_URI = "https://downloads.mariadb.org/interstitial/${BP}/source/${BP}.tar.gz file://0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch \ file://0001-aio_linux-Check-if-syscall-exists-before-using-it.patch \ file://sys_futex.patch \ + file://0002-Fix-configure-by-closing-IF-ELSE-properly.patch \ " SRC_URI_append_libc-musl = " file://ppc-remove-glibc-dep.patch"
meta-oe/recipes-dbs/mysql/mariadb/0002-Fix-configure-by-closing-IF-ELSE-properly.patch new file +35 -0
@@ -0,0 +1,35 @@ +From fdd08a8774265618668c7f24697e138587c47a16 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]> +Date: Mon, 10 May 2021 13:35:54 +0200 +Subject: [PATCH] Fix configure by closing IF ELSE properly +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes: +| CMake Error at libmariadb/cmake/ConnectorName.cmake:30 (ENDMACRO): +| Flow control statements are not properly nested. + +Upstream-Status: Pending + +Signed-off-by: Andreas Müller <[email protected]> +--- + libmariadb/cmake/ConnectorName.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libmariadb/cmake/ConnectorName.cmake b/libmariadb/cmake/ConnectorName.cmake +index b7bbbad..357b8ac 100644 +--- a/libmariadb/cmake/ConnectorName.cmake ++++ b/libmariadb/cmake/ConnectorName.cmake +@@ -22,7 +22,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows") + SET(MACHINE_NAME "x64") + ELSE() + SET(MACHINE_NAME "32") +- END() ++ ENDIF() + ENDIF() + + SET(product_name "mysql-connector-c-${CPACK_PACKAGE_VERSION}-${PLATFORM_NAME}${CONCAT_SIGN}${MACHINE_NAME}") +-- +2.30.2 +
Signature · 1 line
2.30.2
Andreas
Yes this is cmake 3.20 upgrade in oe-core which brings this to fore.
I think its addressed with mariadb upgrade I have sent, however I will still apply this patch and rebase upgrade on it, so someone can backport it if needed. We do have native variant which is sensitive to cmake on host.
Quoted 67 lines · Andreas Müller
Assume recent CMake upgrade made this pop up.
Signed-off-by Andreas Müller <[email protected]>--- meta-oe/recipes-dbs/mysql/mariadb.inc | 1 + ...onfigure-by-closing-IF-ELSE-properly.patch | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+)create mode 100644
meta-oe/recipes-dbs/mysql/mariadb/0002-Fix-configure-by-closing-IF-ELSE-properly.patchmeta-oe/recipes-dbs/mysql/mariadb.inc +1
-0@@ -22,6 +22,7 @@ SRC_URI = "https://downloads.mariadb.org/interstitial/${BP}/source/${BP}.tar.gz file://0001-innobase-Define-__NR_futex-if-it-does-not-exist.patch \ file://0001-aio_linux-Check-if-syscall-exists-before-using-it.patch \ file://sys_futex.patch \ + file://0002-Fix-configure-by-closing-IF-ELSE-properly.patch \ " SRC_URI_append_libc-musl = " file://ppc-remove-glibc-dep.patch"meta-oe/recipes-dbs/mysql/mariadb/0002-Fix-configure-by-closing-IF-ELSE-properly.patch new file +35
-0@@ -0,0 +1,35 @@ +From fdd08a8774265618668c7f24697e138587c47a16 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]> +Date: Mon, 10 May 2021 13:35:54 +0200 +Subject: [PATCH] Fix configure by closing IF ELSE properly +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes: +| CMake Error at libmariadb/cmake/ConnectorName.cmake:30 (ENDMACRO): +| Flow control statements are not properly nested. + +Upstream-Status: Pending + +Signed-off-by: Andreas Müller <[email protected]> +--- + libmariadb/cmake/ConnectorName.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libmariadb/cmake/ConnectorName.cmake b/libmariadb/cmake/ConnectorName.cmake +index b7bbbad..357b8ac 100644 +--- a/libmariadb/cmake/ConnectorName.cmake ++++ b/libmariadb/cmake/ConnectorName.cmake +@@ -22,7 +22,7 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Windows") + SET(MACHINE_NAME "x64") + ELSE() + SET(MACHINE_NAME "32") +- END() ++ ENDIF() + ENDIF() + + SET(product_name "mysql-connector-c-${CPACK_PACKAGE_VERSION}-${PLATFORM_NAME}${CONCAT_SIGN}${MACHINE_NAME}") +-- +2.30.2 +