Blame SOURCES/gdb-fedora-libncursesw.patch

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