Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461742 - 'equery depends' + version specs: weird behavior / enhancement proposal
Summary: 'equery depends' + version specs: weird behavior / enhancement proposal
Status: UNCONFIRMED
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: 2013-03-14 18:05 UTC by Roman Žilka
Modified: 2013-03-14 18:05 UTC (History)
0 users

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 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