Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573244 - sys-libs/libtermcap-compat should create a /usr/lib/libtermcap.so symlink to the library
Summary: sys-libs/libtermcap-compat should create a /usr/lib/libtermcap.so symlink to ...
Status: RESOLVED DUPLICATE of bug 302613
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-28 20:11 UTC by Patrick McMunn
Modified: 2016-02-02 00:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***