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

Bug 206188

Summary: Portage leaves no indication as to why some packages are being blocked
Product: Gentoo Linux Reporter: Maurice Volaski <mvolaski>
Component: New packagesAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 155723    

Description Maurice Volaski 2008-01-16 21:18:25 UTC
This seems to be a followup to an enhancement suggested at http://bugs.gentoo.org/show_bug.cgi?id=30580. 

In this instance, I was attempting an emerge update and got

[ebuild     U ] app-shells/bash-3.2_p33 [3.2_p17-r1] USE="nls -afs -bashlogger -plugins -vanilla" 42 kB 
[blocks B     ] <sys-apps/portage-2.1.4_rc1 (is blocking app-shells/bash-3.2_p33)

So what's going on is that bash needs a newer version of portage than what is installed. But the required portage version has been masked, so portage is stuck, but it doesn't given any indication of the real problem, which is the masked state of the new portage.

I believe portage should explain this in detail in the output from running it in this scenario.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-16 21:33:24 UTC

*** This bug has been marked as a duplicate of bug 205890 ***
Comment 2 Maurice Volaski 2008-01-16 21:38:43 UTC
No, it's not a duplicate or please reopen the other bug as an enhancement request.
Comment 3 Maurice Volaski 2008-01-16 22:07:24 UTC
Please do not close this. It's an enhancement request. Please pass it onto the portage team and let them decide what to do with it.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-01-16 22:13:45 UTC
Once again - there's changelog for this, and --changelog emerge option to show the changelog entry related to this. Portage has no magic knowledge why someone did stick a blocker into an ebuild.

If there's a missing changelog entry for something, then file a bug about that, not about blockers which are totally not a bug.
Comment 5 Maurice Volaski 2008-01-16 22:37:37 UTC
What's is the changelog going to tell me? That the new version of portage is masked? Portage is being told update bash and it looks in the ebuild and sees it needs a new version of portage. But when it gets to emerge that, it sees that it is masked, so it can't let the emerge continue but it just reports that portage is blocking bash. There is no indication anywhere that it's because this new version of portage is masked.

If it just had output to that effect, it could save a LOT of troubleshooting. Look at the two forum posts you referred to in the related bug report. Would they be there had portage made this announcement?

To tell the truth, I seem to recall that in the past, sometimes portage does tell me this, so why is it not now? Perhaps this is a real bug, after all?
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-01-16 22:41:12 UTC
(In reply to comment #5)
> What's is the changelog going to tell me? That the new version of portage is
> masked? 

No, it's not masked, you apparently don't get the point of blockers in ebuilds. Please move this out of bugzilla.

http://www.gentoo.org/main/en/support.xml
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3
Comment 7 Maurice Volaski 2008-01-16 22:44:55 UTC
Of course, it's masked. Masked by keyword.. What else do you think is caused it be blocked?

# $Header: /var/cvsroot/gentoo-x86/sys-apps/portage/portage-2.1.4.ebuild,v 1.1 2008/01/12 03:30:15 zmedico Exp $

inherit toolchain-funcs eutils flag-o-matic multilib

DESCRIPTION="Portage is the package management and distribution system for Gentoo"
HOMEPAGE="http://www.gentoo.org/proj/en/portage/index.xml"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"

Comment 8 Jakub Moc (RETIRED) gentoo-dev 2008-01-16 22:49:46 UTC
Kindly read http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3 *before* posting any further comments here.

Comment 9 Maurice Volaski 2008-01-16 22:58:36 UTC
I don't know what you are trying to get at. Blocking is not even mentioned anywhere in this section you are referring to. So perhaps I should file a bug about these incomplete instructions!

Blocking is described here: http://gentoo-wiki.com/FAQ_Blocked_Package

And as you will see, it clearly indicates masking a package can cause it to block another, required package. That is what happened here, but in the past I do recall seeing portage appropriately tell me this, but perhaps that was only when it was hard masked. So this is looking more and more like a real bug. It doesn't report a package being masked when it is blocked and masked only by keyword.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2008-01-16 23:04:42 UTC
Portage has NO knowledge about blockers' *reason* unless someone stick an entry wrt that to the *ChangeLog*, once that's done, you can get the reason from changelog. File bugs about missing changelog entried, don't file bugs about missing paranormal skills in portage. And this blockers stuff has *zero* to do with masking

Enough noise here, move to appropriate channels with this.


Comment 11 Maurice Volaski 2008-01-16 23:11:46 UTC
Your explanation makes no sense to me at all. I will people on the forum to check it what you say...
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2008-01-16 23:21:48 UTC
(In reply to comment #11)
> I will people on the forum to check it what you say...

Great, finally a proper place to chat.

CLOSED, no need for more comments. Thanks.
Comment 13 Zac Medico gentoo-dev 2008-01-20 20:48:56 UTC
This seems to me like a valid enhancement request to me, similar to bug 88613. The resolver should be searching for more solutions and telling the user what needs to be unmasked.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2008-01-21 09:12:49 UTC
(In reply to comment #13)
> The resolver should be searching for more solutions and telling the user what
> needs to be unmasked.

I guess I misunderstood the point of this bug and supposed user is requesting a package.mask equivalent for blockers stating the reason - which sounds rather troublesome at least. :)

Sorry for mishandling this, accept my apology please.