After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 743388 - Option to disable wi-fi during compile/configure.
Option to disable wi-fi during compile/configure.
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: Wi-Fi
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-01-23 04:06 UTC by dE
Modified: 2015-02-15 13:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: add compile option to disable building of Wi-Fi plugin (2.72 KB, patch)
2015-01-23 13:32 UTC, Thomas Haller
none Details | Review
build: add compile option to disable building of Wi-Fi plugin (4.79 KB, patch)
2015-01-23 18:25 UTC, Thomas Haller
none Details | Review

Description dE 2015-01-23 04:06:43 UTC
Currently the configure script has no option to disable wifi; however this's very useful since NM is used on servers also.
Comment 1 Thomas Haller 2015-01-23 13:32:17 UTC
Created attachment 295272 [details] [review]
build: add compile option to disable building of Wi-Fi plugin

Before, the Wi-Fi plugin was always build. Users who didn't want
to use it would simply drop "libnm-device-plugin-wifi.so".

Add a compile time option to disable needlessly building the plugin.
Comment 2 Dan Williams 2015-01-23 15:50:10 UTC
If you're disabling WiFi, then there's no reason to run the configure-time checks for:

1) WEXT
2) linux/nl80211.h
3) HAVE_NL80211_CRITICAL_PROTOCOL_CMDS
Comment 3 Thomas Haller 2015-01-23 18:25:30 UTC
Created attachment 295297 [details] [review]
build: add compile option to disable building of Wi-Fi plugin

Before, the Wi-Fi plugin was always build. Users who didn't want
to use it would simply drop "libnm-device-plugin-wifi.so".

Add a compile time option to disable needlessly building the plugin.
Comment 4 Dan Winship 2015-01-23 18:32:40 UTC
How about --enable-device-wifi; someone is eventually going to request the ability to not build wwan and bluetooth too, and we might as well have consistent naming for all of them.

Maybe even --enable-device-FOO=[yes|no|plugin] for extra sexiness...
Comment 5 Thomas Haller 2015-01-24 18:44:39 UTC
(In reply to comment #4)
> How about --enable-device-wifi; someone is eventually going to request the
> ability to not build wwan and bluetooth too, and we might as well have
> consistent naming for all of them.
> 
> Maybe even --enable-device-FOO=[yes|no|plugin] for extra sexiness...

all the compile options are completely inconsistent. Would be a great to clean this up.

But regarding --enable-wifi, I feel that is correct. There should be only one major configure option to turn on/off Wi-Fi support. FWIW, it matches --enable-wimax.
Comment 6 Dan Williams 2015-01-30 03:31:05 UTC
Yeah I think --enable-wifi is OK for now, we can do a larger cleanup at some point and synchronize to --enable-device-FOO=XXX.

Rest looks OK to me.
Comment 8 dE 2015-02-15 13:52:40 UTC
Thanks!!

Fastest responce I've ever seen!

I'll ensure to merge this in Gentoo.