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