From owner-freebsd-ports Sun Sep 10 1:30:56 2000 Delivered-To: freebsd-ports@freebsd.org Received: from granger.mail.mindspring.net (granger.mail.mindspring.net [207.69.200.148]) by hub.freebsd.org (Postfix) with ESMTP id CF49937B423 for ; Sun, 10 Sep 2000 01:30:54 -0700 (PDT) Received: from silvia.hip.berkeley.edu (sji-ca5-129.ix.netcom.com [209.109.234.129]) by granger.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id EAA12867; Sun, 10 Sep 2000 04:30:46 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.11.0/8.11.0) id e8A8URt18676; Sun, 10 Sep 2000 01:30:27 -0700 (PDT) (envelope-from asami) To: kosmos Cc: Steve Price , Will Andrews , FreeBSD Ports Subject: Re: PortsNG (was Re: Ports Options Paper) References: From: asami@FreeBSD.ORG (Satoshi - Ports Wraith - Asami) Date: 10 Sep 2000 01:30:24 -0700 In-Reply-To: kosmos's message of "Sat, 9 Sep 2000 20:01:40 -0700 (PDT)" Message-ID: Lines: 24 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org * From: kosmos * How about an extended deinstall target (like: deinstall tree) that * deletes orphaned dependencies of a port? * * Suppose FOO has dependencies BAR_1, BAR_2 and BAR_3. Another installed * package, FOO_2 depends on BAR_2 and BAR_4. * * If I run this extended deinstall target on FOO, BAR_1 and BAR_3 get * deinstalled too, becuase nothing else depends on them. BAR_2 gets * left alone. Actually I added a "deinstall-depends" target that can be converted to do exactly this if we take out the -f flag of pkg_delete. But I'm not sure if this is the right thing to do for ordinary users. (I added it just for quick testing -- it's not even documented.) The problem here is that we don't know whether the user wants BAR_1 to be deleted or not. Maybe the user is using something in BAR_1 and didn't realize typing "make deinstall-depends" from FOO would delete it. Or something like that. Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message