Blame SOURCES/gdb-fedora-libncursesw.patch

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