[debian-mysql] mysql-server-5.5.postrm [was: Re: Resyncing with Ubuntu]

Robie Basak robie.basak at ubuntu.com
Tue Feb 11 09:28:04 UTC 2014


On Mon, Feb 10, 2014 at 09:31:51AM -0800, Clint Byrum wrote:
> Seems to me that Conflicts is wrong and trying to work around having
> to remove mysql-server-5.1 before installing mysql-server-5.5 is no
> longer a problem we'll have if we ship a mysql-server-5.6 that simply
> Breaks/Replaces mysql-server-5.5.  In this case mysql will be stopped,
> 5.6 will be configured, and then 5.5 will be removed.

So a user installs this mysql-server-5.6. mysql-server-5.5 is removed.

Now mysql-server-5.6 is installed, and mysql-server-5.5 is removed (but
not purged). So far so good.

The user now purges mysql-server-5.5 after observing it is no longer
used.

mysql-server-5.5.postrm runs, and deletes everything in /var/lib/mysql;
thus destroying files that mysql-server-5.5 is using.

AIUI, this was bug 307473.

I don't know what the correct solution is, but it seems to me that
removing /var/lib/mysql during purge is the wrong thing to do if at any
time some other package owns that directory.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20140211/3bf136fb/attachment.sig>


More information about the pkg-mysql-maint mailing list