Skip to contentSkip to conversation

package/lynis: add wchar dependency

PATCH In review Thomas Perale via buildroot 2 participants 2 messages Feb 7, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 package/lynis/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/lynis/Config.in +1 -0
index 2757e86a2d..e97cb0bf91 100644
@@ -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
Signature · 6 lines
2.39.5

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 12 lines · Thomas Perale via buildroot

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.

Quoted 6 lines

Fixes:
https://autobuild.buildroot.org/results/fbf/fbf31c8c09496cd3fe02e8ed55939dad5c1cbaec
https://autobuild.buildroot.org/results/560/56083310acedba31dccc1f6594f814347bf21caf
https://autobuild.buildroot.org/results/1d9/1d97e3f0c626421fdae45e794f02c560d1b9080c

Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot