Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112938 - Syntax error in baselayout script for wpa_supplicant
Summary: Syntax error in baselayout script for wpa_supplicant
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-18 10:43 UTC by Daniele Gaffuri
Modified: 2005-11-21 02:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixes the issue (wpa_supplicant.patch,738 bytes, patch)
2005-11-21 01:41 UTC, Roy Marples (RETIRED)
Details | Diff
Fixes the issue (wpa_supplicant.patch,736 bytes, patch)
2005-11-21 01:56 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniele Gaffuri 2005-11-18 10:43:23 UTC
When starting my wireless at office I get a syntax error from baselayout script


Reproducible: Always
Steps to Reproduce:
1. Start the wireless interface
2.
3.

Actual Results:  
/lib/rcscripts/net.modules.d/wpa_supplicant: array assign: line 326: syntax
error near unexpected token `('
/lib/rcscripts/net.modules.d/wpa_supplicant: array assign: line 326: `IEEE
802.1X (NO WPA)'

The network starts and get an address from DHCP.

Expected Results:  
No errors

Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.0_pre10
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
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.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acl acpi alsa apache2 arts audiofile avi berkdb bitmap-fonts
bzip2 cdr crypt cups curl dbus dvdr dvdread emboss encode exif expat fam ffmpeg
foomaticdb gdbm gif gmp gpm gstreamer hal idn ieee1394 imlib java jpeg kde
kerberos lcms ldap libg++ libwww logrotate mad mikmod mmx mng motif mp3 mpeg
ncurses nls nptl nvidia odbc ogg oggvorbis opengl oracle pam pcmcia pcre pdflib
perl png python qt quicktime readline samba sdl spell sse sse2 ssl tcltk tcpd
threads tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis wifi
xml2 xmms xv xvid zlib linguas_en linguas_it userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY

I have sys-apps/baselayout-1.12.0_pre10-r1

After connection:
~ # wpa_cli -ieth1 status
bssid=00:0f:20:68:17:d5
ssid=reply54
pairwise_cipher=NONE
group_cipher=NONE
key_mgmt=IEEE 802.1X (no WPA)
wpa_state=COMPLETED
ip_address=10.14.101.80
Supplicant PAE state=AUTHENTICATED
suppPortStatus=Authorized
EAP state=SUCCESS
selectedMethod=25 (EAP-PEAP)
EAP TLS cipher=RC4-MD5
EAP-PEAPv0 Phase2 method=MSCHAPV2
Comment 1 Roy Marples (RETIRED) gentoo-dev 2005-11-21 01:41:22 UTC
Created attachment 73283 [details, diff]
Fixes the issue

Please test the attached patch.

cd /lib/rcscripts
patch -p0 < /path/to/patch
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-11-21 01:48:45 UTC
.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-11-21 01:56:45 UTC
Created attachment 73285 [details, diff]
Fixes the issue

Try this patch instead ;)
Comment 4 Daniele Gaffuri 2005-11-21 02:32:25 UTC
I've tested, it's OK now. Thanks
Comment 5 Roy Marples (RETIRED) gentoo-dev 2005-11-21 02:57:29 UTC
Patch comitted to our svn repo - will be in baselayout-1.12.0_pre11