Blame SOURCES/gdb-fedora-libncursesw.patch

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