From owner-freebsd-questions@FreeBSD.ORG Mon Mar 28 14:15:50 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5708416A4CE for ; Mon, 28 Mar 2005 14:15:50 +0000 (GMT) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F7C843D31 for ; Mon, 28 Mar 2005 14:15:50 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from ringworm.mechee.com ([4.27.46.32])0.04 <0IE200CKNFMCQ860@vms044.mailsrvcs.net> for freebsd-questions@freebsd.org; Mon, 28 Mar 2005 08:15:48 -0600 (CST) Received: by ringworm.mechee.com (Postfix, from userid 1001) id EF9392CE751; Mon, 28 Mar 2005 06:15:47 -0800 (PST) Date: Mon, 28 Mar 2005 06:15:47 -0800 From: "Michael C. Shultz" In-reply-to: <20050328085024.1bad28eb.rpratt1950@earthlink.net> To: freebsd-questions@freebsd.org Message-id: <200503280615.47598.ringworm01@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <20050328044052.75667.qmail@web53909.mail.yahoo.com> <4247B6F7.8010508@att.net> <20050328085024.1bad28eb.rpratt1950@earthlink.net> User-Agent: KMail/1.8 Subject: Re: Portupgrade (vs. Portmanager) question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 14:15:50 -0000 On Monday 28 March 2005 05:50 am, Randy Pratt wrote: > On Sun, 27 Mar 2005 23:49:11 -0800 > > Jay O'Brien wrote: > > Michael C. Shultz wrote: > > > It would be nice if the ports make options were better > > > documented, but > > > > > > you can read through /usr/ports/Mk/bsd.port.mk and find > > > information on the various options. > > > > > > here is an example: > > > > > > # all-depends-list > > > # - Show all directories which are > > > dependencies # for this port. > > > > > > then > > > > > > cd /usr/ports/lang/ezm3/ > > > make all-depends-list > > > > > > result: > > > > > > /usr/ports/converters/libiconv > > > /usr/ports/devel/gettext > > > /usr/ports/devel/gmake > > > /usr/ports/devel/libtool15 > > > > > > -Mike > > > > Mike, > > > > That's great info, thank you. It really helps put this into > > perspective. > > > > I did portmanager -sl and it identifies 7 candidates for deletion. > > It identifies cvsup-without-gui and also identifies ezm3 upon which > > it depends. Am I missing something here or shouldn't ezm3 not been > > identified as a "leaf port"? > > Good observation on your part and its a good question to ask. > > I'm not real familar with portmanager but it appears to identify the > leaf ports in the same manner as sysutils/pkg_cutleaves and > sysutils/pkg_rmleaves do. The utilities are only considering the > run-dependencies as needed. The main difference between sysutils/pkg_cutleaves and portmanager -slid is portmanager catches all of the leafs in one pass, even after you've deleted a few. With pkg_cutleaves when you remove a leaf you have to look through all of them again to see if any new ones were exposed. > > Any port that is only required as a build-dependency is treated as > a leaf port. They could be removed but it would have to be rebuilt > if it were needed again. Correct. > > I usually keep these tools that are only needed for building since I > run portupgrade nightly. Others that have limited hard disk space > might elect to remove them and their associated source tarballs. Its > left to the individual to decide whether or not to keep them. The idea behind identifying leaves is to see ports you may have installed and forgotten about because you never use them. Unless space is a problem I would recommend not removing ports that are build tools like ezm. -Mike > > You're on the right track to understanding how the ports system works > and using its tools. Just keep reading the man pages and observing > how things function. > > Best regards, > > Randy