Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508404 - app-misc/rlwrap fails to link if ncurses has USE="tinfo"
Summary: app-misc/rlwrap fails to link if ncurses has USE="tinfo"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tinfo
  Show dependency tree
 
Reported: 2014-04-22 13:47 UTC by Thomas Kahle (RETIRED)
Modified: 2019-10-31 10:43 UTC (History)
1 user (show)

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


Attachments
updated ebuild (rlwrap-0.37.ebuild,821 bytes, text/plain)
2014-05-15 02:28 UTC, Timothy West
Details
patch to add patch to ebuild (rlwrap.patch,128 bytes, patch)
2014-05-15 02:28 UTC, Timothy West
Details | Diff
patch to fix configure.ac (0.37-configure.ac.patch,913 bytes, patch)
2014-05-15 02:30 UTC, Timothy West
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kahle (RETIRED) gentoo-dev 2014-04-22 13:47:36 UTC
if ncurses is built with USE="tinfo" then the terminfo stuff is in a separate library and rlwrap doesn't add it to the link line:

x86_64-pc-linux-gnu-gcc -DDATADIR=\"/usr/share\"  -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed -o rlwrap main.o signals.o readline.o pty.o completion.o term.o ptytty.o utils.o string_utils.o malloc_debug.o filter.o  -lutil  -lreadline 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: term.o: undefined reference to symbol 'tputs'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'tputs' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line


Reproducible: Always
Comment 1 Timothy West 2014-05-15 02:28:10 UTC
Created attachment 376968 [details]
updated ebuild
Comment 2 Timothy West 2014-05-15 02:28:55 UTC
Created attachment 376970 [details, diff]
patch to add patch to ebuild
Comment 3 Timothy West 2014-05-15 02:30:46 UTC
Created attachment 376972 [details, diff]
patch to fix configure.ac

Upstream fixed this for 0.41, relavent commit:
https://github.com/hanslub42/rlwrap/commit/3806f22daad79df50e040ce2b61850e85b5e1f40
Comment 4 Chema Alonso Josa (RETIRED) gentoo-dev 2015-08-28 16:57:00 UTC
Yes, this seem also fixed in current version of rlwrap (0.42).

Thanks all. Closing bug.