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

Bug 539316

Summary: dev-scheme/guile-1.8.8-r1 with ncurses[tinfo] - checking for tgoto in -lncurses... no
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: [OLD] DevelopmentAssignee: Scheme Project <scheme>
Status: RESOLVED FIXED    
Severity: normal CC: rhill
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: files/guile-1.8.8-tinfo.patch

Description Jeroen Roovers (RETIRED) gentoo-dev 2015-02-08 09:04:33 UTC
Created attachment 395868 [details, diff]
files/guile-1.8.8-tinfo.patch

checking for tgoto in -lncurses... no
checking for tgoto in -lcurses... no
checking for tgoto in -ltermcap... no
checking for tgoto in -lterminfo... no
checking for tgoto in -ltermlib... no

It's in -ltinfo!
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-08 09:09:11 UTC
Additionally, the ebuild should depend on sys-libs/ncurses to begin with.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-08 10:18:10 UTC
Oh, that's odd. It checks for tgoto and it links against -l{termcap}, but with --as-needed it seems it doesn't actually use it (tgoto or anything else that the termcap library defines).
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-02-08 10:21:06 UTC
Comment on attachment 395868 [details, diff]
files/guile-1.8.8-tinfo.patch

Perhaps a better patch would remove the configure check and subsequent linkage (basically all the lines in this patch after AC_SUBST(EXTRA_DEFS)), since without --as-needed you'd end up with an unneeded library linked in.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2015-09-19 04:50:56 UTC
I'm not seeing the problem here.

checking for tgoto in -lncurses... no
checking for tgoto in -lcurses... no
checking for tgoto in -ltermcap... no
checking for tgoto in -lterminfo... no
checking for tgoto in -ltermlib... no
checking for readline in -lreadline... yes

caribou ~ # ldd /usr/lib/libguilereadline-v-17.so | grep tinfo
	libtinfo.so.6 => /usr/lib64/libtinfo.so.6 (0x00007f0536dff000)

Patch is harmless though.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2015-10-12 23:27:42 UTC
Fixed in 1.8.8-r2.