My system is a desktop which plugs in via ethernet. I have no need for Network-Manager on my system. Is there any reason to have it as a dependency? Reproducible: Always
It would also be great if we could have +cups and -samba and eliminate the need for cifs-utils and samba.
Created attachment 354270 [details, diff] Add networkmanager and smbclient use flags to gnome-control-center
It's not as easy as add the USE flags, you need configure checks as, otherwise, you are still building the same code (that requires NM and samba)
gnome-control-center autodetects in its configure script if network-manager and samba are on the system. If they aren't it automatically disables it From build log checking for NETWORK_MANAGER... no configure: WARNING: *** Network panel will not be built (NetworkManager not found) *** checking for MM_GLIB... no configure: WARNING: *** Network panel will not be built with ModemManager1 support (libmm-glib not found) *** checking for BLUETOOTH... yes checking for SMBCLIENT... no It built fine for me.
But it leads to automagic depend: http://www.gentoo.org/proj/en/qa/automagic.xml
Created attachment 354576 [details, diff] Make networkmanager and modemmanager optional This is an addon to the existing modemmanger optional patch to make networkmanager optional as well.
Created attachment 354578 [details] ebuild updated to properly conditionalize networkmanager Howis this?
Created attachment 354580 [details, diff] Updated patch to make both network manager and modem manager optional
Created attachment 354582 [details] Don't make cups mandatory I looked into making Samba optional and while it doesn't look that hard I don't have time to do it now. Can we remove the hard requires from gnome-light then? This way I can have +cups globally but disable it for gnome-control-center.
I've added my patch to the upstream bug as well.
Is there anything wrong with it now?
*** Bug 483118 has been marked as a duplicate of this bug. ***
Can we at least make CUPS optional? It requires no patch to gnome-control-center and is purely an ebuild fix.
*** Bug 504818 has been marked as a duplicate of this bug. ***
Bug 504818 was marked duplicate. It asks for making modemmanager not depend on ppp, because gnome-control-center pulls in ppp via NetworkManager at the moment. See my suggested patch https://bugs.gentoo.org/attachment.cgi?id=372940&action=edit
Created attachment 402456 [details, diff] Updated patch to make NetworkManager optional for 3.14.5 This should make NetworkManager optional. It won't be possible to build gnome-control-center with NetworkManager but without ModemManager however. The ebuild should be updated to pass --{enable,disable}-network.
I make NM optional again in 3.16 ebuilds.
*** Bug 606462 has been marked as a duplicate of this bug. ***
For 3.24 we currently have hard required cups and samba. We should try to make at least samba optional again before unmasking, or perhaps both (but the main incentive for USE=cups here I believe was always to avoid samba, not cups really). Adding blocker for tracking and not forgetting. I believe Gilles was looking at the samba dep based on 3.22 at least and found it sholudn't be hard either, hopefully the same for 3.24.
I've added (p.masked) gnome-control-center-3.24.2 with USE=cups again, which also avoids smbclient (but in expense of losing all of the printers panel again). But I didn't really test the enabled case yet, so a couple success reports on that welcome. It would still be nice to make smbclient optional separately, as to have a full printers panel for native cups printers without windows printers support and smbclient dep. This involves various code changes related to SMB auth code in various printers panel C code and UI XML (the GtkBuilder XML can probably stay as-is, just need to not load those resources when smb disabled). This was too much for me to chew back when I worked on it, so moved on for the time being. If anyone is interested to pick, I have a dirty patch that starts the process in some places.