From f2919c5dcf60a67bc741a403a4cb2eb67c6b8406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Szymanski?= Date: Fri, 13 Nov 2026 16:12:20 +0100 Subject: [PATCH] package/vim: prevent host-vim from using host's libncurses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When configuring host-vim, the configure script looks for ncurses without wide character support because of the "--with-tlib=ncurses" option passed. However, host-ncurses is built with wide character support (enabled by default on ncurses 6) so host-vim's configure script fails to find ncurses and falls back on the host ncurses library. It works fine one some host (i.e Buildroot docker image) but fails one others (i.e Gentoo) with the following error: checking for tgetent()... configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. On Linux that would be the libncurses-dev package. Or specify the name of the library with --with-tlib. On the Buildroot docker image, libncurses.so is a linker script that contains "INPUT(libncurses.so.6 -ltinfo)". It automatically links libtinfo (which contains tgetent). On the Gentoo host, libtinfo is not automatically linked hence the failure. Fix this by passing "--with-tlib=ncursesw" option to the host-vim configure script so it finds and uses libncurses built by Buildroot. Signed-off-by: Sébastien Szymanski Signed-off-by: Peter Korsgaard --- package/vim/vim.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/vim/vim.mk b/package/vim/vim.mk index 3b58ad47a5..623b8c18e1 100644 --- a/package/vim/vim.mk +++ b/package/vim/vim.mk @@ -75,7 +75,7 @@ VIM_POST_INSTALL_TARGET_HOOKS += VIM_INSTALL_VI_SYMLINK HOST_VIM_DEPENDENCIES = host-ncurses HOST_VIM_CONF_OPTS = \ - --with-tlib=ncurses \ + --with-tlib=ncursesw \ --enable-gui=no \ --without-x \ --disable-acl \