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!
Additionally, the ebuild should depend on sys-libs/ncurses to begin with.
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 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.
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.
Fixed in 1.8.8-r2.