Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Suggestion USE Flags to build Gentoo Workstation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
minsoehan
n00b
n00b


Joined: 02 Jan 2015
Posts: 71
Location: Yangon, Burma. (Mother Su's Country)

PostPosted: Mon Mar 14, 2016 10:33 am    Post subject: [Solved] Suggestion USE Flags to build Gentoo Workstation Reply with quote

I am planning to install Gentoo on one of my Laptops. I will use it seriously as my main workstation.
I want it supports as much as possible.
My choice for DE is "Plasma". Of course, I will set profile to desktop/plasma.
But I want a little suggestion for USE Flags setting.
I think
Code:
USE="-systemd -gnome -pulseaudio *"
should be ok.
It does enable all except systemd, gnome and pulseaudio, right?
What about "gtk"? Should I disable gtk?

And please give me if there is any other suggestion?


Last edited by minsoehan on Thu Mar 17, 2016 12:13 am; edited 1 time in total
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 5247

PostPosted: Mon Mar 14, 2016 11:35 am    Post subject: Reply with quote

it enable nothing, you have disable something, but didn't ask to enable anything.
some flags will be enable by the profile you will use. Per example, a desktop profile will certainly enable the "X" use flag.

so even when you pickup a profile, that profile will enable some flags that should logically be enable, but any other flags will not, it's your choice to enable what is not.
your gtk question, if your profile need gtk useflag it will enable it, if it doesn't enable it and cannot work with it, it will blacklist it.
if it doesn't care about it (no use of it, but could use it), it's up to you to know if you will have any usage of gtk or not.

you have list of use flag desc in your profile to see what they will do, or you can use equery (emerge gentookit) to see what a use flag will do an a package (equery u package)
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1689
Location: Poland => Lodz

PostPosted: Mon Mar 14, 2016 11:46 am    Post subject: Reply with quote

That's for my work laptop (OpenRC, XFCE):
Code:
USE_MEDIA="aacplus opus musepack"

USE_DE="-gnome-media-accounts -qt4 qt5"

USE="amr archive bash-completion ffmpeg gconf gnome-keyring gps gstreamer icu javascript libproxy libsecret lm_sensors mtp netlink networkmanager nsplugin offensive pulseaudio python samba sftp sqlite syslog v4l vim-syntax wavpack webstart xcomposite xinerama"

USE="$USE $USE_MEDIA $USE_DE"


Also note that all the cpu intructions USE flags are not used any more, so in my case (i7-4810MQ) I set:
Code:
CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3"


And just in case you have a similar CPU and build with march=native....qt5 doesn't work because of rtm. That fixed it:
Code:
CFLAGS="-O2 -pipe -march=native -mno-rtm"
Back to top
View user's profile Send private message
charles17
Veteran
Veteran


Joined: 02 Mar 2008
Posts: 1539

PostPosted: Mon Mar 14, 2016 12:39 pm    Post subject: Re: Suggestion for USE Flags to build Gentoo Workstation? Reply with quote

minsoehan wrote:
I think
Code:
USE="-systemd -gnome -pulseaudio *"
should be ok.
It does enable all except systemd, gnome and pulseaudio, right?

Why not completely delete that line and check if there's anything installed trying to pull-in systemd, gnome or pulseaudio? If nothing pulls them, no need to disable them.

Then only add USE flags on request when emerge wants them enabled for certain packages. Do this per-package based in /etc/portage/package.use
Back to top
View user's profile Send private message
arnvidr
Guru
Guru


Joined: 19 Aug 2004
Posts: 518
Location: Oslo, Norway

PostPosted: Tue Mar 15, 2016 8:48 am    Post subject: Reply with quote

At least remove the asterisk from the USE line. Activating all other use flags WILL pull in packages that needs systemd, gnome and pulseaudio. Add USE flags as you need them, as charles17 mentions above.
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
minsoehan
n00b
n00b


Joined: 02 Jan 2015
Posts: 71
Location: Yangon, Burma. (Mother Su's Country)

PostPosted: Wed Mar 16, 2016 5:15 am    Post subject: Reply with quote

thanks for all suggestions.
I have installed Gentoo on my laptops.
I just set to profile to /desktop/plasma and left USE Flags as it was.
I mean,
Code:
USE="bindist mmx sse sse2"
is already in /etc/portage/make.conf file, I didn't touch it.
Then install Xorg and kde-plasma/plasma-meta package. Total compilation time was about 20 hours.
It pulled neither systemd nor pulseaudio nor gnome because of /desktop/plasma profile.
Now my system is working well there is some small problems like missing network icon though.
I will open some thread in desktop environment section for those little problems.

It is funny I thought " * " represents all USE Flags enable because Gentoo handbook says " -* " means to ignore default USE Flags.
Now I understand.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 1938

PostPosted: Wed Mar 16, 2016 6:25 am    Post subject: Reply with quote

I don't think your question is well formed.

Without knowing what you intend to do no one can actually give specific advice. I've used gentoo as a primary workstation in several situations. As a student I needed LaTeX, libreoffice, mathematica, and a web browser with javscript and flash support. As a research scientist I needed a laptop with a gcc compiler, pythia8, root, ssh, and a functional terminal. I emphasis "functional terminal" since there are many examples of Quake-style terminals which close unexpectedly or transparent terminals which are hard to use for anything production related. As a pilot and general nerd I need openfoam, blender, eclipse, and a web browser without flash and javascript because reasons.

The key is to know what you need and what you want. For example, you want plasma but you really could use fluxbox or i3. You need X.

The software you have to run is going to determine what use flags you must have or use flags you don't want. Install the software with whatever features you need and the rest should fall into place.

Another personal anecdote. As a pilot I must have the Foreflight app. This means I must have an ipad running iOS. My tablet would be useless to me if I bought a run of the mill tablet and installed Gentoo no matter what use flags I selected.

As a side note for the CPU flags mentioned above, you want to install emerge -1v app-portage/cpuinfo2cpuflags, run cpuinfo2cpuflags-x86 and put the result in your CPU_FLAGS_X86 variable.
_________________
First things first, but not necessarily in that order.
Back to top
View user's profile Send private message
C5ace
n00b
n00b


Joined: 23 Dec 2013
Posts: 69

PostPosted: Wed Mar 16, 2016 10:31 am    Post subject: Reply with quote

My /etc/make.conf and /etc/portage/repos.conf/gentoo.conf ised on my AMD Phenom II 3Ghz Quad Core workstation with Xfce DE and 5 disk RAID 5 array:

/etc/portage/make.conf
Code:

CFLAGS="-O2 -march=native -pipe -ggdb -fno-builtin-strlen"
CXXFLAGS="$CFLAGS"
CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a"
MAKEOPTS="-j5"
FEATURES="-preserve-libs"
#FEATURES="preserve-libs nostrip splitdebug"
CHOST="x86_64-pc-linux-gnu"
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
LINGUAS="en"
INPUT_DEVISES="evdev"
VIDEO_CARDS="nouveau"
SANE_BACKENDS="hp"
USE="-kde -gnome -qt -ipv6 -bluetooth -systemd gtk samba"
XFCE_PLUGINS="brightness clock trash"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo"


/etc/portage/repos.conf/gentoo.conf
Code:

[DEFAULT]

main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = rsync
sync-uri = rsync://rsync1.au.gentoo.org/gentoo-portage
auto-sync = yes
Back to top
View user's profile Send private message
arnvidr
Guru
Guru


Joined: 19 Aug 2004
Posts: 518
Location: Oslo, Norway

PostPosted: Thu Mar 17, 2016 7:35 am    Post subject: Reply with quote

minsoehan wrote:
It is funny I thought " * " represents all USE Flags enable because Gentoo handbook says " -* " means to ignore default USE Flags.
That is what it means. But enabling all USE flags is not a good idea.
_________________
Noone wrote:
anything
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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