Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2017 11:22:29 -0600
From:      Adam Weinberger <adamw@adamw.org>
To:        Vick Khera <vivek@khera.org>
Cc:        FreeBSD Ports List <ports@freebsd.org>
Subject:   Re: dependency tree display
Message-ID:  <8F9DC57A-9641-42FC-AAD7-2357ED62C223@adamw.org>
In-Reply-To: <CALd%2Bdcfihykd0t4vHBpN8BQvFPx8qTGQe=_iJsOprbvNCfWduA@mail.gmail.com>
References:  <CALd%2Bdcfihykd0t4vHBpN8BQvFPx8qTGQe=_iJsOprbvNCfWduA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> On 15 Mar, 2017, at 11:18, Vick Khera <vivek@khera.org> wrote:
>=20
> Is there a way to visualize the dependencies of a port in a tree-like
> fashion? That is, if A depends on B, and B depends on C, show me A -> =
B ->
> C.
>=20
> When I upgrade something in node using npm, it gives this kind of nice =
tree:
>=20
> hal@2.0.0 /u/lorax1/home/hubot/hal
> =E2=94=9C=E2=94=80=E2=94=AC aws2js@0.8.3
> =E2=94=82 =E2=94=94=E2=94=80=E2=94=AC libxml-to-js@0.3.11
> =E2=94=82   =E2=94=94=E2=94=80=E2=94=AC libxmljs@0.18.4
> =E2=94=82     =E2=94=94=E2=94=80=E2=94=AC node-pre-gyp@0.6.33
> =E2=94=82       =E2=94=94=E2=94=80=E2=94=80 request@2.80.0
> =E2=94=9C=E2=94=80=E2=94=80 hubot-jira-commands@1.1.0  (git://
> =
github.com/khera/hubot-jira-commands.git#20b8792eeecf9cbdc1c36462fd42c44cd=
f7e926b
> )
> =E2=94=9C=E2=94=80=E2=94=AC hubot-s3-brain@0.1.0
> =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 aws-sdk@2.28.0
> =E2=94=94=E2=94=80=E2=94=AC hubot-slack@4.3.3
>  =E2=94=94=E2=94=80=E2=94=AC @slack/client@3.8.1
>    =E2=94=9C=E2=94=80=E2=94=AC https-proxy-agent@1.0.0
>    =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 debug@2.6.3
>    =E2=94=9C=E2=94=80=E2=94=AC request@2.81.0
>    =E2=94=82 =E2=94=9C=E2=94=80=E2=94=AC har-validator@4.2.1
>    =E2=94=82 =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 ajv@4.11.5
>    =E2=94=82 =E2=94=9C=E2=94=80=E2=94=AC http-signature@1.1.1
>    =E2=94=82 =E2=94=82 =E2=94=94=E2=94=80=E2=94=AC jsprim@1.4.0
>    =E2=94=82 =E2=94=82   =E2=94=94=E2=94=80=E2=94=80 assert-plus@1.0.0
>    =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 qs@6.4.0
>    =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 safe-buffer@5.0.1
>    =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 tunnel-agent@0.6.0
>    =E2=94=94=E2=94=80=E2=94=80 ws@1.1.4
>=20
> It would be so awesome to be able to see that for freebsd ports as =
well. I
> was thinking that poudriere might be a good tool to start from, since =
it
> has to build this dependency tree internally already. I think it would =
make
> a great report to get out of pkg version as well to show existing =
installed
> dependencies.
>=20
> Has anyone built anything like this yet?

Try this:

https://gist.github.com/bdrewery/3375001

# Adam


--=20
Adam Weinberger
adamw@adamw.org
https://www.adamw.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8F9DC57A-9641-42FC-AAD7-2357ED62C223>