Blame SOURCES/gdb-fedora-libncursesw.patch

b94e32
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
b94e32
From: Fedora GDB patches <invalid@email.com>
b94e32
Date: Fri, 27 Oct 2017 21:07:50 +0200
b94e32
Subject: gdb-fedora-libncursesw.patch
b94e32
b94e32
;; Force libncursesw over libncurses to match the includes (RH BZ 1270534).
b94e32
;;=push+jan
b94e32
b94e32
Fedora: Force libncursesw over libncurses to match the includes.
b94e32
https://bugzilla.redhat.com/show_bug.cgi?id=1270534
b94e32
b94e32
diff --git a/gdb/configure b/gdb/configure
b94e32
--- a/gdb/configure
b94e32
+++ b/gdb/configure
b94e32
@@ -9552,6 +9552,7 @@ if test x"$prefer_curses" = xyes; then
b94e32
   # search /usr/local/include, if ncurses is installed in /usr/local.  A
b94e32
   # default installation of ncurses on alpha*-dec-osf* will lead to such
b94e32
   # a situation.
b94e32
+  # Fedora: Force libncursesw over libncurses to match the includes.
b94e32
   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
b94e32
 $as_echo_n "checking for library containing waddstr... " >&6; }
b94e32
 if ${ac_cv_search_waddstr+:} false; then :
b94e32
@@ -9576,7 +9577,7 @@ return waddstr ();
b94e32
   return 0;
b94e32
 }
b94e32
 _ACEOF
b94e32
-for ac_lib in '' ncursesw ncurses cursesX curses; do
b94e32
+for ac_lib in '' ncursesw; do
b94e32
   if test -z "$ac_lib"; then
b94e32
     ac_res="none required"
b94e32
   else
b94e32
@@ -9650,6 +9651,7 @@ case $host_os in
b94e32
 esac
b94e32
 
b94e32
 # These are the libraries checked by Readline.
b94e32
+# Fedora: Force libncursesw over libncurses to match the includes.
b94e32
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
b94e32
 $as_echo_n "checking for library containing tgetent... " >&6; }
b94e32
 if ${ac_cv_search_tgetent+:} false; then :
b94e32
@@ -9674,7 +9676,7 @@ return tgetent ();
b94e32
   return 0;
b94e32
 }
b94e32
 _ACEOF
b94e32
-for ac_lib in '' termcap tinfow tinfo curses ncursesw ncurses; do
b94e32
+for ac_lib in '' ncursesw; do
b94e32
   if test -z "$ac_lib"; then
b94e32
     ac_res="none required"
b94e32
   else
b94e32
diff --git a/gdb/configure.ac b/gdb/configure.ac
b94e32
--- a/gdb/configure.ac
b94e32
+++ b/gdb/configure.ac
b94e32
@@ -736,7 +736,8 @@ if test x"$prefer_curses" = xyes; then
b94e32
   # search /usr/local/include, if ncurses is installed in /usr/local.  A
b94e32
   # default installation of ncurses on alpha*-dec-osf* will lead to such
b94e32
   # a situation.
b94e32
-  AC_SEARCH_LIBS(waddstr, [ncursesw ncurses cursesX curses])
b94e32
+  # Fedora: Force libncursesw over libncurses to match the includes.
b94e32
+  AC_SEARCH_LIBS(waddstr, [ncursesw])
b94e32
 
b94e32
   if test "$ac_cv_search_waddstr" != no; then
b94e32
     curses_found=yes
b94e32
@@ -778,7 +779,8 @@ case $host_os in
b94e32
 esac
b94e32
 
b94e32
 # These are the libraries checked by Readline.
b94e32
-AC_SEARCH_LIBS(tgetent, [termcap tinfow tinfo curses ncursesw ncurses])
b94e32
+# Fedora: Force libncursesw over libncurses to match the includes.
b94e32
+AC_SEARCH_LIBS(tgetent, [ncursesw])
b94e32
 
b94e32
 if test "$ac_cv_search_tgetent" = no; then
b94e32
   CONFIG_OBS="$CONFIG_OBS stub-termcap.o"