Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I was wondering if there are any tools to present the compile time options/ flags of a package in Gentoo when emerging. I am referring to something like this

share|improve this question
1  
Really ? Setting USE flags for different package is standard configuration of portage, did you read about its manual ? By placing some files in /etc/portage/XX.d/ (can't remember the name now), you overwide /etc/make.conf –  warl0ck Aug 15 '12 at 10:19
add comment

3 Answers

Take a look at app-portage/ufed.

share|improve this answer
1  
Thanks. Can ufed be used per package to set the USE flags? –  are Aug 14 '12 at 9:51
    
Sorry, ufed is used to edit the system wide flags :/ –  ensonic Aug 14 '12 at 10:05
    
:-( That's sad. It would be cool in my mind to have such a tool. –  are Aug 14 '12 at 11:01
add comment

Use emerge -av ... and it will display you a list of packages to be merged, including the USE flags.

To set the USE flags for a package either use /etc/portage/package.use or a tool like flaggie that does the job for you.

share|improve this answer
add comment

emerge gentoolkit

Then equery u CATEGORY/PKG will give you the USE flags for CATEGORY/PKG, it will show the flags available (and to be used according to your USE settings) as well as the flags actually used for any packages already installed. Useful if you need to remember what was used for an installed package.

If you then run the command euse -E FLAG or euse -D FLAG you can enable or disable FLAG globally. As mentinoed in another comment flaggie can adjust /etc/portage/package.use, but you shouldn't need to touch that often; you would want to avoid adding something a hundred times that could just be set globally.

share|improve this answer
    
equery will show the flags available (and to be used according to your USE settings) as well as the flags actually used for any packages already installed. Useful if you need to remember what was used for an installed package. –  Jimmy Jun 14 '13 at 23:07
    
Thanks, the answer has been adapted. –  Tom Wijsman Jun 14 '13 at 23:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.