kumquat-buildroot/support/kconfig/patches
Robert Marko f5a347c1dc kconfig/lxdialog: fix check() with GCC14
GCC14 now treats implicit int types as error so when check() from
check-lxdialog.sh is called to check whether we can link against ncurses
it will fail silently and the help text indicating to install ncurses is
printed.

However, this is not due to missing ncurses but once the stderr redirect
to /dev/null is removed we can see the root cause:
<stdin>:2:1: error: return type defaults to ‘int’ [-Wimplicit-int]

So, in order for menuconfig to work with GCC14 lets just specify the
return type of main() as int.

Npte that the upstream kconfig in the linux kernel source tree no longer
carries or uses the check-lxdialog.sh script since commit 1c5af5cf9308
(kconfig: refactor ncurses package checks for building mconf and nconf),
so there is no commit we can backport to our kconfig copy.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Petr Vorel <petr.vorel@gmail.com>
Tested-by: Petr Vorel <petr.vorel@gmail.com>
[yann.morin.1998@free.fr: add note about upstream kernel]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit a6210d28db)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-05-15 15:18:09 +02:00
..
01-kconfig-kernel-to-buildroot.patch kconfig: Refresh patches 2018-10-30 20:58:54 +01:00
06-br-build-system-integration.patch kconfig: Refresh patches 2018-10-30 20:58:54 +01:00
10-br-build-system.patch
11-use-mktemp-for-lxdialog.patch
12-fix-glade-file-path.patch
14-support-out-of-tree-config.patch kconfig: Refresh patches 2018-10-30 20:58:54 +01:00
16-fix-space-to-de-select-options.patch
17-backport-kecho.patch kconfig: Add missing patch 2018-10-30 20:57:04 +01:00
18-merge-config.sh-create-temporary-files-in-tmp.patch kconfig: Restore missing custom changes + add patches 2018-10-30 20:58:09 +01:00
19-merge_config.sh-add-br2-external-support.patch kconfig: Restore missing custom changes + add patches 2018-10-30 20:58:09 +01:00
20-merge_config.sh-Allow-to-define-config-prefix.patch support/kconfig/merge_config.sh: fix merging buildroot config files 2018-11-24 10:11:11 +01:00
21-Avoid-false-positive-matches-from-comment-lines.patch support/kconfig/merge_config.sh: avoid false positive matches from comment lines 2018-11-24 10:11:15 +01:00
22-kconfig-lxdialog-fix-check-with-GCC14.patch kconfig/lxdialog: fix check() with GCC14 2024-05-15 15:18:09 +02:00
series kconfig/lxdialog: fix check() with GCC14 2024-05-15 15:18:09 +02:00