Some ports have several versions installed, for example:
sqlite3 @3.7.17_0
sqlite3 @3.8.0_0 (active)
How do I get dependencies per each of them?
$ port deps sqlite3@3.7.17_0
Full Name: sqlite3 @3.8.0.2_0
Library Dependencies: libedit
$ port echo depof:sqlite3 and version:3.7.17_0
$ port echo depof:sqlite3 and version:@3.7.17_0
$
No success at the moment.
P.S.: wanted the dependencies
tag for this question.
Best Answer
That looks like either a bug or a limitation with the
deps
command to me. A quick look in the MacPorts Guide, andport help deps
doesn't specify any such limitation, though that's not very conclusive.I'm not sure if you should be able to see dependencies for different versions, though I can definitely see different dependencies for different variants.
I have two versions of
boost
installed (note the different python variants, but same version):And I can check their dependencies independently by referencing them as
portname@version+variants
(version & variants being optional):But I also have two versions of
glib2
andpango
installed at present:Yet, likewise, cannot see the deps of the inactive versions:
Both show the newer (active) version rather than the older one, even with the
--index
argument to deps.