From owner-freebsd-ports@FreeBSD.ORG Sun Mar 13 01:21:02 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DF47106566C for ; Sun, 13 Mar 2011 01:21:02 +0000 (UTC) (envelope-from wxs@atarininja.org) Received: from syn.atarininja.org (syn.csh.rit.edu [129.21.49.45]) by mx1.freebsd.org (Postfix) with ESMTP id DCA728FC0C for ; Sun, 13 Mar 2011 01:21:01 +0000 (UTC) Received: by syn.atarininja.org (Postfix, from userid 1001) id EAE105C3B; Sat, 12 Mar 2011 20:21:48 -0500 (EST) Date: Sat, 12 Mar 2011 20:21:48 -0500 From: Wesley Shields To: freebsd-ports@freebsd.org Message-ID: <20110313012148.GA36742@atarininja.org> References: <4D76426A.2010006@secnap.com> <20110312215307.GB26099@lonesome.com> <20110312221233.GD79028@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110312221233.GD79028@comcast.net> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: Superfluous dependencies X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Mar 2011 01:21:02 -0000 On Sat, Mar 12, 2011 at 02:12:34PM -0800, Charlie Kester wrote: > On Sat 12 Mar 2011 at 13:53:07 PST Mark Linimon wrote: > >On Thu, Mar 10, 2011 at 10:28:40AM +0100, Hans Ottevanger wrote: > >> If anybody is interested I could consolidate my results and post a few patches. > > > >I would like to see them. > > > >This is the kind of really-dull-but-necessary work that we need to have > >people work on to fight the creeping dependencies :-) > > 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'm not aware of any tool that will display a similar dependency tree > for a port *before* it is installed. "make all-depends-list" creates > exactly what it suggests, a list, and doesn't show any of the > hierarchical info that is needed to answer questions like the one I was > working on. If there is such a tool, I'd love to hear about it. > Otherwise, it might be an interesting and useful project for someone to > take a stab at. There is always the "missing" target to show you what is currently missing if a particular port were to be installed with whatever options you have chosen. I use this target regularly, because I'm often too lazy to read OPTIONS and other knobs. -- WXS