Subject: Re: Please review: nbX => PKGREVISION
To: Sean Davis <dive@endersgame.net>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 11/27/2001 17:41:11
On Mon, 26 Nov 2001, Sean Davis wrote:

> While I do not know too much about the internals of how pkgsrc does it's
> thing, I would quite like that committed, personally. I'm writing a C
> program to do (more or less) what the pkgchk package currently does, except
> all in C, since pkgchk is *slow*. Currently, the hangup in development of
> this program is having to parse the Makefile for the package name,
> substituting variables where needed, and your patch would make things much
> easier, I think.

	The only thing that takes any real time in pkgchk is the
	make invocations.

	Bear in mind you will need to implement a reasonable set of
	makefile parsing, including conditionals, includes and the
	various magic : variable modifiers. Also whatever subset you
	implement you'll find someone later using something additional
	(lintpkgsrc plays this catchup game :)

	Another option would be to look at ways of speeding up the make
	calls in pkgsrc, possibly by setting a 'fastpath' in the mk
	files for 'print pkgname'.

	Anyway - good luck with the coding!


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