Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314633 - display package SLOT in emerge -p output
Summary: display package SLOT in emerge -p output
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 431026
  Show dependency tree
 
Reported: 2010-04-11 08:54 UTC by Ryan Hill (RETIRED)
Modified: 2012-10-17 04:19 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2010-04-11 08:54:27 UTC
I have a script that creates a list of packages by parsing emerge output.  I'm trying to add a feature that updates the version numbers in an already existing list to the currently visible ones.  The problem i'm having is that if there's an update found for a package that has multiple SLOTs installed there's no way (that i can think of) to determine which SLOT the update belongs to.  The currently installed version number is displayed but i can't rely on that because it's possible the list was created before that version was installed, and also because it isn't available for packages pulled in by --newuse.

so it would be possible to display the SLOT of a package in the output of emerge -p (and particularly in the output of -p --quiet --columns)?
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2010-04-11 08:58:41 UTC
s/it would/would it
Comment 2 Martin Väth 2010-04-11 16:36:36 UTC
This is the first example on the eix manpage (of current eix versions):
Pipe the output through
   eix '-|*' --format '<markedversions:NAMEASLOT>'
(resp. use NAMESLOT instead of NAMEASLOT to see only non-redundant slots).
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2010-04-11 19:43:18 UTC
thanks, that's helpful.  unfortunately one one the goals of the script is to rely as little as possible on third-party tools as possible (currently just portage and portage-utils).

i might cave in on that requirement though, it looks like eix does everything i need and then some..
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2010-10-16 08:03:04 UTC
Another case where I think it would help:

---

# emerge -av1 raptor

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ] media-libs/raptor-1.9.0 [1.4.21] USE="curl unicode xml -debug -json -static-libs" 1,571 kB
[blocks B     ] <media-libs/raptor-1.4.21-r1 ("<media-libs/raptor-1.4.21-r1" is blocking media-libs/raptor-1.9.0)

Total: 1 package (1 in new slot), Size of downloads: 1,571 kB
Conflict: 1 block (1 unsatisfied)


 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (media-libs/raptor-1.4.21::gentoo, installed) pulled in by
    <media-libs/raptor-1.9.0 required by (dev-libs/rasqal-0.9.19::gentoo, installed)
    >=media-libs/raptor-1.4.16 required by (dev-libs/soprano-2.5.0::gentoo, installed)
    <media-libs/raptor-1.9.0 required by (dev-libs/redland-1.0.10-r2::gentoo, installed)
    (and 3 more)

  (media-libs/raptor-1.9.0::gentoo, ebuild scheduled for merge) pulled in by
    raptor

---

It would be very nice if I didn't have to go poking at epkginfo every time to figure out what :SLOT I need to append to get the one I want.
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2011-11-17 05:28:12 UTC
[ebuild     U  ]       x11-libs/gtk+-3.2.2-r1 [3.2.1]
[ebuild     U  ]        x11-libs/gtk+-2.24.8-r1 [2.24.7]

Again, if I just want to update 2.24 it'd be nice to know I can do gtk+:2.  This isn't the best example since the SLOTs match up with the versions (2/3) but you get the picture.
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2012-10-17 04:16:51 UTC
This was fixed by http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=374ddd24.