Subject: pkg/13876: bugfix for pkgsrc/net/libpcap/buildlink.mk
To: None <gnats-bugs@gnats.netbsd.org>
From: Stoned Elipot <Stoned.Elipot@script.jussieu.fr>
List: netbsd-bugs
Date: 09/06/2001 14:00:19
>Number:         13876
>Category:       pkg
>Synopsis:       one include file was left over in net/libpcap/buildlink.mk
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 06 04:56:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stoned Elipot
>Release:        pkgsrc-current
>Organization:
SCRIPT, Paris VII University, France
>Environment:
System: NetBSD bandsept 1.5.1 NetBSD 1.5.1 (GENERIC) #0: Mon Jul 9 22:42:32 CST 2001 toor@proxima:/usr/src/sys/arch/sparc/compile/GENERIC sparc
System: SunOS deep-space-9 5.8 Generic_108528-07 sun4u sparc SUNW,Ultra-60

>Description:
I forgot include/net/bpf.h in BUILDLINK_FILES.libpcap when I submitted this
file: I didn't test it on a non-NetBSD platform at the time :{
>How-To-Repeat:
Try to build on zoularis - for example - a pkg using libpcap with 
`.include "../../net/libpcap/buildlink.mk"' in its Makefile. I'm in
the process of converting to "buildink" the existing pkg that have 
`DEPENDS+= ...../libpcap' and I guess you won't find a pkg using this
buildlink.mk at this time but I'll submit PRs to fix this ;)
>Fix:
The following trivial patch fix the problem:

Index: buildlink.mk
===================================================================
RCS file: /cvsroot/pkgsrc/net/libpcap/buildlink.mk,v
retrieving revision 1.1
diff -u -r1.1 buildlink.mk
--- buildlink.mk	2001/08/17 13:19:01	1.1
+++ buildlink.mk	2001/09/06 11:50:01
@@ -35,6 +35,7 @@
 
 BUILDLINK_FILES.libpcap=	include/pcap.h
 BUILDLINK_FILES.libpcap+=	include/pcap-namedb.h
+BUILDLINK_FILES.libpcap+=	include/net/bpf.h
 BUILDLINK_FILES.libpcap+=	lib/libpcap.*
 
 BUILDLINK_TARGETS.libpcap=	libpcap-buildlink
>Release-Note:
>Audit-Trail:
>Unformatted: