Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16156 - RFE: emerge --update-use for USE flag changed
Summary: RFE: emerge --update-use for USE flag changed
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 19616 29719 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-21 14:26 UTC by Phattanon Duangdara
Modified: 2011-10-30 22:21 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phattanon Duangdara 2003-02-21 14:26:18 UTC
- I think sometimes we want to update world or all packages to use new USE flag.
emerge should have some options like these to update currently emerged package
to use new USE flag.

emerge --update --update-use

And with all package in dependencies.

emerge --update --empytree --update-use

I mean. To update current installed package to satisfy new USE flag.
For example. If we have xfree installed with '-3dfx' use flag. After we change
to use '3dfx' flag and rerun emerge --update --update-use.

xfree and other packages that have 3dfx use flag need to emerge to satisfy new
use flag.

emerge --update-use

[ebuild   R  ] x11-base/xfree-4.2.1-r2  *sse *nls *mmx *truetype _3dnow +3dfx

- May be this enhancement related to Bug #3252. USE flag shold use old USE flag
when update.
I think this --update-use option is more suitable when we want to update to new
USE flag.

- And more. emerge should show some of use flags to be change on pretend option.
For example. I have add new '3dnow' and remove 'mmx' of use flag and emerge xfree.

emerge xfree --pretend --verbose --update-use

[ebuild   R  ] x11-base/xfree-4.2.1-r2  *sse *nls -mmx *truetype +3dnow _3dfx

If we don't use --update-use. It should be like these.

emerge xfree --pretend --verbose

[ebuild   R  ] x11-base/xfree-4.2.1-r2  *sse *nls *mmx *truetype _3dnow _3dfx

Some symbol indicates change on use flag.
* use flag that already use
_ use flag that already not use
+ use flag to add
- use flag to remove
Comment 1 David M. Andersen 2003-07-13 19:44:12 UTC
I've written a preliminary program to do this:

Information + Screenshot:
http://forums.gentoo.org/viewtopic.php?t=50078

Script:
http://www.coe.uncc.edu/~danderse/www/usechange
Comment 2 SpanKY gentoo-dev 2003-07-18 15:19:54 UTC
*** Bug 19616 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2003-09-26 20:02:00 UTC
*** Bug 29719 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2004-01-28 14:47:59 UTC
*** Bug 39680 has been marked as a duplicate of this bug. ***
Comment 5 Jonathan Hitchcock 2004-02-02 05:00:44 UTC
This feature request may be necessary, to avoid a problem with USE flags that change, as described in bug 39680.  I shall continue discussing the problem there, as it is not relevant to this feature request, except as a motivating factor.  This feature request, however, is relevant to the bug, as a possible solution.
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2004-08-09 14:42:06 UTC
--newuse in 2.0.51
Comment 7 Phattanon Duangdara 2004-08-10 00:34:46 UTC
Another information should be added like to use etc-update, I think ...

* Your USE flags has been changed [and some more instruction to use --newuse]
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:47:55 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2