[debian-mysql] Bug#787533: mariadb-common: modifies conffiles (policy 10.7.3): /etc/mysql/my.cnf

Andreas Beckmann anbe at debian.org
Thu Jun 11 18:56:50 UTC 2015


On 2015-06-08 13:52, Otto Kekäläinen wrote:
> Hello!
> 
> 2015-06-02 18:07 GMT+03:00 Andreas Beckmann <anbe at debian.org>:
> ..
>> during a test with piuparts I noticed your package modifies conffiles.
>> This is forbidden by the policy, see
>> https://www.debian.org/doc/debian-policy/ch-files.html#s-config-files
> 
> This my.cnf modification was introduced in commit
> https://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.0.git/commit/?id=90b6bde63c8128eb7f54f16dfeec88081e4bdb0d

That is, sorry, so utterly wrong ...
Renaming the old my.cnf must be done by mysql-common (using
dpkg-maintscript-helper mv_conffile), because that is the only way to
make dpkg forget about the old conffile (and its hashes) that will be
replaced by a symlink which is (probably) managed by scripts and not by
dpkg.

> It as absolutely necessary to do, otherwise the package is broken.

Depends: mysql-common (>= FIXED_VERSION)

And yes, this config file transition should have started in
mysql-common, not mariadb.


Andreas



More information about the pkg-mysql-maint mailing list