Blame SOURCES/gdb-fedora-libncursesw.patch

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