Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 565980 - app-portage/gentoolkit: eshowkw should show keywords for all installed packages
Summary: app-portage/gentoolkit: eshowkw should show keywords for all installed packages
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-16 20:28 UTC by Paul Varner (RETIRED)
Modified: 2022-10-20 02:44 UTC (History)
2 users (show)

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


Attachments
show all installed packages (0001-Show-keywords-for-all-installed-packages.patch,1.61 KB, patch)
2015-11-19 07:23 UTC, Denis Romanchuk
Details | Diff
show all installed packages (0001-Show-keywords-for-all-installed-packages.patch,1.55 KB, patch)
2015-11-19 07:38 UTC, Denis Romanchuk
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Varner (RETIRED) gentoo-dev 2015-11-16 20:28:23 UTC
From bug 565408:

imaging the foo package with slots , 1 and 2.

if we install the package of the first slot then we can see it with equery y foo but then, lets suppose portage update the system, now the slot 1 is removed from the tree, there we can't see the installed package D: if we use equery equery y foo we don't see any installed package but portage recognizes it.

graph exmpl.

foo package

                  | a a   a         n   p r     s   | n   |  
                  | l m   r h i m m i   p i s   p   | u s | r
                  | p d a m p a 6 i o p c s 3   a x | s l | e
                  | h 6 r 6 p 6 8 p s p 6 c 9 s r 8 | e o | p
                  | a 4 m 4 a 4 k s 2 c 4 v 0 h c 6 | d t | o
------------------+---------------------------------+-----+-------
  1.1 (installed) | o ~ o o o o o o o ~ ~ o o o o ~ | o 1 | gentoo
------------------+---------------------------------+-----+-------
  2.1             | o ~ o o o o o o o ~ o o o o o o | o 2 | gentoo

then the portage tree remove the first sloot the we will see

                  | a a   a         n   p r     s   | n   |  
                  | l m   r h i m m i   p i s   p   | u s | r
                  | p d a m p a 6 i o p c s 3   a x | s l | e
                  | h 6 r 6 p 6 8 p s p 6 c 9 s r 8 | e o | p
                  | a 4 m 4 a 4 k s 2 c 4 v 0 h c 6 | d t | o
------------------+---------------------------------+-----+-------
  2.3             | o ~ o o o o o o o ~ o o o o o o | o 2 | gentoo

Well there we now the foo-1.1 continues installed but we can't see it.

D: equery should show the installed package although tha package is removed, obs this don't happend with package of the same slots, because there portage upgrade  it and is removed the deprecated ebuild.

This is very common in the kernels packages
Comment 1 Lagu 2015-11-16 22:29:36 UTC
hi, i have a little question of something like this before write a bug report, its with the portage system, think this like continues of the issue, when the foo-1.1 its removed it continues installed, but there if the package don't have a specification to be installed (any package say a specific version or slot, or is manually installed) portage don't update it (anymore) and don't remove it with depclean, ¿its correctly this function? because it feels like a ghost package.

graph ex. (in experience)

we have a vanilla-sources-4.2.5 slot 4.2.5 so

emerge vanilla-sources

