Blame SOURCES/gdb-fedora-libncursesw.patch

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