Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2019 18:24:27 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        freebsd-pkg@freebsd.org
Subject:   Re: A graphical dependency tree viewer?
Message-ID:  <20190108112427.GA53026@admin.sibptus.ru>
In-Reply-To: <54c7bdc4-9eee-5353-88a8-2f6d6831c710@FreeBSD.org>
References:  <20190107100901.GA36925@admin.sibptus.ru> <4121f685-10b9-aab5-9c33-5356fb30a8d8@FreeBSD.org> <20190108071008.GA49490@admin.sibptus.ru> <54c7bdc4-9eee-5353-88a8-2f6d6831c710@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Matthew Seaman wrote:
> >>>
> >>> Is there a tool to view all the dependencies of a port/package
> >>> (including indirect ones) as a tree? A .dot format would be perfect, =
but
> >>> an ascii-art tree would do too.
> >>>
> >>> It would be especially useful if this tool could extract information
> >>> from /var/db/pkg/*.sqlite without requiring a ports tree.
> >>>
> >>
> >> Does this suit your purposes?
> >>
> >> https://github.com/freebsd/pkg/blob/master/scripts/pkg_tree.sh
> >>
> >=20
> > The author of the script has the right idea, but the visual presentation
> > of the graph is lacking: the vertical lines going down towards nowhere
> > are confusing: https://termbin.com/vf3u
> >=20
> > The tabbed view (-n) is a bit better.
> >=20
> > Also, why is openjdk8-8.192.26_3 twice in the tree (see the link above),
> > is this intentional?
>=20
> Yeah -- the output doesn't merge common dependency subtrees, so if A=20
> depends on B depends on C and also A depends on D depends on C, then C=20
> will appear twice in the output.

I see. I wonder if it would even be possible to merge common dependency
subtrees in this form of ascii report.=20

However, if the script supported graphviz (.dot) output it would be
perhaps feasible. The merging perhaps could even happen automatically
within graphviz. Please look at the sample graphics I've prepared with
graphviz: http://admin.sibptus.ru/~vas/t.png I did not do any special
common dependency processing, graphviz merged the "expat" dependencies
for me.

Anyway, even in this form the utility could be useful to me, thank you
for pointing it out to me.

--=20
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
2:5005/49@fidonet http://vas.tomsk.ru/

--IS0zKkzwUGydFO0o
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJcNIhrAAoJEA2k8lmbXsY0zvMH/0CUsUJ0kxzD3MaV/ka6nkIc
vNCi9YFZiMYYJeWpZd5++5ZJBg8WKrUzHZ1wBkoibuHDsOtbWz8W+TkPOeyF/MuA
oqwXdr2jbjKP1bT4pHi9IcOyavwadjnYegtdmxO5UUx7/Yxr+JXyhqZcLNFmkOb2
32freWN8B96dF4eFvw3GZmNVTUpzge4Ky6PcXC9crY6FCFSqd4txZHr0Nl4LoIht
Oi/pykLRcB7y+NXzC2f/Jv/AyY9eyHq4IZxpZlanFedz7mEcvEeWZkfdP6BPfLu3
FhwEt9GgMkzDGv6yQlBIPvtuvEQu7VmjciPKUR0Ec2v1F3avfD11vvS4tCkV2I4=
=Wtfn
-----END PGP SIGNATURE-----

--IS0zKkzwUGydFO0o--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190108112427.GA53026>