Package: mysql-server-5.5
Version: 5.5.30+dfsg-1
Severity: normal
Tags: patch

When /etc/mysql/debian-start echoes no text the value of $output 
/etc/init.d/mysql:120 is zero-length. This causes [ -n "$output ] to fail and 
as we are under set -e we exit the script at that point with a non-zero exit 
status.

 output=$(/etc/mysql/debian-start)
 [ -n "$output" ] && log_action_msg "$output"

This will cause apt to fail configuration of the package.

I would suggest the following to fix it

 [ -n "$output" ] && log_action_msg "$output" || true

This is not a problem with the standard /etc/mysql/debian-start as it echoes 
copious text but it is not unreasonable to allow a user to silence 
/etc/mysql/debian-start.



-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mysql-server-5.5 depends on:
ii  adduser                3.113+nmu3
ii  debconf [debconf-2.0]  1.5.49
ii  initscripts            2.88dsf-41
ii  libc6                  2.13-38
ii  libdbi-perl            1.622-1
ii  libgcc1                1:4.7.2-5
ii  libstdc++6             4.7.2-5
ii  lsb-base               4.1+Debian8
ii  mysql-client-5.5       5.5.30+dfsg-1
ii  mysql-common           5.5.30+dfsg-1
ii  mysql-server-core-5.5  5.5.30+dfsg-1
ii  passwd                 1:4.1.5.1-1
ii  perl                   5.14.2-20
ii  psmisc                 22.19-1+deb7u1
ii  zlib1g                 1:1.2.7.dfsg-13

Versions of packages mysql-server-5.5 recommends:
ii  heirloom-mailx [mailx]  12.5-2
ii  libhtml-template-perl   2.91-1

Versions of packages mysql-server-5.5 suggests:
pn  tinyca  <none>

-- Configuration Files:
/etc/mysql/debian-start changed [not included]

-- debconf information excluded
--- /etc/init.d/mysql.orig	2012-07-17 15:17:33.000000000 +0100
+++ /etc/init.d/mysql	2013-04-10 18:04:05.594603956 +0100
@@ -118,7 +118,7 @@
                 log_end_msg 0
 	        # Now start mysqlcheck or whatever the admin wants.
 	        output=$(/etc/mysql/debian-start)
-		[ -n "$output" ] && log_action_msg "$output"
+		[ -n "$output" ] && log_action_msg "$output" || true
 	    else
 	        log_end_msg 1
 		log_failure_msg "Please take a look at the syslog"

Reply via email to