[debian-mysql] Bug#850216: Bug#850216: Bug#850216: Bug#850216: mysql-server-5.6: Listens on * by default after installation (related to use of alternatives)

Robie Basak robie.basak at ubuntu.com
Thu Jan 19 15:01:47 UTC 2017


Hi Otto,

On Sun, Jan 15, 2017 at 09:33:24PM +0200, Otto Kekäläinen wrote:
> 2017-01-13 13:18 GMT+02:00 Robie Basak <robie.basak at ubuntu.com>:
> > So I think the configure-symlinks code needs to move from mariadb-common
> > to mariadb-server-10.1 in addition.
> 
> The MariaDB client programs might also have MariaDB specific
> configuration lines, which according to this new config scheme should
> be placed in /etc/mysql/mariadb.cnf.d/, and for them to be read,
> mariadb-common must control the configure-symlinks.

OK.

> Maybe we should mark both the client and server packages to conflict
> each other, and for mariadb-common to conflict on mysql-client and
> mysql-server?

I think your statement above means that this must happen. Anything that
requires a custom /etc/mysql/my.cnf (rather than the generic one
provided in src:mysql-defaults) necessarily *must* conflict with
anything else that requires a different custom /etc/mysql/my.cnf.

I wonder if we should have both mariadb-common and mysql-server-5.7 (ie.
everything that asks for a custom my.cnf symlink) declare a virtual
package? So add:

  Provides: mysql-my-cnf
  Conflicts: mysql-my-cnf

to both mariadb-common and to mysql-server-5.7.

To be clear, mysql-common would not change. It would continue to provide
the "default" symlink for my.cnf for packages that want them, and we
should continue to negotiate any changes needed to that.

The rule would be: any package that arranges a /etc/mysql/my.cnf
symlink, usually via /usr/share/mysql-common/configure-symlinks, MUST
Provide and Conflict mysql-my-cnf, with the exception of mysql-common.

Then we wouldn't have to track individual conflicts related to my.cnf. I
think apt should be able to figure things out then, right?

Robie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20170119/52c91c4b/attachment.sig>


More information about the pkg-mysql-maint mailing list