[debian-mysql] Bug#545760: mysql-dfsg-5.1: Don't upgrade if there is an ndb management node configured

Mathias Gug mathiaz at ubuntu.com
Tue Sep 8 23:18:12 UTC 2009


Package: mysql-dfsg-5.1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu karmic


In Ubuntu, we've applied the attached patch to achieve the following:

   * Don't upgrade if there is an ndb management node configured. 
     (LP: #413792).

See https://bugs.launchpad.net/bugs/413792 for more information.

-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (500, 'karmic-updates'), (500, 'karmic-security'), (500, 'karmic-proposed'), (500, 'karmic')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-9-generic (SMP w/2 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
=== modified file 'debian/mysql-server-5.1.preinst'
--- debian/mysql-server-5.1.preinst	2009-07-22 17:45:37 +0000
+++ debian/mysql-server-5.1.preinst	2009-09-08 21:22:59 +0000
@@ -49,7 +49,7 @@
 this_version=5.1
 
 # Abort if an NDB cluster is in use.
-if egrep -q -r '^[^#]*ndb.connectstring' /etc/mysql/; then
+if egrep -qi -r '^[^#]*ndb.connectstring|^[:space:]*\[[:space:]*ndb_mgmd' /etc/mysql/; then
   db_fset mysql-server/no_upgrade_when_using_ndb seen false || true
   db_input high mysql-server/no_upgrade_when_using_ndb || true
   db_go


More information about the pkg-mysql-maint mailing list