Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 599208

Summary: portage: automatic useflag dependencies
Product: Portage Development Reporter: gerion <gerion.entrup>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description gerion 2016-11-08 13:22:47 UTC
It is often the case, that when you emerge some package portage calculates something like this:

To merge dev-foo/bar you have to enable the useflag foo in package app-bar/asdf.
Add the line:
>=app-bar/asdf-0.1.0 foo
to the specific config files.

My suggestion would be, to enable automatic useflag dependencies. This could be done by settings this as portage feature in /etc/portage/make.conf.

The behaviour could be as followed:
If an ebuild the user wants to merge needs several packages recompiled with other useflags, a warning is given "The following ebuilds are causing rebuilds with useflag ..." (or something similar) and all ebuilds are remerged automatically with the required useflags.

If at some time the user unmerge the previous package and after that do an "emerge -N world", than all packages with "automatic useflags" enabled should be remerged without these useflags.

My motivation behind this is to help to hold the config files clean, so only useflags the user has set by itself are listed.

(BTW: More less the same feature is possible with keywords, so only keywords for world packages are necessary.)
Comment 1 Zac Medico gentoo-dev 2016-11-08 16:38:22 UTC

*** This bug has been marked as a duplicate of bug 258371 ***