Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 938856 - app-portage/gentoolkit-0.6.5: wrong result when combine -D and -E in euse(0.6.5)
Summary: app-portage/gentoolkit-0.6.5: wrong result when combine -D and -E in euse(0.6.5)
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-01 02:18 UTC by Sherman Lau
Modified: 2024-09-01 02:18 UTC (History)
0 users

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 Sherman Lau 2024-09-01 02:18:36 UTC
When combine -D and -E together in euse, the result will only be -D or -E for all flags totally.

Reproducible: Always

Steps to Reproduce:
1.sudo euse -D Xaw3d gtk -E motif -p app-editors/emacs
2.sudo euse -E motif -D Xaw3d gtk -p app-editors/emacs
Actual Results:  
For step1:

Adding "app-editors/emacs[Xaw3d]" use flag in "/etc/portage/package.use/emacs"
WARNING: USE flag "gtk" is already enabled for app-editors/emacs
Adding "app-editors/emacs[gtk]" use flag in "/etc/portage/package.use/emacs"
Adding "app-editors/emacs[motif]" use flag in "/etc/portage/package.use/emacs"

All there flags are enabled.


For setp2:

WARNING: USE flag "motif" is already disabled for app-editors/emacs
Adding "app-editors/emacs[-motif]" use flag in "/etc/portage/package.use/emacs"
WARNING: USE flag "Xaw3d" is already disabled for app-editors/emacs
Adding "app-editors/emacs[-Xaw3d]" use flag in "/etc/portage/package.use/emacs"
Adding "app-editors/emacs[-gtk]" use flag in "/etc/portage/package.use/emacs"

All three flags are disabled


Expected Results:  
Something like this:
cat /etc/portage/package.use/emacs
app-editors/emacs -Xaw3d -gtk motif