blob: d85aa1563731682f19b7ad7c00365f65176d7125 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From 98ed72177c49a8015a443b3ec272fee3fb5a4eb3 Mon Sep 17 00:00:00 2001
Andrew Geisslereef63862021-01-29 15:58:13 -06002From: Paul Barker <pbarker@toganlabs.com>
3Date: Sun, 5 Nov 2017 22:07:30 +0000
4Subject: [PATCH] htop: Update to v2.0.2
5
Brad Bishop316dfdd2018-06-25 12:45:53 -04006We need to use pkg-config to find the ncurses library instead of the
7ncurses*-config applications.
8
9Signed-off-by: Paul Barker <pbarker@toganlabs.com>
10Signed-off-by: Robert Joslyn <robert.joslyn@redrectangle.org>
11
Andrew Geisslerc5535c92023-01-27 16:10:19 -060012Upstream-Status: Inappropriate [`ncurses*-config` can be used outside of OpenEmbedded]
Brad Bishop316dfdd2018-06-25 12:45:53 -040013
Andrew Geisslereef63862021-01-29 15:58:13 -060014---
15 configure.ac | 12 ++++++------
16 1 file changed, 6 insertions(+), 6 deletions(-)
17
Brad Bishop316dfdd2018-06-25 12:45:53 -040018diff --git a/configure.ac b/configure.ac
Andrew Geissler595f6302022-01-24 19:11:47 +000019index 0e69096..d20014f 100644
Brad Bishop316dfdd2018-06-25 12:45:53 -040020--- a/configure.ac
21+++ b/configure.ac
Andrew Geissler595f6302022-01-24 19:11:47 +000022@@ -322,10 +322,10 @@ AC_ARG_ENABLE([unicode],
23 [],
24 [enable_unicode=yes])
Brad Bishop316dfdd2018-06-25 12:45:53 -040025 if test "x$enable_unicode" = xyes; then
Andrew Geissler595f6302022-01-24 19:11:47 +000026- HTOP_CHECK_SCRIPT([ncursesw6], [waddwstr], [HAVE_LIBNCURSESW], "ncursesw6-config",
27- HTOP_CHECK_SCRIPT([ncursesw], [waddwstr], [HAVE_LIBNCURSESW], "ncursesw6-config",
28- HTOP_CHECK_SCRIPT([ncursesw], [wadd_wch], [HAVE_LIBNCURSESW], "ncursesw5-config",
29- HTOP_CHECK_SCRIPT([ncurses], [wadd_wch], [HAVE_LIBNCURSESW], "ncurses5-config",
30+ HTOP_CHECK_SCRIPT([ncursesw6], [waddwstr], [HAVE_LIBNCURSESW], "pkg-config ncursesw6",
31+ HTOP_CHECK_SCRIPT([ncursesw], [waddwstr], [HAVE_LIBNCURSESW], "pkg-config ncursesw6",
32+ HTOP_CHECK_SCRIPT([ncursesw], [wadd_wch], [HAVE_LIBNCURSESW], "pkg-config ncursesw5",
33+ HTOP_CHECK_SCRIPT([ncurses], [wadd_wch], [HAVE_LIBNCURSESW], "pkg-config ncurses5",
Brad Bishop316dfdd2018-06-25 12:45:53 -040034 HTOP_CHECK_LIB([ncursesw6], [addnwstr], [HAVE_LIBNCURSESW],
35 HTOP_CHECK_LIB([ncursesw], [addnwstr], [HAVE_LIBNCURSESW],
36 HTOP_CHECK_LIB([ncurses], [addnwstr], [HAVE_LIBNCURSESW],
Andrew Geissler595f6302022-01-24 19:11:47 +000037@@ -342,8 +342,8 @@ if test "x$enable_unicode" = xyes; then
Andrew Geisslereef63862021-01-29 15:58:13 -060038 # (at this point we already link against a working ncurses library with wide character support)
39 AC_SEARCH_LIBS([keypad], [tinfow tinfo])
Brad Bishop316dfdd2018-06-25 12:45:53 -040040 else
Andrew Geissler595f6302022-01-24 19:11:47 +000041- HTOP_CHECK_SCRIPT([ncurses6], [wnoutrefresh], [HAVE_LIBNCURSES], [ncurses6-config],
42- HTOP_CHECK_SCRIPT([ncurses], [wnoutrefresh], [HAVE_LIBNCURSES], [ncurses5-config],
43+ HTOP_CHECK_SCRIPT([ncurses6], [wnoutrefresh], [HAVE_LIBNCURSES], [pkg-config ncurses6],
44+ HTOP_CHECK_SCRIPT([ncurses], [wnoutrefresh], [HAVE_LIBNCURSES], [pkg-config ncurses5],
45 HTOP_CHECK_LIB([ncurses6], [doupdate], [HAVE_LIBNCURSES],
46 HTOP_CHECK_LIB([ncurses], [doupdate], [HAVE_LIBNCURSES],
47 HTOP_CHECK_LIB([curses], [doupdate], [HAVE_LIBNCURSES],