GentooThis forum is for the discussion of Gentoo Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Gentoo is awesome, but I really have no idea if I am taking full advantage of the use flags. Normally I look at all the available use flags from the Gentoo website and stick every use flag I think I need into the /etc/make.conf file. The only problem with this is that a lot of packages have use flags enabled when they dont need to be. For instance, I don't want Amarok using mysql, but it does anyway because the mysql use flag is in make.conf. Basiscaly, I want few packages to use mysql and others not to. Of course a simple solution to this would be to remove mysql from the USE flags in /etc/make.conf and start using the package.use file to select which packages will use mysql. However this seems very tedious. I might have to add an entry into the package.use file for maybe over 100 packages.
I would like to know what is an appropriate list of USE flags I should put in my make.conf file. My system is a laptop that will be used for school, music, few games, and internet.
So what are some good use flags to put in my make.conf that all packages should use. Everything else ill just put into my package.use file.
as described in the Gentoo-handbook you can set the use-flags individually for every package. Therefor you'll have to create a file "/etc/portage/package.use". In your example of amarok and mysql you may insert a line
Code:
media-sound/amarok -mysql
May be that I wrong with the following suggestion since I'm new to Gentoo as well. I set only a few "systemwide" use-flags in /etc/make.conf. When emerging a package, I do a
Code:
emerge -pv package
and look at the use-flags which are enabled and which are disabled. And if I want to change this, I insert an entry in the package.use-file.
An easy method to change the useflags for a single emerge is to
Code:
USE="-mysql +anything" emerge anypackage
Note that you can both, add and remove use-flags with an entry in package.use.
I know how use flags works. I was just wondering if putting them all in the make.conf is even a good idea. If it's not, then what are some use flags that are good for the make.conf file?
You can continue to use global USE flags in /etc/make.conf. This is handy in general.
Use package.use to disable or enable flags for particular ebuilds.
If you disable flags you should have a huge package.use file.
Example ... I use KDE so I have added the kde USE flag globally.
I do not want celestia to use kde as KDE4 is currently not supported ... so I add this entry to package.use:
As have been already said, a "good flag" is different for every user and that's basically the point of using gentoo, every user can customize it based on personal needs.
and a lot of people would see that like a lot of USEs, others would say otherwise. I don't really care about gnome or kde so I don't want packages downloading dependencies of those environments just because such USE is in place, however I do care about vim so I really like every package capable of having a syntax file to be downloaded thus vim-syntax set in there is a very good choice for me.
Of course, my package.use had grow a lot over the time, however, I still prefer to have such a file in charge of any customization instead of dealing with many global USEs.
Try to keep focus on the packages more important to you, check the USEs of those packages individually and if you see a particular USE that affects many or all of those packages then you might have a candidate global USE.
No one can tell you what USE flags you will need. You will polish your config as you continue using Gentoo and learn how USEs affect each particular package.
Generally, people set the general case in make.conf, for example, if you want mysql support turned on for most packages, then you add "mysql" to your make.conf, on the contrary, if you want it disabled for most packages, then you use "-mysql" in your make.conf. Then you use package.use to add exceptions.
But this is entirely a matter of taste, after years of polishing and fine tuning I don't even have an USE definition in my make.conf, I use package.use exclusively to set all my use flags. It's quite big.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.