link to libtinfo.so.5

This commit is contained in:
Jacob Heider 2024-02-09 16:10:34 -05:00 committed by Jacob Heider
parent b674a5c238
commit f28ed39c3f

View file

@ -6,58 +6,61 @@ versions:
github: mirror/ncurses/tags github: mirror/ncurses/tags
strip: /v/ strip: /v/
build: build:
dependencies: dependencies:
freedesktop.org/pkg-config: ^0.29 freedesktop.org/pkg-config: ^0.29
script: script:
#FIXME because our build infra is recursive
- |
if [ -d {{prefix}}/include ]; then
rm -rf {{prefix}}/include
fi
#FIXME because our build infra is recursive - |
- | mkdir -p $PCDIR
if [ -d {{prefix}}/include ]; then ./configure $ARGS
rm -rf {{prefix}}/include make --jobs {{ hw.concurrency }} install
fi
- | # fix up symlinks
mkdir -p $PCDIR - run: |
./configure $ARGS for lib in form menu ncurses panel curses++; do
make --jobs {{ hw.concurrency }} install for ii in $(find . -name lib${lib}w\*); do
# hopefully no new w's will be introduced
# fix up symlinks ln -sf $ii $(echo $ii | tr -d w)
- run: | done
for lib in form menu ncurses panel curses++; do
for ii in $(find . -name lib${lib}w\*); do
# hopefully no new w's will be introduced
ln -sf $ii $(echo $ii | tr -d w)
done done
done working-directory: ${{prefix}}/lib
working-directory: ${{prefix}}/lib
# things often expect either no namespace or namespace # things often expect either no namespace or namespace
- run: | - run: |
mv ncursesw/* . mv ncursesw/* .
rmdir ncursesw rmdir ncursesw
ln -sf . ncursesw ln -sf . ncursesw
working-directory: ${{prefix}}/include working-directory: ${{prefix}}/include
# fix hardcoded paths # fix hardcoded paths
- | - |
sed -i.bak 's|{{prefix}}|\${pcfiledir}/../..|g' {{prefix}}/lib/pkgconfig/*.pc sed -i.bak 's|{{prefix}}|\${pcfiledir}/../..|g' {{prefix}}/lib/pkgconfig/*.pc
rm {{prefix}}/lib/pkgconfig/*.bak rm {{prefix}}/lib/pkgconfig/*.bak
sed -i.bak 's|{{prefix}}|\$(dirname "\$0")/..|g' {{prefix}}/bin/ncursesw{{version.major}}-config sed -i.bak 's|{{prefix}}|\$(dirname "\$0")/..|g' {{prefix}}/bin/ncursesw{{version.major}}-config
rm {{prefix}}/bin/ncursesw{{version.major}}-config.bak rm {{prefix}}/bin/ncursesw{{version.major}}-config.bak
# libtermcap and libtinfo are provided by ncurses and have the # libtermcap and libtinfo are provided by ncurses and have the
# same api. Help some older packages to find these dependencies. # same api. Help some older packages to find these dependencies.
# https://bugs.centos.org/view.php?id=11423 # https://bugs.centos.org/view.php?id=11423
# https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/259139 # https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/259139
- run: | - run: |
ln -s libncurses.so libtermcap.so ln -s libncurses.so libtermcap.so
ln -s libncursesw.so libtinfow.so ln -s libncursesw.so libtinfow.so
ln -s libncurses.so libtinfo.so ln -s libncurses.so libtinfo.so
working-directory: ${{prefix}}/lib # ghc needs to find libtinfo.so.5, which is built from v6 on ubuntu 18.04...
if: linux ln -s libncurses.so libtinfo.so.5
ln -s libncurses.so libtinfo.so.{{version.major}}
ln -s libncursesw.so libtinfow.so.5
ln -s libncursesw.so libtinfow.so.{{version.major}}
working-directory: ${{prefix}}/lib
if: linux
env: env:
PCDIR: ${{prefix}}/lib/pkgconfig PCDIR: ${{prefix}}/lib/pkgconfig
@ -82,14 +85,14 @@ test:
github.com/tmux/tmux: ^3 github.com/tmux/tmux: ^3
freedesktop.org/pkg-config: ^0.29 freedesktop.org/pkg-config: ^0.29
script: script:
- | - |
ncursesw6-config --version | grep {{version.marketing}} ncursesw6-config --version | grep {{version.marketing}}
ncursesw6-config --terminfo-dirs | grep '{{prefix}}' ncursesw6-config --terminfo-dirs | grep '{{prefix}}'
pkg-config --modversion ncursesw | grep {{version.marketing}} pkg-config --modversion ncursesw | grep {{version.marketing}}
pkg-config --libs ncursesw | grep '{{prefix}}' pkg-config --libs ncursesw | grep '{{prefix}}'
# https://github.com/pkgxdev/pantry/issues/1658 # https://github.com/pkgxdev/pantry/issues/1658
- tmux -c ls - tmux -c ls
provides: provides:
- bin/captoinfo - bin/captoinfo