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

Bug 461742

Summary: 'equery depends' + version specs: weird behavior / enhancement proposal
Product: Portage Development Reporter: Roman Žilka <roman.zilka>
Component: ToolsAssignee: Portage Tools Team <tools-portage>
Status: UNCONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Roman Žilka 2013-03-14 18:05:52 UTC
I'm trying to find all packages that require for their life a specific package version (i.e., no other version is acceptable) or any package version from a range of versions (<,>,=<,=>). I'd like to have something like

# equery depends --exclusive '<media-libs/gst-plugins-bad-1.0'
... list of packages that must have gst-plugins-bad-0.*, while -1.* is unacceptable ...

The --exclusive flag is supposed to differentiate the query from one which asks for packages that can make do with <pkg-X.Y, but >=pkg-X.Y would be acceptable too.

Currently (gentoolkit-0.3.0.7):
# equery d '<media-libs/gst-plugins-bad-1.0'
(...)
media-plugins/gst-plugins-meta-1.0-r1 (dvb ? media-libs/gst-plugins-bad:1.0)
(...)

This is probably an error or some undefined behavior, but obviously the command doesn't return what I'm looking for.

Similarly, 'equery d --exclusive =pkg-X.Y' might come in handy. Currently:

# equery d media-libs/gst-plugins-bad-0.10.23-r1
(...)
media-plugins/gst-plugins-faad-1.0.5 (>=media-libs/gst-plugins-bad-1.0.5:1.0)
(...)

# equery d =media-libs/gst-plugins-bad-0.10.23-r1
(...)
media-plugins/gst-plugins-meta-1.0-r1 (dvb ? media-libs/gst-plugins-bad:1.0)
(...)

Reproducible: Always