Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 573244

Summary: sys-libs/libtermcap-compat should create a /usr/lib/libtermcap.so symlink to the library
Product: Gentoo Linux Reporter: Patrick McMunn <doctorwhoguy>
Component: [OLD] LibraryAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED DUPLICATE    
Severity: normal CC: floppym
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=64212
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick McMunn 2016-01-28 20:11:35 UTC
Ebuild should create a symlink named /usr/lib/libtermcap.so It currently does not, so builds that link with -ltermcap will not find the library. Simply adding

dosym libtermcap.so.${PV} /usr/$(get_libdir)/libtermcap.so

to the ebuild should be all that is needed.

Reproducible: Always

Steps to Reproduce:
1. Emerge libtermcap-compat
2. Try building a program (such as gcomm) that links with -ltermcap, and it fails.
3. Manually create a symlink to /usr/lib/libtermcap.so then try again, and it succeeds.
Comment 1 Mike Gilbert gentoo-dev 2016-01-28 20:32:33 UTC
I think this package is meant for compatibility with pre-built binaries; source-based programs can be patched to work with terminfo.
Comment 2 SpanKY gentoo-dev 2016-01-28 21:41:18 UTC
what Mike said
Comment 3 Adam Feldman gentoo-dev 2016-02-02 00:53:32 UTC
Just tidying up a little for the sake of clarity.  Marking as dupe of old and adding reference to a comment on a related bug that shows how to tackle this sort of issue. The solution in most cases is to link with "-lncurses" instead of "-ltermcap" as a drop-in replacement.

*** This bug has been marked as a duplicate of bug 302613 ***