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

Bug 276866

Summary: [PATCH] sys-apps/portage - emerge: --binpkg-respect-use option
Product: Portage Development Reporter: Sebastian Luther (few) <SebastianLuther>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo-bugs
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 288499    
Attachments: introduce --binpkg-respect-use option

Description Sebastian Luther (few) 2009-07-07 08:19:19 UTC
--binpkg-respect-use < y | n >
Tells emerge to ignore binary packages if their use flags don't match the current configuration. (default: ´n´)
Comment 1 Sebastian Luther (few) 2009-07-07 08:19:52 UTC
Created attachment 196994 [details, diff]
introduce --binpkg-respect-use option
Comment 2 Allen Brooker (AllenJB) 2009-07-07 08:30:42 UTC
What's the difference between using this and -k vs -K (--usepkg vs --usepkgonly)? A quick test shows that -k will only use the binary package is the use flags match while -K will always use the binary package.
Comment 3 Sebastian Luther (few) 2009-07-07 08:48:40 UTC
(In reply to comment #2)
> What's the difference between using this and -k vs -K (--usepkg vs
> --usepkgonly)? A quick test shows that -k will only use the binary package is
> the use flags match while -K will always use the binary package.

mingramm@fewslaptop ~/portage/bla/trunk $ emerge -upKg xulrunner --binpkg-respect-use=n
[binary     U ] net-libs/xulrunner-1.9.0.11-r1 [1.9.0.11] USE="-custom-optimization -dbus* -gnome* -java -startup-notification*" 
mingramm@fewslaptop ~/portage/bla/trunk $ emerge -upkg xulrunner --binpkg-respect-use=n
[binary     U ] net-libs/xulrunner-1.9.0.11-r1 [1.9.0.11] USE="-custom-optimization -dbus* -gnome* -java -startup-notification*" 
mingramm@fewslaptop ~/portage/bla/trunk $ emerge -upkg xulrunner --binpkg-respect-use=y
[ebuild     U ] net-libs/xulrunner-1.9.0.11-r1 [1.9.0.11] USE="dbus gnome startup-notification -custom-optimization -java" 
mingramm@fewslaptop ~/portage/bla/trunk $ emerge -upKg xulrunner --binpkg-respect-use=n
[binary     U ] net-libs/xulrunner-1.9.0.11-r1 [1.9.0.11] USE="-custom-optimization -dbus* -gnome* -java -startup-notification*" 
mingramm@fewslaptop ~/portage/bla/trunk $ emerge -upKg xulrunner --binpkg-respect-use=y

-k and -K ignore the use flags (--binpkg-respect-use=n is exactly the old behavior)

Did you specifie -N? This triggers the use flag check too.
Comment 4 Zac Medico gentoo-dev 2009-07-07 08:54:07 UTC
(In reply to comment #2)
> What's the difference between using this and -k vs -K (--usepkg vs
> --usepkgonly)? A quick test shows that -k will only use the binary package is
> the use flags match while -K will always use the binary package.

Well, not sure about -k, but --newuse is supposed to trigger that behavior. It's good to have a separate option though.

(In reply to comment #1)
> Created an attachment (id=196994) [edit]
> introduce --binpkg-respect-use option

Thanks, this is in svn r13802 (with small tweaks by me).
Comment 5 Zac Medico gentoo-dev 2009-08-03 23:12:50 UTC
This is fixed in 2.2_rc34.
Comment 6 Zac Medico gentoo-dev 2009-10-11 00:55:51 UTC
This is fixed in 2.1.7.