Blame SOURCES/gdb-fedora-libncursesw.patch

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