From 5ce1d6f01736cf8c41b7a191e2e35b7f9efb50b4 Mon Sep 17 00:00:00 2001 From: Thomas Perale Date: Mon, 11 Aug 2025 22:59:38 +0200 Subject: [PATCH] package/mariadb: fix openssl RMD160 requirement On the autobuilder the mariadb package fails to build when the BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 variable is not set. See the following autobuilder error: ``` /workdir/instance-0/output-1/build/mariadb-10.11.11/libmariadb/libmariadb/secure/openssl_crypt.c: In function 'ma_hash_get_algorithm': /workdir/instance-0/output-1/build/mariadb-10.11.11/libmariadb/libmariadb/secure/openssl_crypt.c:40:12: error: implicit declaration of function 'EVP_ripemd160'; did you mean 'LN_ripemd160'? [-Wimplicit-function-declaration] 40 | return EVP_ripemd160(); | ^~~~~~~~~~~~~ | LN_ripemd160 /workdir/instance-0/output-1/build/mariadb-10.11.11/libmariadb/libmariadb/secure/openssl_crypt.c:40:12: error: returning 'int' from a function with return type 'const EVP_MD *' {aka 'const struct evp_md_st *'} makes pointer from integer without a cast [-Wint-conversion] 40 | return EVP_ripemd160(); | ^~~~~~~~~~~~~~~ ``` This error can be reproduced with the following config: ``` cat <.config BR2_arm=y BR2_cortex_a7=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_PACKAGE_LIBOPENSSL=y # BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 is not set BR2_PACKAGE_MARIADB=y EOF make olddefconfig make mariadb ``` This patch adds a requirement to the RMD160 crypto for the MariaDB package. Fixes: https://autobuild.buildroot.org/results/f2b/f2b749cb7019856c5434c27987e8bfb2dc179cda Signed-off-by: Thomas Perale Signed-off-by: Peter Korsgaard --- package/mariadb/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/mariadb/Config.in b/package/mariadb/Config.in index 693b7ce925..503f884c62 100644 --- a/package/mariadb/Config.in +++ b/package/mariadb/Config.in @@ -12,6 +12,7 @@ config BR2_PACKAGE_MARIADB select BR2_PACKAGE_NCURSES select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL + select BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 if BR2_PACKAGE_LIBOPENSSL select BR2_PACKAGE_PCRE2 help MariaDB is one of the most popular database servers in the