[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#675162: lsb-base: mysql doesn't start



severity 675162 serious
tags 675162 +patch +pending
thanks

Le 30.05.2012 11:50, Kamen Naydenov a écrit :
> Package: lsb-base
> Version: 4.1+Debian5
> Severity: normal
> 
> Dear Maintainer,
> 
> after lsb-base upgrade (Wed May 30 12:41:22 EEST 2012: [UPGRADE] lsb-base:amd64
> 4.1+Debian4 -> 4.1+Debian5) mysql fail to start on boot.
> I try ot run it, and receive following error:
> LANG=C sudo invoke-rc.d mysql start
> /lib/lsb/init-functions: line 428: FANCYTTY: unbound variable
> 
> After that I check that mysql works running it directly invoking
> /usr/bin/mysqld_safe

Hi Kamen, and thanks for your bugreport,

this is the newborn incarnation of the #390085 fixed in lsb-base 3.1-17.
I can confirm the reported behaviour and will apply the attached patch
to the next upload of lsb, hence hereby tagging +patch and +pending. By
the way, this bug is of serious severity as it breaks unrelated packages.

Cheers,

OdyX



From 0340d15805a60be8cc09cc209fe57cd22357889c Mon Sep 17 00:00:00 2001
From: Didier Raboud <odyx@debian.org>
Date: Wed, 30 May 2012 12:58:54 +0200
Subject: [PATCH] init-functions: Cope with init scripts that use `set -u`.

When sourcing /etc/default/rcS for FANCYTTY, cope with its eventual
non-existence by enforcing `set +u` in the $() subshell.

Git-Dch: Full
Closes: #675162
Reported-by: Kamen Naydenov <pau4o@kamennn.eu>
---
 init-functions |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/init-functions b/init-functions
index d8a7e98..8736693 100644
--- a/init-functions
+++ b/init-functions
@@ -425,5 +425,5 @@ for hook in $(run-parts --lsbsysinit --list /lib/lsb/init-functions.d 2>/dev/nul
     [ -r $hook ] && . $hook || true
 done
 
-FANCYTTY=$([ -e /etc/default/rcS ] && . /etc/default/rcS && echo $FANCYTTY)
+FANCYTTY=$(set +u; [ -e /etc/default/rcS ] && . /etc/default/rcS && echo $FANCYTTY)
 [ -e /etc/lsb-base-logging.sh ] && . /etc/lsb-base-logging.sh || true
-- 
1.7.2.5

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: