View previous topic :: View next topic |
Author |
Message |
Alain De Vos n00b
Joined: 20 Nov 2019 Posts: 15
|
Posted: Thu Nov 21, 2019 12:10 am Post subject: Noob question , strategy for use variable in make.conf |
|
|
Do you put as much as possible in the use of make.conf or as little as possible or something in between.
Which strategy and how to implement do in practice?
And does a flag for instance gtk has the same meaning for all packages?
Could it be for one it means force gtk2 for another build also with gtk3 ? |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Thu Nov 21, 2019 12:40 am Post subject: |
|
|
An answer to your 3rd question:
Quote: | And does a flag for instance gtk has the same meaning for all packages?
Could it be for one it means force gtk2 for another build also with gtk3 ? |
There's a nice tool called 'ufed' which displays all the USE flags and their meanings for the various packages. Install it and start it. Scroll down to 'gtk' (or type 'gtk'). It will show, among other entries:
Code: | USE flag 'gtk':
- dev-libs/libdbusmenu : Enable support for GTK+2
- www-client/netsurf : Build GTK3 GUI
- media-plugins/audacious-plugins : Build with GTK interface instead of Qt5
|
So yes, USE flags can have slightly different meanings for different packages. |
|
Back to top |
|
|
Alain De Vos n00b
Joined: 20 Nov 2019 Posts: 15
|
Posted: Thu Nov 21, 2019 12:49 am Post subject: |
|
|
Thanks this is painfull.
I have 133 flags in my use variable of make.conf.
Maybe i just remove them one by one.
This needs alot of chekking. |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
Posted: Thu Nov 21, 2019 1:16 am Post subject: |
|
|
The profile you selected already defines a couple of USE flags. You can remove those USE flags from make.conf. You can also remove USE flags which are obsolete (like qt4) or which are not used by any of the packages that are installed on your machine.
Please read the article about USE flags in the handbook (in case you haven't done yet): https://wiki.gentoo.org/wiki/Handbook:Parts/Working/USE, especially chapters '2.1permanent USE flags' and '2.2 USE flags for individual packages'.
After that, you could try to move some USE flags from make.conf to /etc/portage/package.use. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Thu Nov 21, 2019 5:53 am Post subject: |
|
|
I don't set USE in make.conf at all, but:
Code: | ~ $ du -sh --apparent-size /etc/portage/package.use/
19K /etc/portage/package.use/ |
|
|
Back to top |
|
|
389292 Guru
Joined: 26 Mar 2019 Posts: 504
|
Posted: Thu Nov 21, 2019 6:51 am Post subject: |
|
|
When I did it I cross-checked the difference between /17.0 and /17.0/desktop, and then took majority of desktop USE flags from that profile (discarded maybe 2-5 of them I certainly don't need), then I picked the base profile (not desktop), but with those desktop USE flags + dozen of my own. For KDE/Gnome it's probably wiser to pick the corresponding profile, I don't use these DEs. My hand picked flags are mostly exclude things, I have quite a lot of them:
Code: | -systemd -consolekit -policykit -cups -elogind -ipv6 -pulseaudio
-samba -ftp -polkit -colord -geoclue -upower -udisks -bindist -bluetooth
-cdda -cddb -cdr -dvd -dvdr -geoip -geolocation -googledrive -dropbox -gstreamer
-lastfm -libav -libnotify -networkmanager -pam -startup-notification
-gnome-online-accounts -google -gdata -picasa -wayland -zeroconf -chromecast -hangouts -cloudprint |
I couldn't get rid of dbus without issues, so I left it enabled for now. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3667
|
Posted: Thu Nov 21, 2019 8:02 am Post subject: |
|
|
etnull wrote: | My hand picked flags are mostly exclude things, I have quite a lot of them:
Code: | -systemd -consolekit -policykit -cups -elogind -ipv6 -pulseaudio
-samba -ftp -polkit -colord -geoclue -upower -udisks -bindist -bluetooth
-cdda -cddb -cdr -dvd -dvdr -geoip -geolocation -googledrive -dropbox -gstreamer
-lastfm -libav -libnotify -networkmanager -pam -startup-notification
-gnome-online-accounts -google -gdata -picasa -wayland -zeroconf -chromecast -hangouts -cloudprint |
I couldn't get rid of dbus without issues, so I left it enabled for now. |
Many if not most of those entries could be removed without emerge -ea @world pulling in or activating unneeded stuff. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3667
|
Posted: Thu Nov 21, 2019 8:41 am Post subject: Re: Noob question , strategy for use variable in make.conf |
|
|
Alain De Vos wrote: | ...
Which strategy and how to implement do in practice?
...
|
It's a common beginner's mistake to guess a set of USE flags. If you don't know, better don't touch it. - The profile you selected should be enough for the beginning.
- If a package you are going to install needs a certain USE flag set or unset, emerge would tell you.
- If you see that emerge of something starts pulling in some stuff you want to avoid, then you might have chance to avoid it by disabling some USE flag.
- Fine tuning apps like media-video/vlc in most cases needs special handling and should get their individual lines in /etc/portage/package.use.
|
|
Back to top |
|
|
|