From 90ae6ac4ba0cce22ac06409d84445c45035ab55f Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Tue, 7 Jan 2020 00:34:59 +0300 Subject: ncurses: Force non-wide ncurses lib to link against ncursesw (See kiss-repo #131) --- extra/ncurses/build | 12 ++++++++++++ extra/ncurses/version | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/extra/ncurses/build b/extra/ncurses/build index 6798aa43..36ad8513 100755 --- a/extra/ncurses/build +++ b/extra/ncurses/build @@ -16,6 +16,18 @@ make make DESTDIR="$1" install +# Force ncurses to link against wide-character ncurses library. +for lib in ncurses form panel menu; do + rm -f "$1/usr/lib/lib${lib}.so" + printf '%s\n' "INPUT(-l${lib}w)" > "$1/usr/lib/lib${lib}.so" + chmod 755 "$1/usr/lib/lib${lib}.so" + ln -sf "lib${lib}w.a" "$1/usr/lib/lib${lib}.a" +done + +# Some packages look for libcurses instead of libncurses when building. +printf '%s\n' "INPUT(-lncursesw)" > "$1/usr/lib/libcursesw.so" +ln -s libncurses.so "$1/usr/lib/libcurses.so" + # These conflict with busybox's. rm -f "$1/usr/bin/clear" rm -f "$1/usr/bin/reset" diff --git a/extra/ncurses/version b/extra/ncurses/version index 1143f417..64ca26e6 100644 --- a/extra/ncurses/version +++ b/extra/ncurses/version @@ -1 +1 @@ -6.1 1 +6.1 2 -- cgit v1.2.3