From owner-freebsd-ports@FreeBSD.ORG Mon Jun 18 09:35:05 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CD3CC16A468 for ; Mon, 18 Jun 2007 09:35:05 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from misav09.sasknet.sk.ca (misav09.sasknet.sk.ca [142.165.20.173]) by mx1.freebsd.org (Postfix) with ESMTP id 8C01513C48C for ; Mon, 18 Jun 2007 09:35:05 +0000 (UTC) (envelope-from shurd@sasktel.net) Received: from bgmpomr1.sasknet.sk.ca ([142.165.72.22]) by misav09 with InterScan Messaging Security Suite; Mon, 18 Jun 2007 03:35:03 -0600 Received: from server.hurd.local (adsl-76-202-204-41.dsl.lsan03.sbcglobal.net [76.202.204.41]) by bgmpomr1.sasknet.sk.ca (SaskTel eMessaging Service) with ESMTPA id <0JJT00F1QRYEA500@bgmpomr1.sasknet.sk.ca> for freebsd-ports@freebsd.org; Mon, 18 Jun 2007 03:35:03 -0600 (CST) Date: Mon, 18 Jun 2007 02:35:02 -0700 From: Stephen Hurd In-reply-to: <20070617095556.GD1173@turion.vk2pj.dyndns.org> To: Peter Jeremy Message-id: <467651C6.503@sasktel.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT References: <20070614070602.GD39533@obiwan.tataz.chchile.org> <200706140714.l5E7EK0U023767@smtpclu-1.eunet.yu> <20070614075418.GA8093@obiwan.tataz.chchile.org> <200706142322.l5ENMbZt009741@smtpclu-6.eunet.yu> <20070615121125.GH1173@turion.vk2pj.dyndns.org> <4673B353.5040006@sasktel.net> <20070616114154.GA56829@obiwan.tataz.chchile.org> <20070617011612.GW1173@turion.vk2pj.dyndns.org> <4674AE35.9070000@sasktel.net> <20070617095556.GD1173@turion.vk2pj.dyndns.org> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070523 SeaMonkey/1.1.1 Cc: Nikola Lecic , Jeremie Le Hen , freebsd-ports@freebsd.org Subject: Re: Keeping track of automatically installed dependency-only ports 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: Mon, 18 Jun 2007 09:35:05 -0000 Peter Jeremy wrote: > On 2007-Jun-16 20:44:53 -0700, Stephen Hurd wrote: > >>> Agreed, but this situation is not easy to detect with the automated >>> ports checks that are in place. >>> >> Impossible even since we're not using automated tools. >> > > I was thinking of pointyhat > The scenario is installing something *not* from ports which relies on a port which was installed as a dependency then removing the port that required the dependency. The proposed feature would remove the dependency also. >> Of course, simply not automatically deinstalling SDL would help out quite a >> bit. If I decide to remove SDL, all the results of that are my fault. If >> removing portXXX also removes SDL, I can blame the ports system for removing >> stuff out from under me. >> > > A normal 'pkg_delete' will not remove any ports other than those > specified and will only remove the port(s) specified iff those ports > have no other ports depending on them. If portXYZ registers a > dependency on SDL then it will not be possible to remove SDL without > disabling the dependency check (via '-f'). The problematic scenario > is where the GNU configure script (or equivalent) for portXYZ senses > the presence of SDL and decides to use it even though the port doesn't > list SDL as a dependency. > Two things.... 1) The suggestion is that pkg_delete SHOULD remove dependencies with no other dependencies marked. 2) The scenario I used was not a port, but a 3rd party piece of software.