Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 115187

Summary: sysvinit scripts fail with bash-3.1
Product: Gentoo Linux Reporter: Michael Zeising <michael>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Zeising 2005-12-11 05:18:47 UTC
After the upgrade to bash-3.1 some essential sysvinit scripts abort with syntax
errors. I had to downgrade to bash-3.0-r14 to be able to use my system again.

Reproducible: Always
Steps to Reproduce:
1. Upgrade to bash-3.1
2. Boot your system with sysvinit
3.

Actual Results:  
/lib/rcscripts/sh/rc-daemon.sh and /etc/init.d/net.lo fail with syntax errors


# rc

/lib/rcscripts/sh/rc-daemon.sh: line 328: syntax error near unexpected token `('
/lib/rcscripts/sh/rc-daemon.sh: line 328: `     local -a RC_DAEMONS=()
RC_PIDFILES=()'
/etc/init.d/net.eth0: line 286: syntax error near unexpected token `('
/etc/init.d/net.eth0: line 286: `       local -a provide=() provide_list=()
after=() dead=() sorted=() sortedp=()'
 * ERROR:  "/etc/init.d/net.eth0" has syntax errors in it; aborting ...
/lib/rcscripts/sh/rc-daemon.sh: line 328: syntax error near unexpected token `('
/lib/rcscripts/sh/rc-daemon.sh: line 328: `     local -a RC_DAEMONS=()
RC_PIDFILES=()'
/etc/init.d/net.lo: line 286: syntax error near unexpected token `('
/etc/init.d/net.lo: line 286: ` local -a provide=() provide_list=() after=()
dead=() sorted=() sortedp=()'
 * ERROR:  "/etc/init.d/net.lo" has syntax errors in it; aborting ...
/lib/rcscripts/sh/rc-daemon.sh: line 328: syntax error near unexpected token `('
/lib/rcscripts/sh/rc-daemon.sh: line 328: `     local -a RC_DAEMONS=()
RC_PIDFILES=()'
/lib/rcscripts/sh/rc-daemon.sh: line 328: syntax error near unexpected token `('
/lib/rcscripts/sh/rc-daemon.sh: line 328: `     local -a RC_DAEMONS=()
RC_PIDFILES=()'
/etc/init.d/net.eth0: line 286: syntax error near unexpected token `('
/etc/init.d/net.eth0: line 286: `       local -a provide=() provide_list=()
after=() dead=() sorted=() sortedp=()'
 * ERROR:  "/etc/init.d/net.eth0" has syntax errors in it; aborting ...
/lib/rcscripts/sh/rc-daemon.sh: line 328: syntax error near unexpected token `('
/lib/rcscripts/sh/rc-daemon.sh: line 328: `     local -a RC_DAEMONS=()
RC_PIDFILES=()'
/etc/init.d/net.lo: line 286: syntax error near unexpected token `('
/etc/init.d/net.lo: line 286: ` local -a provide=() provide_list=() after=()
dead=() sorted=() sortedp=()'
 * ERROR:  "/etc/init.d/net.lo" has syntax errors in it; aborting ...
 * ERROR:  Problem starting needed services.
 *         "sshd" was not started.

# emerge info

Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.14-gentoo-r4 i686)
=================================================================
System uname: 2.6.14-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre11
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -m3dnow -msse
-msse2 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -m3dnow -msse
-msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac acpi alsa apm audiofile avi berkdb bitmap-fonts
browserplugin bzip2 cdr crypt dts dvd dvdr eds emboss encode esd exif expat fam
ffmpeg flac foomaticdb fortran gdbm gif glut gnome gpm gstreamer gtk gtk2 guile
hal imlib ipv6 java jpeg lcms libg++ libwww mad mikmod mmx mng motif mozilla mp3
mpeg ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss pam pcre pdflib
perl php png postgres python quicktime readline sdl spell sse ssl svg tcpd
threads tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales
vorbis win32codecs xine xml xml2 xv xvid zlib linguas_de userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-12-11 05:20:57 UTC

*** This bug has been marked as a duplicate of 115142 ***