mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-11-14 16:52:08 -10:00
package/vim: prevent host-vim from using host's libncurses
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 <sebastien.szymanski@armadeus.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
9690acc8f4
commit
f2919c5dcf
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user