From owner-freebsd-bugs@FreeBSD.ORG Sat Jul 12 22:00:07 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D612D106567B for ; Sat, 12 Jul 2008 22:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id ADB538FC22 for ; Sat, 12 Jul 2008 22:00:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6CM07mX047925 for ; Sat, 12 Jul 2008 22:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6CM07uB047924; Sat, 12 Jul 2008 22:00:07 GMT (envelope-from gnats) Resent-Date: Sat, 12 Jul 2008 22:00:07 GMT Resent-Message-Id: <200807122200.m6CM07uB047924@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Igor Mozolevsky Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CAED8106564A for ; Sat, 12 Jul 2008 21:52:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id BD4F18FC15 for ; Sat, 12 Jul 2008 21:52:40 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m6CLqc0O031484 for ; Sat, 12 Jul 2008 21:52:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m6CLqcB6031483; Sat, 12 Jul 2008 21:52:38 GMT (envelope-from nobody) Message-Id: <200807122152.m6CLqcB6031483@www.freebsd.org> Date: Sat, 12 Jul 2008 21:52:38 GMT From: Igor Mozolevsky To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: conf/125551: [PATCH] building WLAN userland should be optional X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2008 22:00:07 -0000 >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: