Subject: Re: lintpkgsrc changes
To: Alistair G. Crooks <agc@ftp.netbsd.org>
From: Simon Burge <simonb@netbsd.org>
List: tech-pkg
Date: 01/05/2000 11:06:00
"Alistair G. Crooks" wrote:

> Simon,
> 
> > How does the following diff to lintpkgsrc look?  At home, I
> > just fetch the pkgsrc directories I want - not the complete
> > pkgsrc tree.  This means the category directories don't have
> > any Makefile's in them.  I've added the "-s" option that
> > checks subdirectories directly.  If there's no complaints
> > I'll commit this (better wording for the new option will
> > be accepted!).
> 
> I can't speak for the change, since it's in Perl. What I can say
> is that pkgsrc is really not designed or meant to be used as you
> are doing it (just the package directories that you want).  This
> is because, whenever a prerequsite package is defined, the mecahnism
> for finding its version number and/or package name is to cd to the
> given directory and work out the ${PKGNAME} from the Makefile there.

Luckily I can figure that bit out for myself when it does error :-)
When I fetch a package I check the prerequsites by hand and fetch them
too.  Sure that's a little extra work but not that much, and I don't
spend all day installing packages so it's not a big pain.

To make it clear, my prosposed change was an option, not the default.
I think I could make lintpkgsrc work by:

	cd /usr/pkgsrc
	for i in * ; do
	  touch $i/Makefile
	done

but that's not exactly clean.  My patch basically says ignore those
mid-level Makefiles if option foo is set.

> The weekly tar file is not that large...

Agreed that it's not large, but it's 45MB and 33000 inodes I don't want
to waste on my home system (which isn't a very big system at all in the
scheme of things).  I just want most of the benefits of pkgsrc while
wasting as little diskspace as I can!

Simon.