Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77388 - [lldb] Package broken due to missing libedit functionality

Attached to Project: Arch Linux
Opened by Dcompoze (dcompoze) - Saturday, 04 February 2023, 19:07 GMT
Last edited by Evangelos Foutras (foutrelis) - Sunday, 05 February 2023, 08:00 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The extra/lldb 15.0.7-1 package does not enable libedit functionality resulting in the lldb debugger not having the correct readline/libedit behaviour such as Home/End, Up/Down arrow, command history etc.

I tried rebuilding from the official PKGBUILD with -DLLDB_ENABLE_LIBEDIT=1 cmake option but it seems not to be able to find the libedit library.

I have core/libedit 20210910_3.1-2 installed on my system.

The unaltered build produces this warning and disables the libedit functionality:

CMake Warning at cmake/modules/LLDBConfig.cmake:52 (find_package):
By not providing "FindLibEdit.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "LibEdit", but
CMake did not find one.

Could not find a package configuration file provided by "LibEdit" with any
of the following names:

LibEditConfig.cmake
libedit-config.cmake

Add the installation prefix of "LibEdit" to CMAKE_PREFIX_PATH or set
"LibEdit_DIR" to a directory containing one of the above files. If
"LibEdit" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
cmake/modules/LLDBConfig.cmake:59 (add_optional_dependency)
CMakeLists.txt:28 (include)


It seems that the CMake modules for finding LibEdit have been modified since version 15.0.0:

https://reviews.llvm.org/D124673

Although I'm not sure if this is the cause.

Steps to reproduce:

1. Install extra/lldb 15.0.7-1
2. Run lldb in the terminal
3. In the command line REPL try pressing Up/Down arrows for command history, Home/End to jump to end or beginning of line, Tab to insert a tab etc.
4. Instead of performing the correct actions character sequences will be inserted e.g. ^[[A, ^[[B
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Sunday, 05 February 2023, 08:00 GMT
Reason for closing:  Fixed
Additional comments about closing:  lldb 15.0.7-2

Loading...