Blame SOURCES/gdb-fedora-libncursesw.patch

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