Subject: Re: everything is a dependency and preventing removal
To: Jeremy C. Reed <reed@reedmedia.net>
From: Frank Cusack <fcusack@fcusack.com>
List: tech-pkg
Date: 01/10/2003 10:16:40
On Fri, Jan 10, 2003 at 09:41:50AM -0800, Jeremy C. Reed wrote:
> On Fri, 10 Jan 2003, Frank Cusack wrote:
> 
> > On Thu, Jan 09, 2003 at 12:20:32PM -0800, Jeremy C. Reed wrote:
> > > In my particular case, I could have some .mk definition to set
> > > DEPENDS+= to a few packages to apply for all packages. That way deleting
> > > sh-utils (for example) couldn't be removed until all other packages were
> > > removed first -- which would become impossible.
> > >
> > > So then how to update sh-utils in this case?
> >
> > make replace?
> 
> The replace target does a "deinstall" (after tarring up already installed
> package and moving the +REQUIRED_BY file). So these essential tools will
> be gone momentarily (which is too long). And then the make will fail,
> because missing echo(1).

Luckily then, I didn't have pkg_tarup available when I tried this. :-)

Shouldn't be too hard to create a target which does not recursively update.

save +REQUIRED_BY
save +CONTENTS
install-in-place
remove (diff of old +CONTENTS and new +CONTENTS)
restore +REQUIRED_BY

/fc