diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-misc/mc/files/mc-4.8.13-tinfo.patch | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-misc/mc/files/mc-4.8.13-tinfo.patch')
-rw-r--r-- | app-misc/mc/files/mc-4.8.13-tinfo.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app-misc/mc/files/mc-4.8.13-tinfo.patch b/app-misc/mc/files/mc-4.8.13-tinfo.patch new file mode 100644 index 000000000000..761c103df654 --- /dev/null +++ b/app-misc/mc/files/mc-4.8.13-tinfo.patch @@ -0,0 +1,39 @@ +Gentoo-bug: https://bugs.gentoo.org/527118 +--- a/m4.include/mc-with-screen-ncurses.m4 ++++ b/m4.include/mc-with-screen-ncurses.m4 +@@ -101,6 +101,9 @@ + LIBS= + AC_SEARCH_LIBS([has_colors], [ncurses], [MCLIBS="$MCLIBS $LIBS"], + [AC_MSG_ERROR([Cannot find ncurses library])]) ++ AC_SEARCH_LIBS([stdscr],[tinfo ncurses],[MCLIBS="$MCLIBS $LIBS"], ++ [AC_MSG_ERROR([Cannot find a library providing stdscr])]) ++ + + screen_type=ncurses + screen_msg="Ncurses library" +@@ -111,10 +114,15 @@ + AC_SEARCH_LIBS([addwstr], [ncursesw ncurses curses], [MCLIBS="$MCLIBS $LIBS";ncursesw_found=yes], + [AC_MSG_WARN([Cannot find ncurses library, that support wide characters])]) + ++ AC_SEARCH_LIBS([stdscr],[tinfo ncursesw ncurses curses],[MCLIBS="$MCLIBS $LIBS"], ++ [AC_MSG_ERROR([Cannot find a library providing stdscr])]) ++ + if test x"$ncursesw_found" = "x"; then + LIBS= + AC_SEARCH_LIBS([has_colors], [ncurses curses], [MCLIBS="$MCLIBS $LIBS"], + [AC_MSG_ERROR([Cannot find ncurses library])]) ++ AC_SEARCH_LIBS([stdscr],[tinfo ncurses curses],[MCLIBS="$MCLIBS $LIBS"], ++ [AC_MSG_ERROR([Cannot find a library providing stdscr])]) + fi + + dnl Check the header +@@ -166,6 +174,9 @@ + LIBS= + AC_SEARCH_LIBS([has_colors], [ncursesw], [MCLIBS="$MCLIBS $LIBS"], + [AC_MSG_ERROR([Cannot find ncursesw library])]) ++ AC_SEARCH_LIBS([stdscr],[tinfow ncursesw],[MCLIBS="$MCLIBS $LIBS"], ++ [AC_MSG_ERROR([Cannot find a library providing stdscr])]) ++ + + dnl Check the header + ncurses_h_found= |