Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Too many USE flags!!
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
Durandune
n00b
n00b


Joined: 05 Jun 2006
Posts: 7
Location: Lansing MI

PostPosted: Mon Jun 05, 2006 2:58 pm    Post subject: Too many USE flags!! Reply with quote

I recently installed the AMD64 gentoo from the installation CD, everything is working fine(except for many programs being incompatable with my architecture, but im ok with it, i have Windows...ewww... on other comp) anyway, when i do "emerge --info" i have tons of use flags that where there by default i guess, didnt use genkernel, used instalation guide, everything went fine and works perfectly, i just dont like haveing so many use flags when i dont need them all, ive searched make.conf, and like 3 or 4 other files that are supposed to contain use flags, and none of them even have a line that starts with USE="blah", it seems like all my use flags are just appearing out of no where, if anyone knows where these mysterious use flags are coming from, please let me know, my emerging takes soooo long because of the excess of use flags,
thanks for listening

Hardware:
AMD X2
2gig Ram
400gigs space
dual 7900GTs
soundblaster XiFi
Back to top
View user's profile Send private message
Unne
l33t
l33t


Joined: 21 Jul 2003
Posts: 616

PostPosted: Mon Jun 05, 2006 3:14 pm    Post subject: Reply with quote

Quote:
Precedence

Of course there is a certain precedence on what setting has priority over the USE setting. You don't want to declare USE="-java" only to see that java is still used due to a setting that has a higher priority. The precedence for the USE setting is, ordered by priority (first has lowest priority):
1. Default USE setting declared in the make.defaults files part of your profile
2. Inherited USE setting if a package from profile use.defaults is installed
3. User-defined USE setting in /etc/make.conf
4. User-defined USE setting in /etc/portage/package.use
5. User-defined USE setting as environment variable


http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=2
_________________
Obligatory hompage link.
Back to top
View user's profile Send private message
Monkeh
Veteran
Veteran


Joined: 06 Aug 2005
Posts: 1656
Location: England

PostPosted: Mon Jun 05, 2006 3:15 pm    Post subject: Reply with quote

emerge ufed and go through the list (CAREFULLY, if it's a profile default, you almost certainly want it), setting -* and turning on what you want.
Back to top
View user's profile Send private message
Durandune
n00b
n00b


Joined: 05 Jun 2006
Posts: 7
Location: Lansing MI

PostPosted: Mon Jun 05, 2006 3:21 pm    Post subject: Reply with quote

yes ive already seen that precedence list, and ive searched through every file, and none of them have any use flags in them, thats y i dont understand where the flags are coming from, when i add use flags to any of those files, they are added to my list, but there are like 40 flags that arent listed anywhere, but are still in effect, any other places other than that list where i could find use flags???
Back to top
View user's profile Send private message
Durandune
n00b
n00b


Joined: 05 Jun 2006
Posts: 7
Location: Lansing MI

PostPosted: Mon Jun 05, 2006 5:37 pm    Post subject: Reply with quote

cmon, doesnt anyone know why im getting so many use flags?, or why i have them even though they are comeing out of thin air? ive checked everywhere use flags are entered, and there are no use flags, but when i look at active use flags theres 40 of them, plz help, its not life threatening, but emerging takes me forevvvvvvver,

thx,
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Mon Jun 05, 2006 5:48 pm    Post subject: Reply with quote

There are many make.defaults files - since Portage uses cascading profiles, those in the directories leading to your profile are applicable too.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
Durandune
n00b
n00b


Joined: 05 Jun 2006
Posts: 7
Location: Lansing MI

PostPosted: Mon Jun 05, 2006 6:04 pm    Post subject: Reply with quote

thx, ill search those directories when i get home and see if i can find anything, ill post more later tonight, (college right now)
Back to top
View user's profile Send private message
SirYes
Apprentice
Apprentice


Joined: 15 Jan 2006
Posts: 282
Location: Lodz, Poland

PostPosted: Mon Jun 05, 2006 9:52 pm    Post subject: Reply with quote

If you are worried about long list of USE flags after issuing
Code:
emerge --info

then you can always add USE="-something" flags in /etc/make.conf.

After that just do:
Code:
# emerge --pretend --verbose --update --deep --newuse world
# emerge -avuDN world

to apply your new (smaller) set of USE flags.
_________________
My blog: In search for ultimate programming language
Back to top
View user's profile Send private message
GNUtoo
Veteran
Veteran


Joined: 05 May 2005
Posts: 1919

PostPosted: Mon Jun 05, 2006 10:47 pm    Post subject: Reply with quote

there was a glep on this on having profiles
but it was abandoned mabe because of + and - problems

some possibilities:
*create manualy theses sgroups
*migrate a lot of use in package.use
*wait for genetic(a new portage frontend)
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Mon Jun 05, 2006 11:10 pm    Post subject: Reply with quote

Durandune wrote:
cmon, doesnt anyone know why im getting so many use flags?, or why i have them even though they are comeing out of thin air?

make.defaults defines the use flags in your profile, but the real sucker (as already mentioned) is use.defaults, which enables every use flag to the corresponding package, if you have it installed. This (mis-)feature has been disabled by default in Portage 2.1 and as it's rather safe to do so, I advise you to update to it (I didn't say so, if it bites you... :twisted:).
_________________
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
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2268

