[MDEV-3253] LP:587850 - Using "mysql-common" as a package name for a MariaDB package is showstopper for adding us into any Debian repository Created: 2010-05-31 Updated: 2014-06-20 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Henrik Ingo (Inactive) | Assignee: | Kristian Nielsen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Background: MariaDB deb packages contain packages "mysql-common" and "libmysqlclient16". OurDelta additionally ships a "libmysqlclient15off" package. This issue was in fact reported once, but we decided to ignore it then: https://bugs.launchpad.net/maria/+bug/481298 Problem: The current package naming seems to have been chosen as a work around to solve some behavior where APT would prefer to install a MySQL package instead of an Ourdelta package (and this is inherited in current MariaDB packaging). (I will post in a comment an IRC discussion of the details with more info.) Solution: There could be many different solutions. At the moment it is unclear why apt-get proposes to install a package that shouldn't even be considered since it "Conflict:"s with a package being installed instead. If this is true, it may be considered a bug in apt-get. (This needs to be re-verified as a first step of fixing this bug.) Alternatively: for "mysql-common" we could decide that on Debian platforms we in fact "Depend:" on the original MySQL package and then provide additions in a "mariadb-common" package that installs additional configurations in /etc/mysql/conf.d/ and similarly we could omit to provide a libmysqlclient16 package at all. |
| Comments |
| Comment by Henrik Ingo (Inactive) [ 2010-05-31 ] |
|
Re: Using "mysql-common" as a package name for a MariaDB package is showstopper for adding us into any Debian repository |
| Comment by Henrik Ingo (Inactive) [ 2010-05-31 ] |
|
Re: Using "mysql-common" as a package name for a MariaDB package is showstopper for adding us into any Debian repository |
| Comment by Henrik Ingo (Inactive) [ 2010-05-31 ] |
|
Re: Using "mysql-common" as a package name for a MariaDB package is showstopper for adding us into any Debian repository |
| Comment by Kristian Nielsen [ 2010-06-03 ] |
|
Re: Using "mysql-common" as a package name for a MariaDB package is showstopper for adding us into any Debian repository A full list of packages that depend on libmysqlclient can be obtained from apt-cache rdepends libmysqlclient15off The mysql-common package contains /etc/mysql/my.cnf. It seems to me that mariadb and mysql has to use the same my.cnf, since they use the same data directory /var/lib/mysql. Otherwise a user switching from mysql to mariadb or vice versa could experience all kinds of problems when the my.cnf suddenly changes server configuration. |
| Comment by Sergei Golubchik [ 2010-06-28 ] |
|
Re: Using "mysql-common" as a package name for a MariaDB package is showstopper for adding us into any Debian repository |
| Comment by Kristian Nielsen [ 2012-03-02 ] |
|
Re: Using "mysql-common" as a package name for a MariaDB package is showstopper for adding us into any Debian repository provide a mysql-common package in the MariaDB repo for completeness, but it is perfectly possible to use MariaDB with the standard mysql-common package from the main repos. MariaDB-specific config is done through a separate package mariadb-common. As for package libmysqlclient16 - this is an empty package that depends on libmariadbclient16. This is necessary as long as MariaDB is maintained in a 3rd-party repository. There are other packages with versioned dependencies on libmysqlclient16. To replace libmysqlclient.so with the MariaDB version, we need to provide a real libmysqlclient package to satisfy these dependencies. But when/if MariaDB is integrated into the main repositories, this can be handled with the alternatives system. Eg. main libmysqlclient16 package can be a virtual package that depends: on libmariadbclient16 | libmysqlclient16-oracle. So this should be fixed now. |
| Comment by Rasmus Johansson (Inactive) [ 2012-03-02 ] |
|
Launchpad bug id: 587850 |