Blame SOURCES/gdb-fedora-libncursesw.patch

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