openwrt/package/libs
Charlie Jenkins 558a82c913 ncurses: Install terminfo database again
When pkg-config is not installed on the system and the openwrt
pkg-config has been compiled, the openwrt pkg-config will be invoked to
find the ncurses libraries to link against scripts/configs/mconf for
"make menuconfig". The openwrt pkg-config provides the path
-L/path/to/openwrt/staging_dir/hostpkg/lib, so if the openwrt ncurses
package has been built, the openwrt ncurses library will be what
scripts/configs/mconf gets linked against.

Commit 036016036e62 ("ncurses: Skip terminfo database install on host")
removed the terminfo database because on systems where the host has
pkg-config installed, the database attempted to install at /usr/lib and
would fatally fail on ncurses versions above 6.5. This is fine on
systems with pkg-config since scripts/configs/mconf will get dynamically
linked against the system's ncurses and use the system's terminfo
database. However, on systems where the host does not have pkg-config
installed and the ncurses package has been built and the pkg-config
package has been built, scripts/configs/mconf will get statically linked
against the ncurses package that no longer has a terminfo database,
causing a failure similar to:

$ make menuconfig
ncurses: cannot initialize terminal type ($TERM="xterm-256color"); exiting

To resolve this, pass the staging directory to host ncurses configure
such that the terminfo database will be installed into the correct
location regardless of the system's presence of pkg-config, instead of
skipping the installation.

Fixes: 036016036e62 ("ncurses: Skip terminfo database install on host")
Reported-by: Hannu Nyman <hannu.nyman@iki.fi>
Reported-by: Edoardo Pinci <epinci@outlook.com>
Tested-by: Hannu Nyman <hannu.nyman@iki.fi>
Signed-off-by: Charlie Jenkins <thecharlesjenkins@gmail.com>
2026-11-04 21:27:26 +01:00
..
argp-standalone
…
elfutils elfutils: update to 0.196 2026-09-26 22:12:32 +02:00
gettext-full gettext-full: enable parallel builds again 2026-09-22 18:18:58 +02:00
gmp
…
gnulib-l10n
…
jansson jansson: update to 2.15.1 2026-10-11 09:45:10 +02:00
libbpf libbpf: update to 1.8.0 2026-10-11 09:49:28 +02:00
libbsd
…
libcap
…
libevent2 libevent2: update to 2.1.13 2026-10-11 09:44:22 +02:00
libffi libffi: update to 3.8.0 2026-10-29 11:26:24 +00:00
libiconv-full
…
libjson-c libjson-c: backport userdata cleanup fixes 2026-10-20 12:35:14 +02:00
libmd libmd: update to 1.2.0 2026-06-04 09:59:32 +02:00
libmnl
…
libnetfilter-conntrack libnetfilter-conntrack: update to version 1.1.1 2026-10-13 01:24:32 +02:00
libnfnetlink
…
libnftnl libnftnl: update to version 1.3.2 2026-10-13 01:15:06 +02:00
libnl libnl: add host package 2026-06-10 21:30:40 +02:00
libnl-tiny
…
libpcap libpcap: update to 1.10.7 2026-09-26 21:55:40 +02:00
libselinux package: build mtd-utils, libsepol and libselinux in parallel 2026-09-22 18:18:58 +02:00
libsemanage
…
libsepol package: build mtd-utils, libsepol and libselinux in parallel 2026-09-22 18:18:58 +02:00
libstd-rust tools/sccache: add sccache Rust compiler cache 2026-10-30 12:06:08 +02:00
libtool
…
libtraceevent
…
libtracefs
…
libubox libubox: update to Git HEAD (2026-11-03) 2026-11-04 02:32:34 +01:00
libunistring
…
libunwind
…
libusb libusb: drop libatomic dependency 2026-09-13 20:46:35 +01:00
libxml2 libxml2: cleanup Makefile 2026-10-13 01:00:53 +02:00
mbedtls mbedtls: update to 3.6.7 2026-08-12 02:09:37 +02:00
mpfr
…
musl-fts
…
ncurses ncurses: Install terminfo database again 2026-11-04 21:27:26 +01:00
nettle
…
openssl openssl: build the riscv64 assembly 2026-10-11 20:55:50 +02:00
pcre2 pcre2: enable JIT on riscv64 and loongarch64 2026-10-04 11:39:40 +02:00
popt
…
readline
…
sysfsutils
…
toolchain
…
uclient uclient: update to Git HEAD (2026-06-07) 2026-06-09 00:57:32 +02:00
udebug udebug: update to Git HEAD (2026-09-25) 2026-09-29 17:29:25 +02:00
ustream-ssl
…
wolfssl wolfssl: update to 5.9.4 2026-10-08 02:12:17 +02:00
xcrypt
…
zlib zlib: do not build POWER8 code on 32-bit PowerPC 2026-10-06 10:39:05 +01:00