2017-12-10 22:00:49 +00:00
|
|
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
2017-12-04 19:24:00 +00:00
|
|
|
From: Fedora GDB patches <invalid@email.com>
|
|
|
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
|
|
Subject: gdb-fedora-libncursesw.patch
|
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
;; Force libncursesw over libncurses to match the includes (RH BZ 1270534).
|
|
|
|
;;=push+jan
|
|
|
|
|
2015-11-14 16:06:06 +00:00
|
|
|
Fedora: Force libncursesw over libncurses to match the includes.
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1270534
|
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
diff --git a/gdb/configure b/gdb/configure
|
|
|
|
--- a/gdb/configure
|
|
|
|
+++ b/gdb/configure
|
2018-10-16 22:33:39 +00:00
|
|
|
@@ -9413,6 +9413,7 @@ if test x"$prefer_curses" = xyes; then
|
2015-11-14 16:06:06 +00:00
|
|
|
# search /usr/local/include, if ncurses is installed in /usr/local. A
|
|
|
|
# default installation of ncurses on alpha*-dec-osf* will lead to such
|
|
|
|
# a situation.
|
|
|
|
+ # Fedora: Force libncursesw over libncurses to match the includes.
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
|
|
|
|
$as_echo_n "checking for library containing waddstr... " >&6; }
|
2018-06-27 19:50:46 +00:00
|
|
|
if ${ac_cv_search_waddstr+:} false; then :
|
2018-10-16 22:33:39 +00:00
|
|
|
@@ -9437,7 +9438,7 @@ return waddstr ();
|
2015-11-14 16:06:06 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2017-12-08 04:31:26 +00:00
|
|
|
-for ac_lib in '' ncursesw ncurses cursesX curses; do
|
2015-11-14 16:06:06 +00:00
|
|
|
+for ac_lib in '' ncursesw; do
|
|
|
|
if test -z "$ac_lib"; then
|
|
|
|
ac_res="none required"
|
|
|
|
else
|
2018-10-16 22:33:39 +00:00
|
|
|
@@ -9511,6 +9512,7 @@ case $host_os in
|
2015-11-14 16:06:06 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
# These are the libraries checked by Readline.
|
|
|
|
+# Fedora: Force libncursesw over libncurses to match the includes.
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
|
|
|
|
$as_echo_n "checking for library containing tgetent... " >&6; }
|
2018-06-27 19:50:46 +00:00
|
|
|
if ${ac_cv_search_tgetent+:} false; then :
|
2018-10-16 22:33:39 +00:00
|
|
|
@@ -9535,7 +9537,7 @@ return tgetent ();
|
2015-11-14 16:06:06 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
_ACEOF
|
2017-12-08 04:31:26 +00:00
|
|
|
-for ac_lib in '' termcap tinfo curses ncursesw ncurses; do
|
2015-11-14 16:06:06 +00:00
|
|
|
+for ac_lib in '' termcap tinfo ncursesw; do
|
|
|
|
if test -z "$ac_lib"; then
|
|
|
|
ac_res="none required"
|
|
|
|
else
|
2017-12-08 04:31:26 +00:00
|
|
|
diff --git a/gdb/configure.ac b/gdb/configure.ac
|
|
|
|
--- a/gdb/configure.ac
|
|
|
|
+++ b/gdb/configure.ac
|
2018-09-17 22:38:14 +00:00
|
|
|
@@ -743,7 +743,8 @@ if test x"$prefer_curses" = xyes; then
|
2015-11-14 16:06:06 +00:00
|
|
|
# search /usr/local/include, if ncurses is installed in /usr/local. A
|
|
|
|
# default installation of ncurses on alpha*-dec-osf* will lead to such
|
|
|
|
# a situation.
|
2017-12-08 04:31:26 +00:00
|
|
|
- AC_SEARCH_LIBS(waddstr, [ncursesw ncurses cursesX curses])
|
2015-11-14 16:06:06 +00:00
|
|
|
+ # Fedora: Force libncursesw over libncurses to match the includes.
|
|
|
|
+ AC_SEARCH_LIBS(waddstr, [ncursesw])
|
|
|
|
|
|
|
|
if test "$ac_cv_search_waddstr" != no; then
|
|
|
|
curses_found=yes
|
2018-09-17 22:38:14 +00:00
|
|
|
@@ -785,7 +786,8 @@ case $host_os in
|
2015-11-14 16:06:06 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
# These are the libraries checked by Readline.
|
2017-12-08 04:31:26 +00:00
|
|
|
-AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses])
|
2015-11-14 16:06:06 +00:00
|
|
|
+# Fedora: Force libncursesw over libncurses to match the includes.
|
|
|
|
+AC_SEARCH_LIBS(tgetent, [termcap tinfo ncursesw])
|
|
|
|
|
|
|
|
if test "$ac_cv_search_tgetent" = no; then
|
|
|
|
CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
|