Joerg Sonnenberger <joerg%britannica.bec.de@localhost> writes: > On Sun, Dec 12, 2010 at 10:18:25PM +0000, David Brownlee wrote: >> On 11 December 2010 23:59, David Holland >> <dholland-pkgtech%netbsd.org@localhost> wrote: >> > On Sat, Dec 11, 2010 at 08:14:26PM +0000, David Brownlee wrote: >> > Â> - Default to DEPENDS_TARGET=package-install and >> > Â> UPDATE_TARGET=package-install >> > >> > as pointed out already, this is wrong. (and we can't switch to >> > USE_DESTDIR by default, btw, until someone fixes undo-replace. See PR >> > 43689.) >> >> I could be missing something very obvious here, apologies if so: >> >> What about defaulting 'make replace' and 'make undo-replace' to unsetting >> USE_DESTDIR? That could get everyone onto USE_DESTDIR by default. >> I know its not ideal, but we've been blocked on enabling USE_DESTDIR >> for a while now and this could be a solution, albeit not an ideal one. I don't think one can flip USE_DESTDIR on a per-target basis, because multiple targets change behavior in a coordinated manner. > We could also just go ahead. If someone really cares about undo-replace, > he/she can implement it. Agreed. I think it's pretty easy, too - just a pkg_add -D -U of the old package. FWIW I use make replace all the time, and have never worried about the undo-replace target.
Description: PGP signature