File pinentry-0.8.1-tinfo.patch of Package pinentry
Index: pinentry-0.8.1/m4/curses.m4
===================================================================
--- pinentry-0.8.1.orig/m4/curses.m4	2011-11-22 15:56:56.000000000 +0100
+++ pinentry-0.8.1/m4/curses.m4	2011-11-22 16:33:06.707257991 +0100
@@ -28,7 +28,7 @@
   AC_ARG_ENABLE(ncurses,    [  --disable-ncurses       don't prefer -lncurses over -lcurses],
               , enable_ncurses=yes)
   if test "$enable_ncurses" = yes; then
-    AC_CHECK_LIB(ncursesw, initscr, LIBNCURSES="-lncursesw")
+    AC_CHECK_LIB(ncursesw, initscr, LIBNCURSES="-lncursesw -ltinfo")
     if test "$LIBNCURSES"; then
       # Use ncurses header files instead of the ordinary ones, if possible;
       # is there a better way of doing this, that avoids looking in specific