[MDEV-5390] doesn't install on fedora if mysql is installed, part 2 Created: 2013-12-05  Updated: 2014-02-21  Resolved: 2014-02-21

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.34
Fix Version/s: 5.5.36

Type: Bug Priority: Major
Reporter: Will Fong Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: packaging
Environment:

Fedora 19


Issue Links:
Relates
relates to MDEV-5250 doesn't install on fedora if mysql is... Closed

 Description   

Fedora 19 includes MariaDB now, but it looks like the packages in the MariaDB repo does not obsolete them.

Transaction check error:
  file /etc/my.cnf from install of MariaDB-common-5.5.34-1.x86_64 conflicts with file from package mariadb-libs-1:5.5.33a-1.fc19.x86_64
  file /usr/share/mysql/charsets/Index.xml from install of MariaDB-common-5.5.34-1.x86_64 conflicts with file from package mariadb-libs-1:5.5.33a-1.fc19.x86_64
  file /usr/share/mysql/charsets/README from install of MariaDB-common-5.5.34-1.x86_64 conflicts with file from package mariadb-libs-1:5.5.33a-1.fc19.x86_64
  file /usr/share/mysql/charsets/armscii8.xml from install of MariaDB-common-5.5.34-1.x86_64 conflicts with file from package mariadb-libs-1:5.5.33a-1.fc19.x86_64
  file /usr/share/mysql/charsets/ascii.xml from install of MariaDB-common-5.5.34-1.x86_64 conflicts with file from package mariadb-libs-1:5.5.33a-1.fc19.x86_64
  file /usr/share/mysql/charsets/cp1250.xml from install of MariaDB-common-5.5.34-1.x86_64 conflicts with file from package mariadb-libs-1:5.5.33a-1.fc19.x86_64
  file /usr/share/mysql/charsets/cp1251.xml from install of MariaDB-common-5.5.34-1.x86_64 conflicts with file from package mariadb-libs-1:5.5.33a-1.fc19.x86_64
  file /usr/share/mysql/charsets/cp1256.xml from install of MariaDB-common-5.5.34-1.x86_64 conflicts with file from package mariadb-libs-1:5.5.33a-1.fc19.x86_64
  file /usr/share/mysql/charsets/cp1257.xml from install of MariaDB-common-5.5.34-1.x86_64 conflicts with file from package mariadb-libs-1:5.5.33a-1.fc19.x86_64

This looks similar to MDEV-5250, but this is on Fedora 19.

The workaround is to remove the distro provided packages first.



 Comments   
Comment by Sergei Golubchik [ 2014-01-24 ]

I don't have a good solution for this yet. What happens — some files that are in the Fedora's mysql-libs.rpm are in MariaDB-common, while others are in MariaDB-shared. So, both MariaDB packages conflict with mysql-libs.

Ideally, when one has mysql-libs installed, an attempt to install anything MariaDB-* should install MariaDB-shared, replacing mysql-libs. But if mysql-libs isn't installed, MariDB-shared shouldn't be installed automatically, only when a user explicitly requests it. I am not sure if there's a way to tell yum to do that.

I can, perhaps, check this condition in the MariaDB-common preinst script and abort with a verbose explanation, if needed.

oden, do you have any suggestions?

Comment by Oden Eriksson [ 2014-01-24 ]

I have a solution for this while working on the deps, so you can add the http://yum.mariadb.org/ repo and do "yum update" which replaces the distro packages, but..., then I hit a brick wall and got no answer for quite a while now: https://lists.launchpad.net/maria-developers/msg06586.html

Comment by Sergei Golubchik [ 2014-01-25 ]

replied to the maria-developers email.

what was your solution?

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