* [PATCH] Check for ncursesw first when searching for "tgetent"
@ 2018-01-31 21:04 Sergio Durigan Junior
2018-02-10 1:43 ` Sergio Durigan Junior
2018-02-13 4:58 ` Simon Marchi
0 siblings, 2 replies; 4+ messages in thread
From: Sergio Durigan Junior @ 2018-01-31 21:04 UTC (permalink / raw)
To: GDB Patches; +Cc: Jan Kratochvil, Sergio Durigan Junior
Commit 5007d765ae09c10c7f3b18bb16841b9d2d59e181 ("Allow linking GDB
with ncursesw") modified our configure.ac and included the check for
"ncursesw" when searching for "waddstr". However, there's one more
place where we should check for "ncursesw" first:
AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses])
This patch changes the order of the libraries to be searched when
looking for "tgetent", and puts "ncursesw" before "curses ...".
This is another patch we carry on Fedora GDB.
gdb/ChangeLog:
2018-01-31 Sergio Durigan Junior <sergiodj@redhat.com>
* configure.ac: Check for "ncursesw" first when searching for
"tgetent".
* configure: Regenerate.
---
gdb/configure | 2 +-
gdb/configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/configure b/gdb/configure
index 81b35af521..c552c1ab1f 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -8912,7 +8912,7 @@ return tgetent ();
return 0;
}
_ACEOF
-for ac_lib in '' termcap tinfo curses ncursesw ncurses; do
+for ac_lib in '' termcap tinfo ncursesw curses ncurses; do
if test -z "$ac_lib"; then
ac_res="none required"
else
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 125e5f30e6..a73f72d0a8 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -609,7 +609,7 @@ case $host_os in
esac
# These are the libraries checked by Readline.
-AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses])
+AC_SEARCH_LIBS(tgetent, [termcap tinfo ncursesw curses ncurses])
if test "$ac_cv_search_tgetent" = no; then
CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
--
2.14.3
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] Check for ncursesw first when searching for "tgetent"
2018-01-31 21:04 [PATCH] Check for ncursesw first when searching for "tgetent" Sergio Durigan Junior
@ 2018-02-10 1:43 ` Sergio Durigan Junior
2018-02-13 4:58 ` Simon Marchi
1 sibling, 0 replies; 4+ messages in thread
From: Sergio Durigan Junior @ 2018-02-10 1:43 UTC (permalink / raw)
To: GDB Patches; +Cc: Jan Kratochvil
On Wednesday, January 31 2018, I wrote:
> Commit 5007d765ae09c10c7f3b18bb16841b9d2d59e181 ("Allow linking GDB
> with ncursesw") modified our configure.ac and included the check for
> "ncursesw" when searching for "waddstr". However, there's one more
> place where we should check for "ncursesw" first:
>
> AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses])
>
> This patch changes the order of the libraries to be searched when
> looking for "tgetent", and puts "ncursesw" before "curses ...".
>
> This is another patch we carry on Fedora GDB.
Ping.
> gdb/ChangeLog:
> 2018-01-31 Sergio Durigan Junior <sergiodj@redhat.com>
>
> * configure.ac: Check for "ncursesw" first when searching for
> "tgetent".
> * configure: Regenerate.
> ---
> gdb/configure | 2 +-
> gdb/configure.ac | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gdb/configure b/gdb/configure
> index 81b35af521..c552c1ab1f 100755
> --- a/gdb/configure
> +++ b/gdb/configure
> @@ -8912,7 +8912,7 @@ return tgetent ();
> return 0;
> }
> _ACEOF
> -for ac_lib in '' termcap tinfo curses ncursesw ncurses; do
> +for ac_lib in '' termcap tinfo ncursesw curses ncurses; do
> if test -z "$ac_lib"; then
> ac_res="none required"
> else
> diff --git a/gdb/configure.ac b/gdb/configure.ac
> index 125e5f30e6..a73f72d0a8 100644
> --- a/gdb/configure.ac
> +++ b/gdb/configure.ac
> @@ -609,7 +609,7 @@ case $host_os in
> esac
>
> # These are the libraries checked by Readline.
> -AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses])
> +AC_SEARCH_LIBS(tgetent, [termcap tinfo ncursesw curses ncurses])
>
> if test "$ac_cv_search_tgetent" = no; then
> CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
> --
> 2.14.3
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] Check for ncursesw first when searching for "tgetent"
2018-01-31 21:04 [PATCH] Check for ncursesw first when searching for "tgetent" Sergio Durigan Junior
2018-02-10 1:43 ` Sergio Durigan Junior
@ 2018-02-13 4:58 ` Simon Marchi
[not found] ` <87d118hfs7.fsf@redhat.com>
1 sibling, 1 reply; 4+ messages in thread
From: Simon Marchi @ 2018-02-13 4:58 UTC (permalink / raw)
To: Sergio Durigan Junior, GDB Patches; +Cc: Jan Kratochvil
On 2018-01-31 04:04 PM, Sergio Durigan Junior wrote:
> Commit 5007d765ae09c10c7f3b18bb16841b9d2d59e181 ("Allow linking GDB
> with ncursesw") modified our configure.ac and included the check for
> "ncursesw" when searching for "waddstr". However, there's one more
> place where we should check for "ncursesw" first:
>
> AC_SEARCH_LIBS(tgetent, [termcap tinfo curses ncursesw ncurses])
>
> This patch changes the order of the libraries to be searched when
> looking for "tgetent", and puts "ncursesw" before "curses ...".
>
> This is another patch we carry on Fedora GDB.
I think it makes sense, but can you expand on why this is needed?
Thanks,
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-14 1:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-31 21:04 [PATCH] Check for ncursesw first when searching for "tgetent" Sergio Durigan Junior
2018-02-10 1:43 ` Sergio Durigan Junior
2018-02-13 4:58 ` Simon Marchi
[not found] ` <87d118hfs7.fsf@redhat.com>
2018-02-14 1:28 ` Sergio Durigan Junior
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox