Blame SOURCES/gdb-fedora-libncursesw.patch

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