]> code.ossystems Code Review - openembedded-core.git/commit
mc: fix build if ncurses have been configured without wide characters
authorChristian Eggers <ceggers@arri.de>
Wed, 16 Feb 2022 11:14:30 +0000 (12:14 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 25 Feb 2022 03:03:51 +0000 (11:03 +0800)
commit1d9dbc540a23a77f6ddfbdf34a81a639f2ff82f5
tree3c178049e17ed6923c4511d5f1909801b7fab622
parent1233bc8cb88b5722e97dd19a06b7e7737f1263bd
mc: fix build if ncurses have been configured without wide characters

Some distros like poky-tiny set ENABLE_WIDEC=false, which disables wide
character support for ncurses. The new patch fixes the build of mc for
this case.

Since 9000f8033662, NCURSES_WIDECHAR is set explicitly to 1 for musl.
This doesn't work for ENABLE_WIDEC==false. In this case,
NCURSES_WIDECHAR must be set explicitly to 0, as curses.h does not
record whether the ncurses library has actually been built with or
without wide characters.

Fixes: 9000f8033662 ("mc: upgrade 4.8.25 -> 4.8.26")
Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-extended/mc/files/0001-Ticket-4200-fix-FTBFS-with-ncurses-build-with-disabl.patch [new file with mode: 0644]
meta/recipes-extended/mc/mc_4.8.26.bb