Bug #65534 Mysql-cluster rpms for EL6 releases cannot be installed
Submitted: 6 Jun 2012 10:59 Modified: 12 Mar 2014 13:14
Reporter: Dennis Jacobfeuerborn Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Packaging Severity:S2 (Serious)
Version:7.2.6 OS:Linux (CentOS 6.2)
Assigned to: CPU Architecture:Any

[6 Jun 2012 10:59] Dennis Jacobfeuerborn
Description:
Current releases of CentOS/RHEL 6 install mysql-libs which is required for other important packages such as postfix and cronie. The server rpms of mysql-cluster cannot be installed because they contain files that collide with the mysql-libs package and as a result mysql-cluster cannot be installed on the current releases of EL 6 systems.

How to repeat:
Try to install the server rpm on a current release of any RHEL 6 based distribution.

Suggested fix:
The packaging needs to be fixed.
[6 Jun 2012 19:04] Sveta Smirnova
Thank you for the report.

Why --nodeps or replacing mysql-libs package with libraries of MySQL Cluster package do not work for you?
[6 Jun 2012 20:09] Dennis Jacobfeuerborn
"--nodeps" should only be used for debugging/testing and not on a production system because it breaks dependency resolution. Using this option results in the mysql-cluster package overwriting files of the mysql-libs package and a subsequent verification of mysql-libs with "mysql -V" will fail because of that.

The "mysql-libs" package can only be replaced if the cluster packages provide a compatible alternative.

The "MySQL-Cluster-shared-compat-gpl" contains the correct libraries but it seems to be missing a provide and/or obsolete for "mysql-libs".
[6 Jun 2012 21:11] Dennis Jacobfeuerborn
How are the *-compat packages built?

I rebuilt the src.rpm (MySQL-Cluster-gpl-7.2.6-1.el6.src.rpm) but that apparently isn't used to build the compat packages. I was trying to see if adding a "Provides: mysql-libs" to the spec would allow the original mysql-libs to be removed.

While rebuilding the package I noticed that two BuildRequires are missing: cmake and libaio-devel
[11 Jun 2012 18:02] Sveta Smirnova
Thank you for the update.

Sounds reasonable. Verified as described.
[14 Jun 2012 11:04] Dennis Jacobfeuerborn
How can I rebuild the "MySQL-Cluster-shared-compat-gpl" rpm? The download directory contains a src.rpm that can be used to build all the other rpms but there seems to be no obvious way to rebuild the shared-compat package.
I'd like to rebuild it with the added provides mentioned above and test if that fixes the issue.
[15 Jun 2012 2:30] Dennis Jacobfeuerborn
A blog post about this problem has now appeared on http://planet.mysql.com/ :
http://www.skysql.com/blogs/kolbe/mysql-mariadb-rpms-enterprise-linux-6

This blog post talks about the same problem for regular MySQL releases and that this issue has been fixed by recent 5.5 releases (by adding the mysql-libs provides to the shared-compat package). The same fix should be applied here.
[12 Mar 2014 13:14] Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

Documented fix as follows in the NDB 7.2.14 changelog:

        A fix has been made in this release correcting a number of
        issues found in some recent MySQL Cluster RPM server packages,
        including dependencies on the mysql-server package and conflicts
        with the mysql-libs package needed by other common applications.
        Platforms known to have been affected by these issues include
        CentOS 6, Red Hat Enterprise Linux 6, and Oracle Linux 6.
      
Closed.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html