Skip to contentSkip to conversation

package/collectd: fix wchar dependency of mariadb

PATCH In review Bernd Kuhls 2 participants 2 messages May 30

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 package/collectd: fix wchar dependency of mariadb

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

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

Buildroot commit 8708f3a23a7e28fdb04fc57406e13e6b7ff4a337 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/

---
v3: Gitlab pipeline passed:
https://gitlab.com/bkuhls/buildroot/-/commits/ea3608057a7d9d9381810aef18b83cab4a7a7157

with the exception of bootlin-riscv32-glibc and bootlin-sparc-uclibc where build errors in mariadb occur that are unrelated to collectd.

v2: updated patch description, git-formatted patch and pointed source
URL to versioned git tree

 package/collectd/Config.in | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
package/collectd/Config.in +4 -2
index 127bcace6d..d1ed36ef5e 100644
@@ -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"
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Bernd" == Bernd Kuhls <[email protected]> writes:

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

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

Buildroot commit 8708f3a23a7e28fdb04fc57406e13e6b7ff4a337 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/

---
v3: Gitlab pipeline passed:
https://gitlab.com/bkuhls/buildroot/-/commits/ea3608057a7d9d9381810aef18b83cab4a7a7157

Quoted 5 lines

with the exception of bootlin-riscv32-glibc and bootlin-sparc-uclibc where build errors in mariadb occur that are unrelated to collectd.

v2: updated patch description, git-formatted patch and pointed source
URL to versioned git tree

Committed, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot