0009-menuconfig-gcc-failing-saying-ncurses-is-not-found.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From ctxnop@gmail.com Sun Jul 21 12:10:52 2024
  2. From: ctxnop@gmail.com (Nop)
  3. Date: Sun, 21 Jul 2024 14:10:52 +0200
  4. Subject: [PATCH] menuconfig: GCC failing saying ncurses is not found
  5. Newer GCC increased diagnostics levels resulting in considering the
  6. test code to be invalid. The resulting message was misleading, saying
  7. that ncurses was not found, while the check failed for an unrelated
  8. reason which was hidden because GCC stderr was redirected to
  9. /dev/null.
  10. Signed-off-by: ctxnop <ctxnop@gmail.com>
  11. Upstream: http://lists.busybox.net/pipermail/busybox/2024-July/090840.html
  12. [Fiona: rephrased commit message for clarity]
  13. Signed-off-by: Fiona Klute (WIWA) <fiona.klute@gmx.de>
  14. ---
  15. scripts/kconfig/lxdialog/check-lxdialog.sh | 4 ++--
  16. 1 file changed, 2 insertions(+), 2 deletions(-)
  17. diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh
  18. b/scripts/kconfig/lxdialog/check-lxdialog.sh
  19. index 5075ebf2d..c644d1d48 100755
  20. --- a/scripts/kconfig/lxdialog/check-lxdialog.sh
  21. +++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
  22. @@ -45,9 +45,9 @@ trap "rm -f $tmp" 0 1 2 3 15
  23. # Check if we can link to ncurses
  24. check() {
  25. - $cc -x c - -o $tmp 2>/dev/null <<'EOF'
  26. + $cc -x c - -o $tmp <<'EOF'
  27. #include CURSES_LOC
  28. -main() {}
  29. +int main() { return 0; }
  30. EOF
  31. if [ $? != 0 ]; then
  32. echo " *** Unable to find the ncurses libraries or the" 1>&2
  33. --
  34. 2.45.2