[debian-mysql] Bug#852495: Bug#852495: Bug#852495: Bug#852495: mariadb-server-10.[01]: purging old mariadb-server shuts down mariadb-server and removes init.d links

Julian Gilbey jdg at debian.org
Sun Jan 29 00:10:17 UTC 2017


Hi anyone looking at this patch!

I have tried to write a similar patch to apply to the current
mysql-5.7 server branch, and discovered a showstopping bug in the code
I wrote: it fails if it's a clean install!  The fix (now applied to
the github branch) is to change the new line in the
mysql-server-5.7.postinst patch from

olds=$(ls ... 2>/dev/null)

to

olds=$(ls ... 2>/dev/null || true)

so that it doesn't fail if any of the file patterns listed are not
found.

Attached is a similar patch for mysql-server-5.7, now tested on my
machine, against the head of mysql-5.7/debian/master on
git://anonscm.debian.org/pkg-mysql/mysql.git - happy for someone else
to also test it, and apply it if it they're happy with it.  (I also
removed the new but unnecessary "pathfind" function as invoke-rc.d is
in an essential package.)  The logic is exactly the same as the patch
for mariadb-10.1.

Best wishes,

   Julian
































-------------- next part --------------
A non-text attachment was scrubbed...
Name: mysql-5.7.diff
Type: text/x-diff
Size: 7850 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20170129/96daf10e/attachment.diff>


More information about the pkg-mysql-maint mailing list