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)?
s/it would/would it
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).
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..
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.
[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.
This was fixed by http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=374ddd24.