Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276866 - [PATCH] sys-apps/portage - emerge: --binpkg-respect-use option
Summary: [PATCH] sys-apps/portage - emerge: --binpkg-respect-use option
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 210077 288499
  Show dependency tree
 
Reported: 2009-07-07 08:19 UTC by Sebastian Luther (few)
Modified: 2009-10-11 00:55 UTC (History)
1 user (show)

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


Attachments
introduce --binpkg-respect-use option (portage-binpkg-respect-use-option.patch,2.73 KB, patch)
2009-07-07 08:19 UTC, Sebastian Luther (few)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.