Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2008 21:52:38 GMT
From:      Igor Mozolevsky <igor@hybrid-lab.co.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/125551: [PATCH] building WLAN userland should be optional
Message-ID:  <200807122152.m6CLqcB6031483@www.freebsd.org>
Resent-Message-ID: <200807122200.m6CM07uB047924@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         125551
>Category:       conf
>Synopsis:       [PATCH] building WLAN userland should be optional
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 12 22:00:07 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Igor Mozolevsky
>Release:        RELENG_7
>Organization:
>Environment:
>Description:
FreeBSD builds unnecessary WLAN userland utilities by default. There should be an option to switch that behaviour off.
>How-To-Repeat:
cd /usr/src && make world
>Fix:
Add WITHOUT_WLAN to src.conf to prevent WPA stuff (hostapd and wpa_supplicant) and wlandebug from being built. Patch attached.

There are probably other things that shouldn't be built if WLAN support is not required, if someone points them out to me I'll add them to the patch.

Patch attached with submission follows:

--- share/mk/bsd.own.mk.old	2008-07-12 19:37:55.000000000 +0100
+++ share/mk/bsd.own.mk	2008-07-12 19:38:32.000000000 +0100
@@ -358,6 +358,7 @@
     TCSH \
     TOOLCHAIN \
     USB \
+    WLAN \
     WPA_SUPPLICANT_EAPOL \
     ZONEINFO \
     ZFS
--- usr.sbin/Makefile.old	2008-07-12 19:39:17.000000000 +0100
+++ usr.sbin/Makefile	2008-07-12 19:42:36.000000000 +0100
@@ -184,9 +184,9 @@
 	vipw \
 	watch \
 	watchdogd \
-	wlandebug \
+	${_wlandebug} \
 	${_wlconfig} \
-	wpa \
+	${_wpa} \
 	${_ypbind} \
 	${_yp_mkdb} \
 	${_yppoll} \
@@ -296,6 +296,11 @@
 _usbdevs=	usbdevs
 .endif
 
+.if ${MK_WLAN} != "no"
+_wldebug= wlandebug
+_wpa= wpa
+.endif
+
 .if ${MACHINE_ARCH} == "arm"
 _kgmon=		kgmon
 .endif


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807122152.m6CLqcB6031483>