Subject: Re: WRKSRC's position in Makefiles, and pkglint
To: Alistair Crooks <firstname.lastname@example.org>
From: Thomas Klausner <wiz@NetBSD.org>
Date: 01/19/2004 12:15:48
On Mon, Jan 19, 2004 at 11:06:51AM +0000, Alistair Crooks wrote:
> WRKSRC is the name of the directory in the build area on a local
> machine where files will get extracted to, and built from. WRKSRC is
> not a property of the distfile - I would bet that 99% of all of the
> distfiles in pkgsrc have no idea what a "WRKSRC" is. Rather, WRKSRC
> derives its name from DISTNAME by default, but that is absolutely no
> reason to put WRKSRC beside DISTNAME.
I meant that WRKSRC is a property of the distfile because it is
derived from the internal directory path of the files in the distribution
tarball, prepended by WRKDIR. If the distfile changes, the WRKSRC changes,
> I really do not want the WRKSRC definition cluttering up the most
> important information at the top of the pkgsrc makefile.
Cluttering up? It's only one line!