[MDEV-32111] Debian does not have ncurses 5.x anymore Created: 2023-09-06  Updated: 2024-02-08  Resolved: 2024-01-14

Status: Closed
Project: MariaDB Server
Component/s: Platform Debian
Affects Version/s: 11.3
Fix Version/s: 10.5.24, 10.6.17, 10.11.7, 11.0.5, 11.1.4, 11.2.3

Type: Bug Priority: Major
Reporter: Tuukka Pasanen Assignee: Tuukka Pasanen
Resolution: Fixed Votes: 0
Labels: None


 Description   

Debian Sid (which will become Trixie) has dropped support for NCurses 5.x and only NCurses 6.x is supported.



 Comments   
Comment by Dirk Hillbrecht [ 2024-02-08 ]

I just installed the bintar 10.11.7 on Ubuntu 23.10 and the mysql CLI binary still requires libncurses5. The release notes also do not mention a switch to libncurses6.

Comment by Tuukka Pasanen [ 2024-02-08 ]

Thank you for reporting this. Trixie is unstable and Ubuntu is based on Debian 12 which is stable they are more conservative on now a days on Ubuntu than on Debian to break things.

Does it automatically solve problems or does it need some extra work?

Comment by Dirk Hillbrecht [ 2024-02-08 ]

As I wrote in MDEV-26265, I install the libncurses5 (and libtinfo5) from Ubuntu 23.04's deb files. Then it works. But that's no long-term solution.

Comment by Tuukka Pasanen [ 2024-02-08 ]

Sorry I'm little bit confused. Is there still some parts of tarbin 10.11.7 still linked against ncurses5 and some are ncurses6?

Comment by Dirk Hillbrecht [ 2024-02-08 ]

This is what happens:

monospaced text
�� Finished. MariaDB is installed from mariadb-10.11.7-linux-systemd-x86_64.tar.gz, configured and launched
root@fridoline:/etc/cantamen-config# mysql -p
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
root@fridoline:/etc/cantamen-config# ls -al $(which mysql)
lrwxrwxrwx 1 root root 75 Feb 8 09:36 /usr/local/bin/mysql -> /usr/local/cantamen-packages/mariadb-10.11.7-linux-systemd-x86_64/bin/mysql
root@fridoline:/etc/cantamen-config# cd recipes/mariadb/libncurses5-ubuntu-23.10/
root@fridoline:/etc/cantamen-config/recipes/mariadb/libncurses5-ubuntu-23.10# ls -al
total 220
drwxr-xr-x 2 root root 4096 Jan 31 22:27 .
drwxr-xr-x 4 root root 4096 Feb 8 09:34 ..
rw-rr- 1 root root 106880 Jan 31 22:27 libncurses5_6.4-2ubuntu0.1_amd64.deb
rw-rr- 1 root root 99514 Jan 31 22:27 libtinfo5_6.4-2ubuntu0.1_amd64.deb
rw-rr- 1 root root 485 Jan 31 22:27 README.md
root@fridoline:/etc/cantamen-config/recipes/mariadb/libncurses5-ubuntu-23.10# apt install ./libtinfo5_6.4-2ubuntu0.1_amd64.deb ./libncurses5_6.4-2ubuntu0.1_amd64.deb
[...]
Hinweis: »libtinfo5« wird an Stelle von »./libtinfo5_6.4-2ubuntu0.1_amd64.deb« gewählt.
Hinweis: »libncurses5« wird an Stelle von »./libncurses5_6.4-2ubuntu0.1_amd64.deb« gewählt.
Die folgenden NEUEN Pakete werden installiert:
libncurses5 libtinfo5
[...]
libtinfo5:amd64 (6.4-2ubuntu0.1) wird eingerichtet ...
libncurses5:amd64 (6.4-2ubuntu0.1) wird eingerichtet ...
Trigger für libc-bin (2.38-1ubuntu6.1) werden verarbeitet ...
root@fridoline:/etc/cantamen-config/recipes/mariadb/libncurses5-ubuntu-23.10# which mysql
/usr/local/bin/mysql
root@fridoline:/etc/cantamen-config/recipes/mariadb/libncurses5-ubuntu-23.10# mysql -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 10.11.7-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> Bye
root@fridoline:/etc/cantamen-config/recipes/mariadb/libncurses5-ubuntu-23.10#

Without installed libncurses5 libs, the "mysql" binary (from 10.11.7) complains about them not being there. Installing the libraries makes the error go away. So, yes, to me it seems that at least the "mysql" binary is still linked against libncurses5.

Generated at Thu Feb 08 10:28:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.