]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
support/kconfig: ppply upstream nconfig ncurses/ncursesw fix
authorGuillermo A. Amaral <g@maral.me>
Sun, 14 Jan 2018 17:28:07 +0000 (09:28 -0800)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 15 Jan 2018 20:35:38 +0000 (21:35 +0100)
commit8aa4ee2b02abe2a04b15ee3ef53887ade9a4afc4
tree9d4b37ad5a9c3c0db7c17cbba7ed242863f767fa
parent0f75ed80a21c83098a59400087d37f64fe93b565
support/kconfig: ppply upstream nconfig ncurses/ncursesw fix

Buildroot's "make nconfig" command stopped working a while ago on
Gentoo systems. Running the command would result in a crash.

The issue is caused by lxdialog's cflags which are also used to build
nconfig; It would detect *ncursesw* and turn on WIDECHAR support --
but the Makefile would still link to plain *ncurses* while building
nconfig (which was built without WIDECHAR support).

This would cause a crash after using *wattrset* on a WINDOW instance.
WIDECHAR *wattrset* would try to set the _color member in the WINDOW
struct which does not exist in the NON-WIDECHAR ncurses instance. It
would end up clobbering data outside the struct (usually _line entries).

An upstream patch fixes the issue, so we're applying it to Buildroot's
kconfig.

Signed-off-by: Guillermo A. Amaral <g@maral.me>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/kconfig/Makefile
support/kconfig/patches/18-kconfig-nconfig-fix-multi-byte-UTF-handling.patch [new file with mode: 0644]
support/kconfig/patches/series