Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Noob question , strategy for use variable in make.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Alain De Vos
n00b
n00b


Joined: 20 Nov 2019
Posts: 15

PostPosted: Thu Nov 21, 2019 12:10 am    Post subject: Noob question , strategy for use variable in make.conf Reply with quote

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
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Nov 21, 2019 12:40 am    Post subject: Reply with quote

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
View user's profile Send private message
Alain De Vos
n00b
n00b


Joined: 20 Nov 2019
Posts: 15

PostPosted: Thu Nov 21, 2019 12:49 am    Post subject: Reply with quote

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
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Nov 21, 2019 1:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu Nov 21, 2019 5:53 am    Post subject: Reply with quote

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
View user's profile Send private message
389292
Guru
Guru


Joined: 26 Mar 2019
Posts: 504

PostPosted: Thu Nov 21, 2019 6:51 am    Post subject: Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3667

PostPosted: Thu Nov 21, 2019 8:02 am    Post subject: Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3667

PostPosted: Thu Nov 21, 2019 8:41 am    Post subject: Re: Noob question , strategy for use variable in make.conf Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum