net-analyzer/mtr: fix tinfo patch for ncurses UI

Closes: https://bugs.gentoo.org/960013
Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/42968
Closes: https://github.com/gentoo/gentoo/pull/42968
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Holger Hoffstätte
2025-07-12 16:21:53 +02:00
committed by Sam James
parent e8ab6df219
commit e4dc84b9ad
2 changed files with 3 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
https://github.com/traviscross/mtr/pull/368
Fixed version of https://github.com/traviscross/mtr/pull/368
Bug: https://bugs.gentoo.org/960013
--- a/configure.ac
+++ b/configure.ac
@@ -136,7 +136,10 @@ AS_IF([test "x$with_ncurses" = "xyes"],
@@ -6,7 +7,7 @@ https://github.com/traviscross/mtr/pull/368
[AC_SEARCH_LIBS(
[initscr], [ncursesw ncurses curses],
+ [AC_SEARCH_LIBS(
+ [raw], [ncurses curses cursesX tinfo],
+ [raw], [ncurses curses cursesX tinfow],
[AC_DEFINE([HAVE_CURSES], [1], [Define if a curses library available])],
+ [with_ncurses=no])],
[with_ncurses=no])