From 4bf27608a77143650fa94994363b444d57db7842 Mon Sep 17 00:00:00 2001 From: Thomas Perale Date: Fri, 7 Feb 2025 22:53:41 +0100 Subject: [PATCH] package/lynis: add wchar dependency Since the introduction of the package lynis in 48bce6ad8f autobuild failure for the gzip package started appearing on configuration without wchar support with the following error message: vasnprintf.c:355:38: warning: implicit declaration of function 'wctomb' [-Wimplicit-function-declaration] 355 | # define local_wcrtomb(S, WC, PS) wctomb ((S), (WC)) | ^~~~~~ This error happens when building gzip without BR2_USE_WCHAR dependency. The gzip package already depends on BR2_USE_WCHAR, this patch also apply this dependency to the lynis package. Fixes: https://autobuild.buildroot.org/results/fbf/fbf31c8c09496cd3fe02e8ed55939dad5c1cbaec https://autobuild.buildroot.org/results/560/56083310acedba31dccc1f6594f814347bf21caf https://autobuild.buildroot.org/results/1d9/1d97e3f0c626421fdae45e794f02c560d1b9080c Signed-off-by: Thomas Perale Signed-off-by: Julien Olivain --- package/lynis/Config.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/lynis/Config.in b/package/lynis/Config.in index 2757e86a2d..e97cb0bf91 100644 --- a/package/lynis/Config.in +++ b/package/lynis/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_LYNIS bool "lynis" + depends on BR2_USE_WCHAR # gzip select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS select BR2_PACKAGE_GZIP # runtime (zgrep /proc/config.gz) help