now is installed with that package in world, all fine, then portage remove that slot and put the next version a vanilla-sources-4.2.6 slot 4.2.6 (the ebuild 4.2.5 don't exist now), and portage don't update vanilla-sources and don't is removed from depclean because that package satisfies the package of world, but it can't be updated for the slot differences.

Thx.
Comment 2 Denis Romanchuk 2015-11-18 12:06:43 UTC
(In reply to Paul Varner from comment #0)
> From bug 565408:
> 
> imaging the foo package with slots , 1 and 2.
> 
> if we install the package of the first slot then we can see it with equery y
> foo but then, lets suppose portage update the system, now the slot 1 is
> removed from the tree, there we can't see the installed package D: if we use
> equery equery y foo we don't see any installed package but portage
> recognizes it.
> 
> graph exmpl.
> 
> foo package
> 
>                   | a a   a         n   p r     s   | n   |  
>                   | l m   r h i m m i   p i s   p   | u s | r
>                   | p d a m p a 6 i o p c s 3   a x | s l | e
>                   | h 6 r 6 p 6 8 p s p 6 c 9 s r 8 | e o | p
>                   | a 4 m 4 a 4 k s 2 c 4 v 0 h c 6 | d t | o
> ------------------+---------------------------------+-----+-------
>   1.1 (installed) | o ~ o o o o o o o ~ ~ o o o o ~ | o 1 | gentoo
> ------------------+---------------------------------+-----+-------
>   2.1             | o ~ o o o o o o o ~ o o o o o o | o 2 | gentoo
> 
> then the portage tree remove the first sloot the we will see
> 
>                   | a a   a         n   p r     s   | n   |  
>                   | l m   r h i m m i   p i s   p   | u s | r
>                   | p d a m p a 6 i o p c s 3   a x | s l | e
>                   | h 6 r 6 p 6 8 p s p 6 c 9 s r 8 | e o | p
>                   | a 4 m 4 a 4 k s 2 c 4 v 0 h c 6 | d t | o
> ------------------+---------------------------------+-----+-------
>   2.3             | o ~ o o o o o o o ~ o o o o o o | o 2 | gentoo
> 
> Well there we now the foo-1.1 continues installed but we can't see it.
> 
> D: equery should show the installed package although tha package is removed,
> obs this don't happend with package of the same slots, because there portage
> upgrade  it and is removed the deprecated ebuild.
> 
> This is very common in the kernels packages

Basically as I understood equery y <package> (and eshowkw <package> correspondingly) should list in the table package which is already installed even though ebuild related to that package's version was removed from the portage tree after emerge --sync or some updates, right ?
Comment 3 Lagu 2015-11-18 16:25:31 UTC
yes :D
Comment 4 Denis Romanchuk 2015-11-19 07:23:46 UTC
Created attachment 417326 [details, diff]
show all installed packages

Could you check it ?
Comment 5 Denis Romanchuk 2015-11-19 07:38:11 UTC
Created attachment 417330 [details, diff]
show all installed packages
Comment 6 Lagu 2015-11-19 18:09:18 UTC
yay it works!, the onlty thing ¿its posible mark that packages as removed? vor this reazon:

part of gcc keywords:

Keywords for sys-devel/gcc:
             |                                 | u        |  
             | a a   a         n   p r     s   | n        |  
             | l m   r h i m m i   p i s   p   | u s      | r
             | p d a m p a 6 i o p c s 3   a x | s l      | e
             | h 6 r 6 p 6 8 p s p 6 c 9 s r 8 | e o      | p
             | a 4 m 4 a 4 k s 2 c 4 v 0 h c 6 | d t      | o
-------------+---------------------------------+----------+-------
   4.9.0     | o o o o ~ o o o o o o o o o o o | # 4.9    | gentoo
   4.9.1     | o o o o ~ o o o o o o o o o o o | #        | gentoo
   4.9.2     | ~ ~ ~ ~ ~ ~ ~ ~ o ~ ~ o ~ ~ ~ ~ | #        | gentoo
[I]4.9.3     | + + + + + ~ + ~ o + + o + + ~ + | o        | gentoo
-------------+---------------------------------+----------+-------
   5.1.0     | o o o o o o o o o o o o o o o o | # 5      | gentoo
   5.2.0     | o o o o o o o o o o o o o o o o | o        | gentoo

now my hardened-sources:

Keywords for sys-kernel/hardened-sources:
            |                                 | u          |  
            | a a   a         n   p r     s   | n          |  
            | l m   r h i m m i   p i s   p   | u s        | r
            | p d a m p a 6 i o p c s 3   a x | s l        | e
            | h 6 r 6 p 6 8 p s p 6 c 9 s r 8 | e o        | p
            | a 4 m 4 a 4 k s 2 c 4 v 0 h c 6 | d t        | o
------------+---------------------------------+------------+-------
[I]4.1.7-r1 | ~ + ~ o ~ ~ o o o ~ ~ o o o ~ + | o 4.1.7-r1 | gentoo
------------+---------------------------------+------------+-------
[I]4.2.5-r1 | o o o o o o o o o o o o o o o o | o 4.2.5-r1 | gentoo
------------+---------------------------------+------------+-------
[I]4.2.6-r3 | o o o o o o o o o o o o o o o o | o 4.2.6-r3 | gentoo
------------+---------------------------------+------------+-------
[I]4.2.6-r4 | ~ ~ ~ o ~ ~ o o o ~ ~ o o o ~ ~ | o 4.2.6-r4 | gentoo

as you can see in in gcc the package 5.X are in prtage tree but without keywords, but in the hardened-sources the packages 4.2.5-r1 and 4.2.6-r3 don't are in portage tree, its confusing because both are marked in the same way.
¿its posible mark with a difference? ex:

Keywords for sys-kernel/hardened-sources:
            |                                 | u          |  
            | a a   a         n   p r     s   | n          |  
            | l m   r h i m m i   p i s   p   | u s        | r
            | p d a m p a 6 i o p c s 3   a x | s l        | e
            | h 6 r 6 p 6 8 p s p 6 c 9 s r 8 | e o        | p
            | a 4 m 4 a 4 k s 2 c 4 v 0 h c 6 | d t        | o
------------+---------------------------------+------------+-------
[I]4.1.7-r1 | ~ + ~ o ~ ~ o o o ~ ~ o o o ~ + | o 4.1.7-r1 | gentoo
------------+---------------------------------+------------+-------
[I]4.2.5-r1 | o o o o o o o o o o o o o o o o | o 4.2.5-r1 | removed
------------+---------------------------------+------------+-------
[I]4.2.6-r3 | o o o o o o o o o o o o o o o o | o 4.2.6-r3 | removed
------------+---------------------------------+------------+-------
[I]4.2.6-r4 | ~ ~ ~ o ~ ~ o o o ~ ~ o o o ~ ~ | o 4.2.6-r4 | gentoo

Thx.