sabotage-linux / netbsd-curses

libcurses and dependencies taken from netbsd and brought into a portable shape (at least to musl or glibc)
Other
147 stars 14 forks source link

Add libtinfo.so symlink #42

Closed firasuke closed 6 months ago

firasuke commented 4 years ago

Some packages (e.g. util-linux) expect libtinfo.so to be available.

rofl0r commented 4 years ago

i'm not sure whether this is a good idea, according to https://bugs.launchpad.net/ubuntu/+source/ncurses/+bug/259139 tomas dickey (author of ncurses) suggests that packages should be fixed to link against lib(n)curses instead.

sabotage compiles util-linux like this: LDFLAGS="-lcurses -lterminfo" ./configure ....

if we add a symlink to libtinfo.so we should first carefully evaluate whether our libterminfo.so supplies all the same symbols that libtinfo users expect.

for reference, here's a list of symbols created on a ubuntu machine via readelf -a /lib/x86_64-linux-gnu/libtinfo.so.5.9 | grep GLOBAL | grep -v _nc_ | grep -v UND

http://ix.io/2rB1