Subject: Re: CVS commit: pkgsrc/mk
To: None <tech-pkg@NetBSD.org>
From: Eric Haszlakiewicz <email@example.com>
Date: 11/01/2004 18:56:59
On Tue, Nov 02, 2004 at 01:05:23AM +0100, Thomas Klausner wrote:
> On Tue, Nov 02, 2004 at 12:03:10AM +0000, Eric Haszlakiewicz wrote:
> > Modified Files:
> > pkgsrc/mk: bsd.pkg.mk
> > Log Message:
> > Set UPDATE_RUNNING=YES when deinstalling due to a update or replace target.
> > Use this to trigger appropriate args to pkg_delete so PKG_PRESERVE packages
> > can be upgraded.
> Does this do the right thing if a 'make update' in
> e.g. devel/gmake decides it needs newer pkgtools?
> Will the flags then also be set for devel/gmake?
That depends on what you mean by the "right thing". It currently
doesn't automatically try to install a new pkg_install, but it tells
you to go and run "make install". If you already have it installed
doing _that_ will tell you to run either "make update" or "make replace".
I consider that to be what's it's supposed to do.
UPDATE_RUNNING only gets set for the duration of the deinstall
target(s) that are executed during the update target, so nothing else
should see it set to YES. Even if it was set, it only matters for
packges that have PKG_PRESERVE set.