Blame SOURCES/gdb-fedora-libncursesw.patch

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