readline: fix pkgconfig usage
authorRosen Penev <rosenp@gmail.com>
Thu, 4 Jul 2024 19:12:33 +0000 (12:12 -0700)
committerRobert Marko <robimarko@gmail.com>
Mon, 8 Jul 2024 07:44:21 +0000 (09:44 +0200)
commitd7a76fc351f7c33292202dedd4f9ab48b698212a
tree3573f2239691ce7202e3717b0b90313f7b366a88
parent1b141cb3d10ae3bdb3b7cf0c4eb0d957629bc644
readline: fix pkgconfig usage

ncurses is built with wide support enabled, which enables libncursesw.
The problem is, the ncurses build system only supplies ncursesw or
ncurses.pc but not both. The other problem is, the readline build tests
for libncurses before the w variant, making its pc file unusable as
there is no ncurses.pc file to satisfy the Required: ncurses section.

Just override the library.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15864
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/libs/readline/Makefile
package/libs/readline/patches/010-ncursesw-first.patch [new file with mode: 0644]