Subject: Re: package work dirs and clean
To: David Brownlee <abs@netbsd.org>
From: Dan Winship <danw@ximian.com>
List: tech-pkg
Date: 05/18/2001 18:26:15
On 18 May 2001 11:58:23 +0100, David Brownlee wrote:
> One recurring problem with pkgsrc is that if work directories are
> not cleaned a later build can end up {re,}installing an older
> version, or in some other way causing chaos.
"make clean-update" helps avoid this. Should probably be better
documented.
> A couple of random suggestions:
>
> a) Default WRKOBJDIR to something (${PKGSRCDIR}/obj?)
>
> b) Have 'make extract' note the package version in
> ${WRKDIR}/.version, and the install refuse to run
> if they do not match?
Yeah. Or just set WRKDIR to include the version (although if you never
did "make clean" you'd end up with even more build trees lying
around...)
-- Dan