Blame SOURCES/gdb-fedora-libncursesw.patch

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