Subject: Re: pkg/10616: sparc/cpu.h includes non-installed kernel includes
To: None <>
From: Frederick Bruckman <>
List: netbsd-bugs
Date: 07/31/2000 21:41:42
On Mon, 31 Jul 2000 wrote:

> > like to see the severity of this PR go to "serious", though (the requirement to
> > have the full kernel sources available to build a package have quite some
> > impact).
> but building LKM's is a little different than just any old package.  Its a
> bit unfortunate, but I don't feel too bad about it.  
> As far as package building could we have the pkg grab syssrc.tgz as one of
> the distfiles and extract src/sys/arch/${MACHINE} as part of the package
> build?

Please don't do that...

> I guess this is ok for release versions, but maybe for anyone running
> -current, they'd just have to get the right sources?
> Or maybe anoncvs could be used to grab the correct version of kernel
> headers for pkg building?

The choice of how to get the system sources should be left to the
user/builder, not fixed by the package. Setting 'IGNORE' conditionally on
/sys not existing should be sufficient.

I think it's OK for a package to need other (NetBSD) sources to build.  
If you know where to get pkgsrc, you know where to get syssrc.