Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26314 - emerge --usepkg ignores package.mask if binary package is available
Summary: emerge --usepkg ignores package.mask if binary package is available
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 61880 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-09 20:33 UTC by Marius Mauch (RETIRED)
Modified: 2011-10-30 22:19 UTC (History)
1 user (show)

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


Attachments
patch for emerge in portage-2.0.49-r21 (emerge-2.0.49-r21.patch,1.75 KB, patch)
2004-01-23 11:22 UTC, Atzm Watanabe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Mauch (RETIRED) gentoo-dev 2003-08-09 20:33:41 UTC
if you have a .tbz2 for a masked package emerge --usepkg will use it instead of
complaining about the masked state.

Reproducible: Always
Steps to Reproduce:
1. emerge -B /usr/portage/sys-apps/portage/portage-2.0.49_pre17.ebuild
2. emerge -k portage

Actual Results:  
portage will install pre17.

Expected Results:  
portage should install the current unmasked version.
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2003-08-25 10:28:40 UTC
Hmm, looks like binary packages aren't subject to masking at all if I read the description of binarytree.dep_bestmatch(). Is that on purpose or is it just not implemented ?
Comment 2 Nicholas Jones (RETIRED) gentoo-dev 2003-08-25 12:25:39 UTC
You built it... Why not use it?
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2003-08-25 13:45:09 UTC
Well, because it's irritating at best: why is the ebuild masked but not the binary (after all, most masked packages compile without problems). It's especially annoying if you have FEATURES=buildpkg and emerged a masked package once or mask one locally after emerging.
So my previous question is still valid: bug, feature or todo-list ?
Comment 4 Stephen Argo 2003-10-09 03:44:21 UTC
Yeah.  I masked all dependencies for gnome-2.4, as well as gnome-2.4 itself,
to revert to a gnome-2.2 system.  I had built gnome-2.4 with --buildpkg,
but I don't want to get rid of the gnome-2.4 pkg's, as I might use them again
in the future.  Anyway, "emerge -eDk gnome" reinstalls all gnome-2.4 pkg's,
even though they are masked in /etc/portage/package.mask.  I need to use
"-k/--usepkg" to make sure my base system components are reinstalled from
binaries, and my gnome-2.2 pkg's are the only ones built from scratch.  So,
to me this bug is very annoying, and time consuming to try to work around
it.  Thanks guys.
Comment 5 Atzm Watanabe 2004-01-23 11:22:55 UTC
Created attachment 24305 [details, diff]
patch for emerge in portage-2.0.49-r21

Hi,
I was afflicted by the same bug as this, too.
So I created a patch for 2.0.49-r21. How is it?
Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2004-02-03 16:01:53 UTC
Cannot use that patch.

How would you suggest handling cases where you don't have an ebuild
for a binary package? --usepkgonly and --getpkgonly must ignore
masking as you cannot assume that the ebuilds are masked properly.

If you don't have a portage tree, you cannot merge anything... if you
do something like that patch. The current functionality makes sense
for a deployment standpoint... If the package is there, use it because
I put it there.
Comment 7 Marius Mauch (RETIRED) gentoo-dev 2004-08-27 08:53:21 UTC
*** Bug 61880 has been marked as a duplicate of this bug. ***
Comment 8 Jason Stubbs (RETIRED) gentoo-dev 2004-09-20 18:44:13 UTC
--usepkg will now only use binaries if the matching ebuild is unmasked.
--usepkgonly still ignores masking.