-
Notifications
You must be signed in to change notification settings - Fork 3.8k
sqlite3: fix building with line editing libs #27493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@1715173329 , please review |
|
Cc: @GeorgeSapkin |
but then |
|
@1715173329 , @GeorgeSapkin , please review |
|
@1715173329 , @GeorgeSapkin , I'm kindly reminding you about this PR.
|
|
I'll test this locally and report back. Before that, please squash your commits, fix typos in the commit message (linenose) and format it according to the submission guidelines (line length). |
|
@GeorgeSapkin , thank you! |
f90fa58 to
6563980
Compare
GeorgeSapkin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this locally on snapshot with libedit and libnoise. Both seem to work. The new default is smaller and has less dependencies.
I imagine for compatibility sake this shouldn't be backported to 24.10, even though this affects the CLI only.
GeorgeSapkin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I retested all 4 CLI line-editing options locally and they all seem to work.
2cf4727 to
fce7d8f
Compare
Add the linenoise line editing package. It's a compact embedded replacement for readline and libedit. It will be used in sqlite3-cli initially, but other packages that support it, may follow. Signed-off-by: Maxim Storchak <[email protected]>
GeorgeSapkin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-tested this locally with the new build-only package and it seems to work as expected.
- fix building sqlite3-cli with readline and libedit - add linenoise line editing option. This adds 12k to the size of the bare sqlite3-cli, but doesn't add any extra dependencies - make linenoise the default choice as the most space conserving but still convenient variant - bump PKG_RELEASE Signed-off-by: Maxim Storchak <[email protected]>
GeorgeSapkin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-tested all 4 configs locally and everything still works. I think we can merge now.
|
@GeorgeSapkin , @1715173329 , thank you for your guidance and suggestions! |
📦 Package Details
Maintainer: none
Description:
1.
Tell
configurewhere to find include directories for libreadline and libeditline.In the case of cross-compilation,
--readlineor--editlinealone is not enough, configure can't test if the corresponding include file is available:Use linenoise as the default line editing option. This adds 12k on top of sqlite3-cli with no line editing capabilities, but doesn't add any extra dependencies like ncurses or readline/libedit.
🧪 Run Testing Details
✅ Formalities