From owner-freebsd-current Mon May 8 4:51:38 2000 Delivered-To: freebsd-current@freebsd.org Received: from smtp10.atl.mindspring.net (smtp10.atl.mindspring.net [207.69.200.246]) by hub.freebsd.org (Postfix) with ESMTP id 4764037B8DD for ; Mon, 8 May 2000 04:51:35 -0700 (PDT) (envelope-from asami@cs.berkeley.edu) Received: from silvia.hip.berkeley.edu (sji-ca7-07.ix.netcom.com [209.109.235.7]) by smtp10.atl.mindspring.net (8.9.3/8.8.5) with ESMTP id HAA14937; Mon, 8 May 2000 07:51:31 -0400 (EDT) Received: (from asami@localhost) by silvia.hip.berkeley.edu (8.9.3/8.6.9) id EAA34223; Mon, 8 May 2000 04:51:28 -0700 (PDT) To: Kenneth Wayne Culver Cc: freebsd-current@freebsd.org Subject: Re: proposed pkg_delete change References: From: asami@freebsd.org (Satoshi - Ports Wraith - Asami) Date: 08 May 2000 04:51:26 -0700 In-Reply-To: Kenneth Wayne Culver's message of "Mon, 8 May 2000 02:10:28 -0400 (EDT)" Message-ID: Lines: 37 X-Mailer: Gnus v5.7/Emacs 20.6 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * From: Kenneth Wayne Culver * dependancies, I think it would be a nice idea to add an option to * pkg_delete to automatically delete all dependancies that aren't currently * used by anything else. If nobody is interested in doing this, I can do it Be careful about that "aren't currently used by anything else" part. If you already had a port A installed, and then later installed B (which just happens to depend on A), you could get A erased when you erase B. You probably need to change pkg_add too, so that it will note somewhere on A's dependency list that it was installed by which port, and let pkg_delete check it. It usually goes like this: @ install B, pkg_add installs A too, and mark A that it was "installed by B" @ deinstall B, pkg_delete checks A, finds the mark and deletes it too While, if you had installed A beforehand, it will be like: @ install A (...few months pass...) @ install B, nothing special happens re the flag @ deinstall B, pkg_delete checks A and doesn't find the flag, so doesn't delete it You can also add a flag to pkg_delete to override said check in case you know you installed A just for the purpose of installing B. If you come up with the file format and patches to pkg_*, I'll modify bsd.port.mk so it will DTRT on dependencies installed by "make install". Satoshi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message