Blame SOURCES/gdb-fedora-libncursesw.patch

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