Package: mariadb-client-10.1
Version: 1:10.1.29-6
User: [email protected]
Usertags: origin-ubuntu bionic

Steps to reproduce:

apt install mariadb-client-10.1
apt install mysql-server-5.7

The second command will cause mariadb-client-10.1 because of a conflict
with mysql-client-5.7, which is depended on by mysql-server-5.7 and is
expected. However, then we have:

# update-alternatives --display my.cnf
my.cnf - auto mode
  link best version is /etc/mysql/mariadb.cnf
  link currently points to /etc/mysql/mariadb.cnf
  link my.cnf is /etc/mysql/my.cnf
/etc/mysql/mariadb.cnf - priority 200
/etc/mysql/my.cnf.fallback - priority 100
/etc/mysql/mysql.cnf - priority 200

This is incorrect. Our /etc/mysql/my.cnf management system expects that
only one variant package will claim the file at one time. In this case
we have MariaDB claiming /etc/mysql/my.cnf -> /etc/mysql/mariadb.cnf
even though MySQL's mysql-server-5.7 is installed and supposedly active.

This happens because the code to claim /etc/mysql/my.cnf is in
mariadb-common, which is depended on my mariadb-client-10.1. I had
intended the claim to be made from mariadb-server-10.1 (and other
variants' counterparts) only.

Attachment: signature.asc
Description: PGP signature

Reply via email to