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

Bug 58416

Summary: Request for emerge to identify testing packages
Product: Portage Development Reporter: Mark Knecht <markknecht>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Severity: enhancement CC: dschridde+gentoobugs, ka0ttic, kurt.hindenburg, pacho, pclouds
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 292462, 358927    

Description Mark Knecht 2004-07-26 07:54:46 UTC
I floated this idea on the Gentoo Users list and got some good improvements to my original thoughts. Would the developers of emerge consider adding another 'identifier' on the right hand side, just before the print out of the flags being used for the package compile, that shows if we are building a ~x86 (or ~arch possibly) package? Something like this:

Gentoo2 root # emerge -pv screen

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] app-misc/screen-4.0.2  ~x86  -nethack +pam  820 kB 

I added this by hand just to show the idea. I would find it good if it was in bright yellow. Everyone was in agreement that it should not blink. Other than that there was no consensus about how it should look, but everyone liked the idea.

With the advent of the /etc/portage/package.keywords file it's easy to forget what packages are ~x86. Something like this could help.

I think it should be displayed during any emerge operation (emerge package, emerge -pv package, etc.) but I'll leave it to your judgement what makes the most sense.


Reproducible: Always
Steps to Reproduce:
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-10-09 18:46:05 UTC
I'd aim more at:

[ebuild  N     ] app-misc/screen-4.0.2
Testing (yellow):
[ebuild  N    ~] app-misc/screen-4.0.2
Masked (red):
[ebuild  N    !] app-misc/screen-4.0.2
Comment 2 Brian Harring (RETIRED) gentoo-dev 2005-02-28 00:44:12 UTC
Slapping shut... a patch would be useful if you want it now, meantime cleaning up existing emerge code would be preferable...
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 13:21:47 UTC
Reopening for consideration.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 13:58:27 UTC
*** Bug 68827 has been marked as a duplicate of this bug. ***
Comment 5 Zac Medico gentoo-dev 2011-01-29 05:05:10 UTC
In order to implement this well (cleanly and efficiently), it seems like the masking internals will have to be re-factored so that they preserve this sort of info.
Comment 7 Mark Knecht 2011-01-31 02:31:11 UTC
As the OP I had actually forgotten about this suggestion ages ago. However, today I think eix does a fairly good job of the original idea. 

green - stable
brown with ~ - testing
red [M] - masked

Not quite the same as seeing right at emerge time but it's basically always visible to me telling me what's installed.
Comment 8 Zac Medico gentoo-dev 2011-02-02 22:28:39 UTC
This is documented in the emerge.1 man page now:;a=commit;h=91abbdbc96a91fad0e847a763ad0fb1b8437e88a
Comment 9 Zac Medico gentoo-dev 2011-02-05 08:33:09 UTC
This is included in 2.2.0_alpha20, but we'll leave this bug open until it's in an unmasked release.
Comment 10 Mark Knecht 2011-02-05 13:59:04 UTC
Subtle, but very nice!
Comment 11 Dennis Schridde 2011-02-09 10:10:37 UTC
The manpage currently reads:
       [ebuild U *] sys-apps/portage-2.2.0_alpha6 []
              Portage is installed, but if you run the command, then portage will upgrade to version 2.2.0_alpha6. In this case, --verbose causes the * symbol to  be  displayed,  in
              order to indicate that version 2.2.0_alpha6 is masked by missing keyword. The following symbols are used to indicate various types of masking:

              Symbol   Mask Type

                #      package.mask
                *      missing keyword
                ~      unstable keyword

1) I propose following replacement:
 in order to indicate that version 2.2.0_alpha6 is masked by missing keyword.
 in order to indicate that version 2.2.0_alpha6 was originally masked by missing keyword, but unmasked by the user.

2) I would also reduce the two newlines between the description and the table to just one, otherwise it looks like unrelated when quickly looking over the manpage.

3) Additionally this does not seem to work for ~arch masks on my system. I use ACCEPT_KEYWORDS.
Comment 12 Dennis Schridde 2011-02-09 10:15:38 UTC
(In reply to comment #11)
> 3) Additionally this does not seem to work for ~arch masks on my system. I use
Proposed wording for the manpage after discussion in #gentoo-portage:
"If the package was unmasked by ACCEPT_KEYWORDS, no indicator is displayed."
"[...] was originally masked by missing keyword, but unmasked by the user."
Comment 13 Zac Medico gentoo-dev 2011-02-14 02:24:08 UTC
(In reply to comment #11/12)
It should be fixed in this commit:;a=commit;h=ec113fa7a8b9e8f13c4b4dfd110b10fe9a0c7cfc
Comment 14 Zac Medico gentoo-dev 2011-09-19 04:26:12 UTC
This is fixed in and 2.2.0_alpha23.