From e9ce1a8d832597518aa704b76f6af08eb09db125 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Mon, 11 Oct 2021 02:07:14 +0200 Subject: [PATCH] Ports: Add compatibility symlinks to ncurses Some applications search for the external version of libtic and libtinfo, which are no longer present after 91ad7754fe156a6831eabdc49d1400e230b36b96. Having a symlink fixes that, since libncurses exports the necessary functions if they aren't available as a seperate library. --- Ports/ncurses/package.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Ports/ncurses/package.sh b/Ports/ncurses/package.sh index c95b669745..49f5cff7f6 100755 --- a/Ports/ncurses/package.sh +++ b/Ports/ncurses/package.sh @@ -17,3 +17,9 @@ auth_type="sha256" pre_configure() { export CPPFLAGS="-P" } + +post_install() { + ln -sv libncurses.so "${SERENITY_INSTALL_ROOT}/usr/local/lib/libcurses.so" + ln -sv libncurses.so "${SERENITY_INSTALL_ROOT}/usr/local/lib/libtic.so" + ln -sv libncurses.so "${SERENITY_INSTALL_ROOT}/usr/local/lib/libtinfo.so" +}