Subject: Re: tools framework and FGREP AWOL?
To: Dan McMahill <dmcmahill@NetBSD.org>
From: Johnny C. Lam <jlam@NetBSD.org>
Date: 05/18/2005 01:56:05
On Tue, May 17, 2005 at 08:33:41PM -0400, Dan McMahill wrote:
> CHROOT bondage# pwd
> CHROOT bondage# make show-var VARNAME=GREP
> CHROOT bondage# make show-var VARNAME=FGREP
> but I used to get something for FGREP.
> With the new tools framework, whats the right thing to do to get some
> tools for something like README.html generation?
> Right now what happens is something like:
> cd pkgsrc/pkgtools/pkglint
> FGREP=`make show-var VARNAME=FGREP`
> and there is a for loop which extracts a small handful of tools which
> are used by the README.html scripts.
> The bulk build framework uses some similar things.
> Is there a new way this should be done? Should there be some target
> which says "give me some tools for bulk type operations"?
Right now, it looks like packages chdir into pkgtools/pkglint and
extract variables from the infrastructure. I think this is unreliable.
I recommend creating a special package just to pull in the required
tools, e.g. pkgtools/prereq-readme, pkgtools/prereq-bulk, etc. have
PKGSRC_USE_TOOLS+= ... in the package Makefile and NO_BUILD, NO_INSTALL,
etc. This would cause the "TOOL" variables to be defined appropriately,
and will also pull in any tools required that don't exist on the
-- Johnny Lam <jlam@NetBSD.org>