Subject: Re: pkgsrc NetBSD 3.99.15/i386 bulk build results 20060227.0905
To: Thomas Klausner <wiz@NetBSD.org>
From: Emmanuel Dreyfus <manu@netbsd.org>
List: pkgsrc-bulk
Date: 03/07/2006 22:23:32
Thomas Klausner <wiz@NetBSD.org> wrote:

> > sysutils/nvnet                     manu@NetBSD.org
> 
>  nvnet_lkm.c:4:23: sys/param.h: No such file or directory
>  nvnet_lkm.c:5:23: sys/systm.h: No such file or directory
>  nvnet_lkm.c:6:24: sys/kernel.h: No such file or directory
>  nvnet_lkm.c:7:24: sys/device.h: No such file or directory
>  nvnet_lkm.c:8:21: sys/lkm.h: No such file or directory
>  ...

Does that patch fix the problem?

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/nvnet/Makefile,v
retrieving revision 1.1.1.1
diff -U4 -r1.1.1.1 Makefile
--- Makefile    9 Jan 2006 12:44:15 -0000       1.1.1.1
+++ Makefile    7 Mar 2006 20:43:32 -0000
@@ -30,8 +30,20 @@
 INSTALLATION_DIRS=     lkm man/man4
 
 MESSAGE_SUBST+=  PREFIX=${PREFIX:Q}
 
+OSVERSION_SPECIFIC=    YES
+MAKE_ENV+=             BSDSRCDIR=${BSDSRCDIR:Q}
+
+.include "../../mk/bsd.prefs.mk"
+
+pre-extract:
+.if !exists(${BSDSRCDIR}/sys/sys/param.h)
+       @${ECHO_MSG} "Need a kernel source tree in ${BSDSRCDIR}/sys."
+       @${ECHO_MSG} "(Or set BSDSRCDIR correctly in /etc/mk.conf.)"
+       @${FALSE}
+.endif
+
 do-extract:
        ${TAR} -xzf ${DISTDIR}/nvnet-netbsd-src-20050620.tgz -C ${WRKDIR}
        cd ${WRKDIR} && ${SH} ${DISTDIR}/NFORCE-Linux-x86-1.0-0310-pkg1.run -x

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@netbsd.org