From owner-freebsd-current Mon May 8 9:42:15 2000 Delivered-To: freebsd-current@freebsd.org Received: from majordomo2.umd.edu (majordomo2.umd.edu [128.8.10.7]) by hub.freebsd.org (Postfix) with ESMTP id 3872837B977; Mon, 8 May 2000 09:42:08 -0700 (PDT) (envelope-from culverk@wam.umd.edu) Received: from rac5.wam.umd.edu (root@rac5.wam.umd.edu [128.8.10.145]) by majordomo2.umd.edu (8.9.3/8.9.3) with ESMTP id MAA04206; Mon, 8 May 2000 12:41:54 -0400 (EDT) Received: from rac5.wam.umd.edu (sendmail@localhost [127.0.0.1]) by rac5.wam.umd.edu (8.9.3/8.9.3) with SMTP id MAA14150; Mon, 8 May 2000 12:42:04 -0400 (EDT) Received: from localhost (culverk@localhost) by rac5.wam.umd.edu (8.9.3/8.9.3) with ESMTP id MAA14142; Mon, 8 May 2000 12:42:04 -0400 (EDT) X-Authentication-Warning: rac5.wam.umd.edu: culverk owned process doing -bs Date: Mon, 8 May 2000 12:42:03 -0400 (EDT) From: Kenneth Wayne Culver To: Satoshi - Ports Wraith - Asami Cc: freebsd-current@freebsd.org Subject: Re: proposed pkg_delete change In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sounds good to me, again, I won't be doing anything for the next 2 weeks except studying for finals, but as soon as I'm finished, I'll work on the changes to the pkg_ commands to get the working this way. ================================================================= | Kenneth Culver | FreeBSD: The best OS around. | | Unix Systems Administrator | ICQ #: 24767726 | | and student at The | AIM: muythaibxr | | The University of Maryland, | Website: (Under Construction) | | College Park. | http://www.wam.umd.edu/~culverk/| ================================================================= On 8 May 2000, Satoshi - Ports Wraith - Asami wrote: > * 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