Bug#853008: [debian-mysql] Bug#853008: Bug#853008: mysql-server-5.7: purge could delete mariadb-server files with inadequate warning

2017-01-31 Thread Lars Tangvald
- j...@debian.org wrote: > On Mon, Jan 30, 2017 at 06:38:16PM +, Robie Basak wrote: > > > So how about this, just a sketch at the moment rather than a full > > > patch? > > > > Your sketch seems good to me, assuming that "dpkg-query --search" > is > > permitted from maintainer scripts

Bug#853008: [debian-mysql] Bug#853008: Bug#853008: mysql-server-5.7: purge could delete mariadb-server files with inadequate warning

2017-01-30 Thread Julian Gilbey
On Mon, Jan 30, 2017 at 06:38:16PM +, Robie Basak wrote: > > So how about this, just a sketch at the moment rather than a full > > patch? > > Your sketch seems good to me, assuming that "dpkg-query --search" is > permitted from maintainer scripts (I know there are some re-entrancy > problems

Bug#853008: [debian-mysql] Bug#853008: Bug#853008: mysql-server-5.7: purge could delete mariadb-server files with inadequate warning

2017-01-30 Thread Robie Basak
On Mon, Jan 30, 2017 at 06:02:30PM +, Julian Gilbey wrote: > There is an issue with this: the postrm's in mysql-server-5.7 and > mariadb-server-10.1 do significantly more than just removing > /var/lib/mysql when purging - see my (now broken because of this!) > patches on bug#852495: they also

Bug#853008: [debian-mysql] Bug#853008: Bug#853008: mysql-server-5.7: purge could delete mariadb-server files with inadequate warning

2017-01-30 Thread Julian Gilbey
On Mon, Jan 30, 2017 at 10:00:20AM +, Robie Basak wrote: > On Mon, Jan 30, 2017 at 10:45:44AM +0100, Lars Tangvald wrote: > > I think an ok short-term solution is to make a .postrm script for > > mysql-server-core, and move the delete logic there with the check on > > /usr/sbin/mysqld

Bug#853008: [debian-mysql] Bug#853008: Bug#853008: mysql-server-5.7: purge could delete mariadb-server files with inadequate warning

2017-01-30 Thread Robie Basak
On Mon, Jan 30, 2017 at 10:45:44AM +0100, Lars Tangvald wrote: > I think an ok short-term solution is to make a .postrm script for > mysql-server-core, and move the delete logic there with the check on > /usr/sbin/mysqld restored, for both MariaDB and MySQL. Then we don't need to > check on any

Bug#853008: [debian-mysql] Bug#853008: Bug#853008: mysql-server-5.7: purge could delete mariadb-server files with inadequate warning

2017-01-30 Thread Lars Tangvald
On 01/30/2017 10:28 AM, Robie Basak wrote: Hi Julian, Thank you for reporting this. On Mon, Jan 30, 2017 at 09:24:46AM +0100, Lars Tangvald wrote: Anyone else have any good ideas on how to handle this? I think the root cause here is that both MySQL and MariaDB packaging "own"

Bug#853008: [debian-mysql] Bug#853008: Bug#853008: mysql-server-5.7: purge could delete mariadb-server files with inadequate warning

2017-01-30 Thread Robie Basak
Hi Julian, Thank you for reporting this. On Mon, Jan 30, 2017 at 09:24:46AM +0100, Lars Tangvald wrote: > Anyone else have any good ideas on how to handle this? I think the root cause here is that both MySQL and MariaDB packaging "own" /var/lib/mysql. This causes confusion because even though