[llvm-branch-commits] [lldb] release/22.x: [lldb] add terminfo name (#191740) (PR #193693)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Apr 23 01:54:12 PDT 2026


https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/193693

Backport c3bd0c12943c3fcdb263b63a6fd754057b1c0775

Requested by: @DavidSpickett

>From 93d3a888d7e545cbd5ae7f7f045cdcee5fea39e2 Mon Sep 17 00:00:00 2001
From: nataliakokoromyti <nataliakokoromyti at gmail.com>
Date: Wed, 22 Apr 2026 10:25:29 -0700
Subject: [PATCH] [lldb] add terminfo name (#191740)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fixes #191532

This PR just adds terminfo next to tinfo in FindCursesAndPanel.cmake
since NetBSD uses a separate library terminfo that LLDB’s CMake did not
look for (see #191532).

(cherry picked from commit c3bd0c12943c3fcdb263b63a6fd754057b1c0775)
---
 lldb/cmake/modules/FindCursesAndPanel.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/cmake/modules/FindCursesAndPanel.cmake b/lldb/cmake/modules/FindCursesAndPanel.cmake
index 8628059f91ba1..5e13a1b79ecf9 100644
--- a/lldb/cmake/modules/FindCursesAndPanel.cmake
+++ b/lldb/cmake/modules/FindCursesAndPanel.cmake
@@ -40,7 +40,7 @@ else()
                             CURSES_HAS_TINFO)
     if(NOT CURSES_HAS_TINFO)
       message(STATUS "curses library missing terminfo symbols, looking for tinfo separately")
-      find_library(TINFO_LIBRARIES NAMES tinfo DOC "The curses tinfo library" QUIET)
+      find_library(TINFO_LIBRARIES NAMES tinfo terminfo DOC "The curses tinfo library" QUIET)
       list(APPEND CURSES_LIBRARIES "${TINFO_LIBRARIES}")
     endif()
     set(HAS_TERMINFO_SYMBOLS "$<OR:$<BOOL:${TERMINFO_LIBRARIES}>,$<BOOL:${CURSES_HAS_TINFO}>>")



More information about the llvm-branch-commits mailing list