--- /usr/portage/sys-apps/duc/files/duc-1.4.1-tinfo.patch 2018-02-25 17:08:48.000000000 +0100 +++ /var/db/repos/localrepo/sys-apps/duc/files/duc-1.4.1-tinfo.patch 2020-06-23 21:32:27.222876122 +0000 @@ -1,6 +1,6 @@ --- a/configure.ac +++ b/configure.ac -@@ -138,8 +138,8 @@ +@@ -138,14 +138,24 @@ if test "${enable_ui}" = "yes"; then AC_DEFINE([ENABLE_UI], [1], [Enable ui]) @@ -11,13 +11,19 @@ AC_MSG_ERROR([ The ncurses library was not found, which is needed for ui support. Either install the ncurses development libraries, or compile without ui support (--disable-ui) -@@ -148,6 +148,9 @@ + ]) + ]) ]) ++ ++ if test "x${ac_cv_lib_ncursesw_touchwin}" = "xyes"; then ++ AC_SEARCH_LIBS([tputs], [tinfow],, [ ++ AC_MSG_ERROR([No library was found providing tputs]) ++ ]) ++ else ++ AC_SEARCH_LIBS([tputs], [tinfo],, [ ++ AC_MSG_ERROR([No library was found providing tputs]) ++ ]) ++ fi fi -+AC_SEARCH_LIBS([tputs], [tinfo],, [ -+ AC_MSG_ERROR([No library was found providing tputs]) -+]) - if test "${enable_x11}" = "yes"; then - test "${enable_cairo}" != "yes" && AC_MSG_ERROR([cairo must be enabled for x11])