diff options
author | Cem Keylan <cem@ckyln.com> | 2020-01-07 00:34:59 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2020-01-07 00:34:59 +0300 |
commit | 90ae6ac4ba0cce22ac06409d84445c45035ab55f (patch) | |
tree | c62bbabf31873b281b872f786261de27c2da150d | |
parent | 1f29587e038b8e457cb877ff24c81b5d1af69bae (diff) | |
download | repository-90ae6ac4ba0cce22ac06409d84445c45035ab55f.tar.gz |
ncurses: Force non-wide ncurses lib to link against ncursesw (See kiss-repo #131)
-rwxr-xr-x | extra/ncurses/build | 12 | ||||
-rw-r--r-- | extra/ncurses/version | 2 |
2 files changed, 13 insertions, 1 deletions
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 |