]> code.ossystems Code Review - openembedded-core.git/commit
mc: fix build if ncurses have been configured without wide characters
authorChristian Eggers <ceggers@arri.de>
Mon, 14 Feb 2022 10:18:14 +0000 (11:18 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 16 Feb 2022 09:40:40 +0000 (09:40 +0000)
commitb176d86f5292c0e8cca2500be03ed392d59cedb3
treedc8ac81d19b0f65e62e4ad89033d203aa8ff8a76
parent684b656c5e6bf8cb10467c8d0fff1a9eeaf4256f
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>
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.27.bb