Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jun 2007 02:35:02 -0700
From:      Stephen Hurd <shurd@sasktel.net>
To:        Peter Jeremy <peterjeremy@optushome.com.au>
Cc:        Nikola Lecic <nlecic@EUnet.yu>, Jeremie Le Hen <jeremie@le-hen.org>, freebsd-ports@freebsd.org
Subject:   Re: Keeping track of automatically installed dependency-only ports
Message-ID:  <467651C6.503@sasktel.net>
In-Reply-To: <20070617095556.GD1173@turion.vk2pj.dyndns.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Jeremy wrote:
> On 2007-Jun-16 20:44:53 -0700, Stephen Hurd <shurd@sasktel.net> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?467651C6.503>