From 4ebd192104a698eb4f627f8774e65f6949ea1d2a Mon Sep 17 00:00:00 2001 From: Romain Naour Date: Sat, 13 Sep 2025 18:34:58 +0200 Subject: [PATCH] package/mariadb: workaround cmake < 3.30 check TRY_RUN issue The last mariadb version bump [1] added -DHAVE_SYSTEM_LIBFMT_EXITCODE=0 to workaround cross-compiling issue during libfmt cmake check. But it actually requies at least cmake >= 3.30 to work. Indeed, our docker image used by Gitlab-CI uses cmake 3.25.1 and segfault while testing for libfmt. -- Performing Test HAVE_SYSTEM_LIBFMT /bin/bash: line 1: 163369 Segmentation fault $ cmake --version cmake version 3.25.1 Using the same TestPerlDBDmysql configuration locally with cmake 3.30.8 installed build fine. Looking at cmake cmTryRunCommand.cxx history from 3.30.x show that several fixes about cross-compiling isses were applied to cmake 3.26.x [2] probably solving the issue. Requires BR2_HOST_CMAKE_AT_LEAST_3_30 for now, since only cmake 3.30.8 installed locally was tested. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/11271124486 (TestPerlDBDmysql) https://gitlab.com/buildroot.org/buildroot/-/jobs/11271124439 (TestMariaDB) [1] 6cd8f95346 ("package/mariadb: bump version to 10.11.11") [2] https://gitlab.kitware.com/cmake/cmake/-/commits/v3.30.9/Source/cmTryRunCommand.cxx?ref_type=tags Signed-off-by: Romain Naour Signed-off-by: Julien Olivain (cherry picked from commit de9c0f971c4798ea2d87cfcba17dad9519f209e9) Signed-off-by: Thomas Perale --- package/mariadb/Config.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/mariadb/Config.in b/package/mariadb/Config.in index 503f884c62..b4c276a72f 100644 --- a/package/mariadb/Config.in +++ b/package/mariadb/Config.in @@ -14,6 +14,8 @@ config BR2_PACKAGE_MARIADB select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL select BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 if BR2_PACKAGE_LIBOPENSSL select BR2_PACKAGE_PCRE2 + # HAVE_SYSTEM_LIBFMT cmake < 3.30 check TRY_RUN issue + select BR2_HOST_CMAKE_AT_LEAST_3_30 help MariaDB is one of the most popular database servers in the world. It's made by the original developers of MySQL and