package/collectd: fix wchar dependency of mariadb

Fmt depends on BR2_USE_WCHAR since its introduction in 2017 by buildroot
commit 81fe75c855.

Buildroot commit 821f9dee81 added fmt as
dependency to mariadb in July 2023, including the wchar dependency.

Buildroot commit 8708f3a23a from March
2024, which replaced the mysql virtual package with mariadb, causes
build errors due to the wchar dependency not being propagated.

Fixes:
https://autobuild.buildroot.net/results/ef2/ef201a7d04330463ce46b93e6d5702dfefc6ad6c/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Bernd Kuhls
2026-05-30 12:27:49 +02:00
committed by Peter Korsgaard
parent e8c54ffb3d
commit 58b9eb270e

View File

@@ -393,15 +393,17 @@ config BR2_PACKAGE_COLLECTD_MYSQL
bool "mysql"
depends on BR2_INSTALL_LIBSTDCPP # mysql
depends on BR2_USE_MMU # mysql
depends on BR2_USE_WCHAR # fmt -> mariadb
depends on BR2_TOOLCHAIN_HAS_THREADS # mysql
select BR2_PACKAGE_MARIADB
help
Connects to a MySQL database and issues a "show status"
command.
comment "mysql needs a toolchain w/ C++, threads"
comment "mysql needs a toolchain w/ C++, threads, wchar"
depends on BR2_USE_MMU
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
|| !BR2_USE_WCHAR
config BR2_PACKAGE_COLLECTD_NETLINK
bool "netlink"