Subject: package work dirs and clean
To: None <tech-pkg@netbsd.org>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 05/18/2001 10:58:23
	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.

	Given the size of pkgsrc  and the scattering of work directories
	it can take some considerable time to clean them all.

        I always set WRKOBJDIR to /var/obj/pkg, and 'rm -rf' that as needed.

	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?



-- 
		David/absolute		-- www.netbsd.org: No hype required --