[Buildroot] [git commit branch/2025.02.x] package/mariadb: workaround cmake < 3.30 check TRY_RUN issue
Thomas Perale
thomas.perale at mind.be
Thu Sep 18 14:44:40 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=e1615fc4bd10a83cf75c7b0b4f603252c6203413
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2025.02.x
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 <romain.naour at smile.fr>
Signed-off-by: Julien Olivain <ju.o at free.fr>
(cherry picked from commit de9c0f971c4798ea2d87cfcba17dad9519f209e9)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
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
More information about the buildroot
mailing list