Subject: pkg/32719: native libpcap works in darwin>=8 for ethereal
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <jml@ascia.fi>
List: pkgsrc-bugs
Date: 02/03/2006 22:20:01
>Number:         32719
>Category:       pkg
>Synopsis:       native libpcap works in darwin>=8 for ethereal
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 03 22:20:00 +0000 2006
>Originator:     Juha-Matti Liukkonen
>Release:        Mac OS X 10.4.4
>Organization:
Ascia Oy
>Environment:
Darwin rousku.podzone.org 8.4.0 Darwin Kernel Version 8.4.0: Tue Jan  3 18:22:10 PST 2006; root:xnu-792.6.56.obj~1/RELEASE_PPC Power Macintosh powerpc

>Description:
Native libpcap was disabled for Darwin to rev 1.98 of Makefile to "fix build on Darwin by not using it's builtin libpcap". Using native libpcap works now, for 8.3 and 8.4 at least. Suggest including Darwin version check into the exclusion condition.
>How-To-Repeat:

>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/ethereal/Makefile,v
retrieving revision 1.124
diff -u -r1.124 Makefile
--- Makefile    24 Jan 2006 07:32:29 -0000      1.124
+++ Makefile    3 Feb 2006 22:15:40 -0000
@@ -43,7 +43,7 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-.if ${OPSYS} == "Darwin"
+.if ${OPSYS} == "Darwin" && ${OS_VERSION:R} < 8
 USE_BUILTIN.libpcap=   no
 .endif