Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My USE flags.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
avieth
Veteran
Veteran


Joined: 17 Sep 2004
Posts: 1945
Location: Canada

PostPosted: Thu Mar 24, 2005 8:31 pm    Post subject: My USE flags. Reply with quote

I've got quite a few use flags in mind for my system, but it just freaks me out to look at the paper I wrote them on! Theres SO MANY! Does anyone else have at least half the avaliable use flags in their make.conf? Here are mine:

Code:

USE="3dfx 3dnow x kde qt -gnome -gtk xaw3d a52 aac aalib accessibility acl acpi adns -ain afs alsa apm arts audiofile avi bash-completion bcmath bmp bluetooth bzlib calendar caps cdb cdparanoia cdr -cjk cups curl curlwrappers -db2 dbm debug directfb divx4linux dvd dvdr dvdread encode esd fbcon flac flash ftp gif glut -gtk2 -qtkhtml dio -jabber jack java javascript jikes joystick jpeg perl php mmx mng mozilla mp3 mpeg multilib msn sdl scanner symlink samba quicktime svga svg python mng png sockets simplexml perl pnp pdflib oss -oscar opengl openal oggvorbis ogg imlib -icq nocd nas hal sysfs szip tiff truetype unicode usb v4l vcd videos xine xml xml2 xmms xosd xpm xv xvid -yahoo zlib dedicated"


(there might be spelling mistakes and I might have forgotten/duplicated some).
Phewwwwww...... Glad thats over. Do all those USE keys look unusual to you? I mean, thats alot of words. Now to my second question:

What if I emerge system with no USE flags defined? Will that mean that it will only use the defaults, therefore not allowing me to use... say.... XMMS if it wasn't in the defaults. What if I did
Code:
USE="xmms" emerge xmms
? Would that made xmms work with my system?

So the main question is, is it common to have this many use flags? And if I forgot one, can I simply add it when I emerge? Thanks....

Heres my specs just to justify the USE flags I chose:
Amd Opteron 146 2.0 ghz
ASUS SK8N Nforce 3 mobo
XFX Nvidia 6600 256mb
512mb regeistered ddr333
2xMaxtor 40gb 7200 rpm
Compaq Qvision 172 (Not sure which ga to use (you know, svga, vga, sga))
DVD + CD writer
Epson Stylus Photo 700 Printer
Mustek 1200 III EP Scanner
Sound is on-board
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Thu Mar 24, 2005 8:37 pm    Post subject: Reply with quote

Mine seem to be exactly one third :oops: . One of the great things about Gentoo and USE flags is that they give you the power to... do whatever you want. And what do you do when you are given power ? :twisted: YOU USE IT :twisted: !

Code:

USE="-xmms -oss -apm java alsa doc nptl cdr esd mmap aalib gd dba usb unicode vhosts hal session plotutils acpi howl acl dvd dvdr mmx nvidia ithreads threads pthreads mp3 aac pic apache2 sharedmem sse truetype kdeenablefinal gtkhtml bonobo"
Back to top
View user's profile Send private message
mascanho
Veteran
Veteran


Joined: 21 Dec 2004
Posts: 1241
Location: On my Bmx Bike on a Concrete Park Flatlanding ...

PostPosted: Thu Mar 24, 2005 8:41 pm    Post subject: Reply with quote

mine are
Code:
USE="-gtk unicode -kde -gnome -xmms"
i prefer to use
Code:
/etc/portage/package.use
and btw you guys should take a look at
http://www.gentoo.org/dyn/use-index.xml
_________________
Flatland Life is a Choice !
emerge avatar
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Mar 24, 2005 8:43 pm    Post subject: Reply with quote

USE flags never directly determine what will be supported on your system.
They merely enable or disable optional support for the item they describe in other packages that may or may not make use of that support.
Don't worry, it's an oft-misunderstood concept ;-)

For example, for the XMMS case you gave, it doesn't matter, xmms will get emerged and it will work regardless of the xmms USE flag.

To get a better grip on your USE flags you may want to
Code:
emerge ufed

which is a nice ncurses-based flag editor with descriptions alongside.
And no, it does not have any USE flags or dependencies itself ;-)

Also keep in mind that quite a few flags are set by the profile, so you'll have to disable those if you don't want them.

Oh and your last questions: yes and yes ;-)

If you decide later you need support for something you do obviously have to remerge the thing you want to build support in.
(Say you have XMMS running but no OGG support; to get it in XMMS you have to USE ogg and re-emerge xmms...)
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
IvanYosifov
l33t
l33t


Joined: 15 Oct 2004
Posts: 778
Location: Bulgaria

PostPosted: Thu Mar 24, 2005 8:46 pm    Post subject: Reply with quote

USE flags set compile-time *optional* features. The XMMS support in XMMS is not optional, so
Code:
 USE="xmms" emerge xmms
and
Code:
 emerge xmms
do exactly the same.
Emerge xmms and you can use it.

Having as-much-as-you-thins-you-need USE flags is normal.
Calling
Code:
 <ENV HACKS> emerge <ARGS>
is asking for trouble. USE flags belong in make.conf, so do CFLAGS. Unmasking belongs in /etc/portage/package.keywords and
/etc/portage/package.unmask. This is explained in the guide , IIRC.
Back to top
View user's profile Send private message
mascanho
Veteran
Veteran


Joined: 21 Dec 2004
Posts: 1241
Location: On my Bmx Bike on a Concrete Park Flatlanding ...

PostPosted: Thu Mar 24, 2005 8:57 pm    Post subject: Reply with quote

@ adaptr cool app, gonna try it myself and will report further system crashes :P
_________________
Flatland Life is a Choice !
emerge avatar
Back to top
View user's profile Send private message
Penguin of Wonder
Apprentice
Apprentice


Joined: 17 Jan 2006
Posts: 280
Location: West Virginia

PostPosted: Tue Feb 21, 2006 9:23 pm    Post subject: Reply with quote

mascanho wrote:
btw you guys should take a look at http://www.gentoo.org/dyn/use-index.xml


The man wrote a script to install Gentoo for him 8O That totally rocks.

How hard to think it would be to do this? Has anyone ever actually tried that before, or would be willing to post the script they used?
_________________
My Linux Blog

AMD64 3700+
2G DDR 3200 Ram
320G HDD
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Tue Feb 21, 2006 9:48 pm    Post subject: Re: My USE flags. Reply with quote

avieth wrote:
What if I emerge system with no USE flags defined? Will that mean that it will only use the defaults, therefore not allowing me to use... say.... XMMS if it wasn't in the defaults. What if I did
Code:
USE="xmms" emerge xmms
? Would that made xmms work with my system?

Yes and no. Use flags affect only optional dependencies. USE=-xmms emerge xmms will install XMMS, of course. On the other hand, the current Portage version has some weird "feature" named use.defaults, which adds the corresponding use flag to a package, as soon as you install it. Luckily in Portage 2.1.x this damn thing is gone. For now you can do USE="-* foo bar" to ensure that only the use flags you want are enabled. But beware: -* disables all use flags, so be sure about what your minimal use flag set is!
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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