Subject: package work dirs and clean
To: None <>
From: David Brownlee <>
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		-- No hype required --