[MDEV-6031] Yum installs MariaDB-Galera-server instead of MariaDB-server Created: 2014-04-07  Updated: 2015-04-27  Resolved: 2015-04-27

Status: Closed
Project: MariaDB Server
Component/s: Packaging
Affects Version/s: 5.5, 10.0
Fix Version/s: 10.1.1

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: packaging, verified


 Description   

Sometimes we get complaints on IRC about MariaDB-Galera being installed instead of MariaDB-server. I think we don't have a report about it yet because we could not reproduce it. I have a guess about the reason.

Right now I'm getting the same behavior trying to install from MariaDB 5.5 repo.
On CentOS, it happens when I run
sudo yum install mysql-server
literally, with lower-case mysql-server.

On Fedora, it happens when I run
sudo yum install mariadb-server
again, literally, with lower-case mariadb-server.

In both cases, MariaDB-Galera-server 5.5.36 is installed.

Looking at cpack_rpm.cmake, I see that mysql-server is defined as an alternative name for both MariaDB-server and MariaDB-Galera-server; same for mariadb-server, only it is defined conditionally on Fedora.

So, my guess is when an alternative name is used in yum install command, and there are several packages which have this alternative name and the same version, then the choice is indeterministic (or maybe it depends on some non-obvious factors).



 Comments   
Comment by Tom Atkinson [ 2014-04-07 ]

MariaDB-Galera-server "obsoletes" mysql-server and mariadb-server so yum installs it instead. This obsoletes should probably be removed.

If 2 packages provide the same name and version the package with the shorter name wins, which is what we want here.

Comment by Sergei Golubchik [ 2014-04-08 ]

oden, what do you think about this?

Comment by Oden Eriksson [ 2014-04-09 ]

I'll have a look the 21:st.

Comment by Sergei Golubchik [ 2015-04-27 ]

It doesn't look like the "shorter wins" here. Both MariaDB-server and MariaDB-Galera-server provide (and obsolete?) mysql-server and mariadb-server. They also conflict with each other. So when a mariadb-server or mysql-server are requested, yum has a choice. May be it uses the longer name, may be the decision rule is not specified. Either way, apparently it choses MariaDB-Galera-server, at least sometimes.

I don't know if we can fix that at all in 5.5 or 10.0. In 10.1 MariaDB-Galera-server does not exist, so the issue disappears.

Generated at Thu Feb 08 07:08:51 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.