how_to_rebuild_mariadb_against_readline_in_debian
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
how_to_rebuild_mariadb_against_readline_in_debian [2023/08/23 07:05] – abeverley | how_to_rebuild_mariadb_against_readline_in_debian [2024/05/20 21:33] (current) – abeverley | ||
---|---|---|---|
Line 3: | Line 3: | ||
I've been frustrated with the use of editline (libedit) instead of readline that MariaDB is now built with in Debian 11. I have found editline to be buggy: its implementation of Ctrl-R and editing of wrapped lines do not work well, plus Ctrl-W not being mapping to delete a word by default is infuriating! | I've been frustrated with the use of editline (libedit) instead of readline that MariaDB is now built with in Debian 11. I have found editline to be buggy: its implementation of Ctrl-R and editing of wrapped lines do not work well, plus Ctrl-W not being mapping to delete a word by default is infuriating! | ||
- | As I understand it, Debian is no longer able to distribute MariaDB built against readline as the former is GPL2 and the latter GPL3, and apparently the 2 are incompatible for distribution. | + | As I understand it, Debian is no longer able to distribute MariaDB built against readline as the former is GPL2 and the latter GPL3, and apparently the 2 are incompatible for distribution. |
+ | |||
+ | The following instructions build a new Debian packages | ||
apt install build-essential devscripts libreadline-dev | apt install build-essential devscripts libreadline-dev | ||
apt build-dep mariadb-client-core-10.5 | apt build-dep mariadb-client-core-10.5 | ||
+ | apt build-dep libreadline-dev | ||
su <unpriv user> | su <unpriv user> | ||
apt source mariadb-client-core-10.5 | apt source mariadb-client-core-10.5 | ||
cd mariadb-10.5-10.5.19/ | cd mariadb-10.5-10.5.19/ | ||
+ | |||
+ | For Bookworm: | ||
+ | |||
+ | apt install build-essential devscripts libreadline-dev | ||
+ | apt build-dep mariadb | ||
+ | apt build-dep readline | ||
+ | su <unpriv user> | ||
+ | apt source mariadb | ||
+ | cd mariadb-10.11.6/ | ||
| | ||
Edit '' | Edit '' | ||
Line 30: | Line 42: | ||
Edit '' | Edit '' | ||
+ | |||
+ | For Bookworm edit '' | ||
debuild -uc -us -b | debuild -uc -us -b | ||
how_to_rebuild_mariadb_against_readline_in_debian.1692774337.txt.gz · Last modified: 2023/08/23 07:05 by abeverley