Date: Sun, 13 Mar 2011 19:16:04 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> To: freebsd-ports@freebsd.org Cc: corky1951@comcast.net Subject: Re: Superfluous dependencies Message-ID: <4D7D09E4.7020804@quip.cz> In-Reply-To: <20110312221233.GD79028@comcast.net> References: <AANLkTik65O3gbUoVBM-YbjWu0dpq0OuNn2KoUaC5b5ov@mail.gmail.com> <4D76426A.2010006@secnap.com> <AANLkTi=j7fR%2BRm4Fy14Q_KPDyE%2B7%2BO_d3pd3Yaek=kJG@mail.gmail.com> <20110312215307.GB26099@lonesome.com> <20110312221233.GD79028@comcast.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Charlie Kester wrote: [...] > A few minutes ago, I was answering a post on the forums, in which a user > expressed surprise (and outrage) that the phpmyadmin port was installing > libX11 and similar things on his server. By installing it myself and > then using "pkg_tree -v" to examine the dependencies, I was able to > narrow it down to two of the port's options that were ON by default. I made a simple shell script similar to pkg_tree but for ports about year ago. http://freebsd.quip.cz/script/ports_tree.sh It is very simple script showing full dependency tree for all listed dependencies (not skipping already shown deps - portdependencytree.py is not showing them again). This way, you can find what needs libtool for example. You can call it 'ports_tree.sh lang/php5', then it will show you all dependencies (build + run), or you can use -b (build deps only) or -r (run deps only) example of build deps for Vim: ports_tree.sh -b editors/vim editors/vim converters/libiconv devel/libtool devel/gettext converters/libiconv devel/libtool devel/libtool run deps for Vim: ports_tree.sh -r editors/vim editors/vim converters/libiconv devel/gettext converters/libiconv Shown dependency tree is affected by make.conf / ports.conf, options etc. Miroslav Lachman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D7D09E4.7020804>