[debian-mysql] Bug#917872: Automatically uninstall/reinstall Mroonga plugin on upgrade
Otto Kekäläinen
otto at debian.org
Mon Dec 31 08:50:44 GMT 2018
Package: mariadb-plugin-mroonga
Version: 10.3.11-1
Severity: normal
Tags: newcomer
The postinst of Mroong install is, and the postrm uninstalls it
correctly. There is however no code that would on a
postinst/preinst/upgrade scenario reinstall the plugin if the path has
changed (eg. as it does on in MariaDB 10.3 when the soname path
updates from libmariadb18 to libmaridb19).
*********************************************************************************
mariadb-10.3/debian$ cat mariadb-plugin-mroonga.postinst
#!/bin/sh
set -e
# Install Mroonga
# No user or password parameter is required with new MariaDB that
# has unix socket authentication support by default.
mysql < /usr/share/mysql/mroonga/install.sql || true
# Always exit with success instead of leaving dpkg in a broken state
#DEBHELPER#
*********************************************************************************
mariadb-10.3/debian$ cat mariadb-plugin-mroonga.prerm
#!/bin/sh
set -e
# Install Mroonga
# No user or password parameter is required with new MariaDB that
# has unix socket authentication support by default.
mysql < /usr/share/mysql/mroonga/uninstall.sql || true
# Always exit with success instead of leaving dpkg in a broken state
#DEBHELPER#
*********************************************************************************
More information about the pkg-mysql-maint
mailing list