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