Bug #121051 Package dependency issues on Fedora 44
Submitted: 4 Aug 6:20 Modified: 4 Aug 6:23
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server: Packaging Severity:S2 (Serious)
Version:26.7.0, 9.7.2 OS:Fedora (Fedora 44)
Assigned to: CPU Architecture:Any
Tags: dependencies, Fedora, rpm, yum

[4 Aug 6:20] Daniël van Eeden
Description:
On Fedora 44:

mariadb-connector-c-config
- provides /etc/my.cnf

mariadb-connector-c
- provides libmariadb.so.3 (needed by various packages)
- requires mariadb-connector-c-config (same version)

mysql-community-server-0:26.7.0-10.fc44.x86_64
- obsoletes mariadb-connector-c-config

This leads to the issue that dnf tries to update mariadb-connector-c, which needs mariadb-connector-c-config, which then is replaced by mysql-community-server, but then doesn't provide what mariadb-connector-c needs/expects.

This leads to things like this:
--------------------------------------------------------------------
# dnf update
Updating and loading repositories:
Repositories loaded.
Problem: installed package mariadb-connector-c-3.4.9-2.fc44.x86_64 requires mariadb-connector-c-config = 3.4.9-2.fc44, but none of the providers can be installed
  - package mysql-community-server-26.7.0-10.fc44.x86_64 from mysql-innovation-community obsoletes mariadb-connector-c-config provided by mariadb-connector-c-config-3.4.9-2.fc44.noarch from @System
  - package mysql-community-server-26.7.0-10.fc44.x86_64 from mysql-innovation-community obsoletes mariadb-connector-c-config provided by mariadb-connector-c-config-3.4.9-2.fc44.noarch from updates
  - cannot install the best update candidate for package mariadb-connector-c-config-3.4.9-2.fc44.noarch
  - cannot install the best update candidate for package mariadb-connector-c-3.4.9-2.fc44.x86_64

Nothing to do.
--------------------------------------------------------------------

Removing mariadb-connector-c leads to the remove of many packages (libreoffice-*, qt6-*, sysbench, lldpd, etc)

How to repeat:
Create a Fedora 44 container:
podman run --rm -it fedora:44

Run this:
rpm -i https://dev.mysql.com/get/mysql97-community-release-fc44-1.noarch.rpm
dnf makecache
dnf install -y mysql-community-client lldpd
dnf update

The `dnf update` step shows the problems as described in the description.

Note that this happens with both the default 9.7 repository and the innovation repository.

Suggested fix:
Probably try to follow what the MySQL and MariaDB packages from Fedora do, which is to not replace mariadb-connector-c-config and not ship a /etc/my.cnf

[root@d130262cda9b /]# rpm -ql mysql9.7-server | grep cnf
/etc/my.cnf.d/mysql-server.cnf
[root@d130262cda9b /]# rpm -q --obsoletes mysql9.7-server
[root@d130262cda9b /]# rpm -qf /etc/my.cnf
mariadb-connector-c-config-3.4.9-2.fc44.noarch
[4 Aug 6:23] Daniël van Eeden
Related: Bug #119743
[6 Aug 7:41] Balasubramanian Kandasamy
Acknowledged. Thanks for the bug report.