PostPosted: Mon Jun 05, 2006 11:22 pm    Post subject: Reply with quote

If you are positive you know what you're doing, you can do this in your make.conf file:

Code:

USE="-* bash-completion bzip2 ..."


where the first thing is a dash star. That removes anything of lower priority than make.conf. Then the only thing that makes any difference is make.conf, package.use and the environment variables.
Back to top
View user's profile Send private message
Archangel1
Veteran
Veteran


Joined: 21 Apr 2004
Posts: 1212
Location: Work

PostPosted: Tue Jun 06, 2006 9:42 pm    Post subject: Reply with quote

1clue wrote:
If you are positive you know what you're doing, you can do this in your make.conf file:

Code:

USE="-* bash-completion bzip2 ..."


where the first thing is a dash star. That removes anything of lower priority than make.conf. Then the only thing that makes any difference is make.conf, package.use and the environment variables.

That's a nice approach and works fine for me, but you have to be a bit careful the first time to make sure you turn on everything you need - the first time I tried it I missed 'pam' and couldn't log into the system at the end of it 8O
_________________
What are you, stupid?
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2268

PostPosted: Tue Jun 06, 2006 10:29 pm    Post subject: Reply with quote

I DID post a warning with that tip....
Back to top
View user's profile Send private message
speeddemon
Apprentice
Apprentice


Joined: 27 Sep 2003
Posts: 162

PostPosted: Wed Jun 07, 2006 1:57 am    Post subject: Reply with quote

Carlo wrote:
Durandune wrote:
cmon, doesnt anyone know why im getting so many use flags?, or why i have them even though they are comeing out of thin air?

make.defaults defines the use flags in your profile, but the real sucker (as already mentioned) is use.defaults, which enables every use flag to the corresponding package, if you have it installed. This (mis-)feature has been disabled by default in Portage 2.1 and as it's rather safe to do so, I advise you to update to it (I didn't say so, if it bites you... :twisted:).

Well, is there a way to disable that "feature" without upgrading (Im sick of package.keywords).
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Wed Jun 07, 2006 2:41 pm    Post subject: Reply with quote

speeddemon wrote:
Well, is there a way to disable that "feature" without upgrading (Im sick of package.keywords).

Three comments above yours.
_________________
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
mathfeel
l33t
l33t


Joined: 03 Aug 2004
Posts: 700

PostPosted: Wed Jun 14, 2006 7:35 am    Post subject: Reply with quote

USE flag is what I love about gentoo, but I think the USE flags needs some catagorizing. For example, it's hard to imagine that "aac" has the same importance as "ntpl": one is just whether your program is going to support certain audio codec, another is related to important package like glibc. There are wiki sites that lists and explain USE flag alphabetically, but perhaps there can be also sites that list them by what they affect (the whole system or just mplayer, for example).

Just my two cents.
_________________
-----------------------------------------------------------
"In heaven all the interesting people are missing"
-- Friedrich Nietzsche
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Wed Jun 14, 2006 11:57 am    Post subject: Reply with quote

mathfeel wrote:
USE flag is what I love about gentoo, but I think the USE flags needs some catagorizing.

I wouldn't say that one flag is more important than the other. Grouping use flags has been discussed long ago, but we never came to a positive resolution. See GLEP 29 and the couple of threads about the topic in 2004.
_________________
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 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