Blame SOURCES/gdb-fedora-libncursesw.patch

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