Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164551 - baselayout incompatible with new wpa_supplicant.conf ctrl_interface configuration.
Summary: baselayout incompatible with new wpa_supplicant.conf ctrl_interface configura...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 14:38 UTC by Keith Maxwell
Modified: 2007-04-05 11:23 UTC (History)
1 user (show)

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


Attachments
Fix the issue (wpa_supplicant.patch,468 bytes, patch)
2007-01-30 19:06 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Maxwell 2007-01-30 14:38:27 UTC
ctrl_interface_group was deprecated in wpa_supplicant v 0.5.5.

This "variable" was replace with a new configuration/syntax:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel

wpa_supplicant parses this in  wpa_supplicant_ctrl_iface_path in ctrl_iface_unix.c.

baselayout attempts to read this variable into ctrl_dir in /lib/rcscripts/net/wpa_supplicant.sh using sed:

ctrl_dir=$(sed -n -e 's/[ \t]*#.*//g;s/[ \t]*$//g;s/^ctrl_interface=//p' "${cfgfile}")

In the current CVS this appears to happen on line 236.

This sed expression is incompatible with the new configuration method.

I would provide a patch if I was better with sed, sorry.

A workaround is to continue using the old syntax until it is removed, but a move to the new syntax is inevitable.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2007-01-30 19:06:22 UTC
Created attachment 108648 [details, diff]
Fix the issue

I've just committed this patch to our svn repo to fix this.

Want to test it and get back to me?

Thanks
Comment 2 Renato Caldas 2007-03-31 19:31:00 UTC
It seems to work fine..

I guess it can be released.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-04-05 11:23:19 UTC
Fixed in 1.12.10