Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439870 - net-wireless/wpa_supplicant - remove USE=debug (or enable it by default)
Summary: net-wireless/wpa_supplicant - remove USE=debug (or enable it by default)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-27 13:02 UTC by Khayyam
Modified: 2012-10-29 04:45 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Khayyam 2012-10-27 13:02:40 UTC
The 'debug' useflag on net-wireless/wpa-supplicant enables CONFIG_DEBUG_FILE=y however this only enables "support for writing debug log to a file" and not the code to provide '-dd' (-ddd with >=wpa-supplicant.1.0) and '-qq'. The debug file is not used unless the '-f' switch is provided and only adds an additional 4k to the wpa_supplicant binary.

with USE="-debug" on net-wireless/wpa_supplicant-1.0-r1
# ls -l /usr/sbin/wpa_supplicant
-rwxr-xr-x 1 root root 413052 Oct 23 21:03 /usr/sbin/wpa_supplicant
# ls -l /usr/bin/wpa_cli
-rwxr-xr-x 1 root root 56196 Oct 23 21:03 /usr/bin/wpa_cli

with USE="debug" on net-wireless/wpa_supplicant-1.0-r1
# ls -l /usr/sbin/wpa_supplicant
-rwxr-xr-x 1 root root 417148 Oct 25 01:45 /usr/sbin/wpa_supplicant
# ls -l /usr/bin/wpa_cli
-rwxr-xr-x 1 root root 56196 Oct 25 01:45 /usr/bin/wpa_cli

Currently, to create logfiles that can be pastebin'd or included in codeblocks (for posting in the forum or #gentoo) the user must be told to enable the 'debug' useflag so that the output of '-d', '-dd' or '-ddd' can be logged to a file, and as the switch doesn't enable 'debugging' itself it would seem sensible to have CONFIG_DEBUG_FILE=y enabled by default for this purpose and the 'debug' useflag dropped.

This being the case the user wouldn't need to re-emerge, but simply enable logging via /etc/conf.d/net eg:

wpa_supplicant_wlan0="-Dnl80211 -f /var/log/wpa_supplicant.log -dd"

best ... khay
Comment 1 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2012-10-28 09:08:29 UTC
Fixed, from now on, the debug use flag has been removed, and the option is always enabled.
Comment 2 Khayyam 2012-10-29 04:45:16 UTC
(In reply to comment #1)
> Fixed, from now on, the debug use flag has been removed, and the option is
> always enabled.

bjarke ... thank you for the speedy action on this.

best regards ... khay