Skip to content
Snippets Groups Projects
Commit 2cf24c79 authored by Sertonix's avatar Sertonix Committed by Natanael Copa
Browse files

main/ncurses: fix linking with GHC

GHC doesn't seem to be able to parse `INPUT()` correctly. Using symlinks
seems like a more robust approach.

Fixes #16577
parent dca1b076
No related branches found
No related tags found
1 merge request!74796main/ncurses: fix linking with GHC
Pipeline #272050 skipped
......@@ -2,7 +2,7 @@
pkgname=ncurses
pkgver=6.5_p20241006
_pkgver=${pkgver/_p/-}
pkgrel=2
pkgrel=3
pkgdesc="Console display library"
url="https://invisible-island.net/ncurses/"
arch="all"
......@@ -111,7 +111,7 @@ package() {
local lib; for lib in ncurses ncurses++ form panel menu; do
ln -s ${lib}w.pc usr/lib/pkgconfig/$lib.pc
ln -s lib${lib}w.a usr/lib/lib$lib.a
echo "INPUT(-l${lib}w)" > usr/lib/lib$lib.so
ln -s lib${lib}w.so usr/lib/lib$lib.so
done
# link curses, tic, tinfo -> ncurses
......@@ -120,7 +120,7 @@ package() {
ln -s libncurses.so usr/lib/lib${lib}.so
ln -s ncurses.pc usr/lib/pkgconfig/${lib}.pc
done
echo 'INPUT(-lncursesw)' > usr/lib/libcursesw.so
ln -s libncursesw.so usr/lib/libcursesw.so
# Install basic terms in /etc/terminfo
local i; for i in $_basic_terms; do
......@@ -138,13 +138,6 @@ package() {
done
}
dev() {
default_dev
# also move symlinks
amove usr/lib/*.so
}
terminfo() {
pkgdesc="$pkgdesc (other terminfo files)"
depends="$pkgname-terminfo-base=$pkgver-r$pkgrel"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment