Blame SOURCES/gdb-fedora-libncursesw.patch

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