Blame SOURCES/gdb-fedora-libncursesw.patch

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