NetBSD Problem Report #13920

Received: (qmail 14538 invoked from network); 10 Sep 2001 16:49:33 -0000
Message-Id: <200109101649.f8AGnP616741@bandsept.script.jussieu.fr>
Date: Mon, 10 Sep 2001 18:49:25 +0200 (CEST)
From: Stoned Elipot <Stoned.Elipot@script.jussieu.fr>
Reply-To: Stoned.Elipot@script.jussieu.fr
To: gnats-bugs@gnats.netbsd.org
Cc: seb@pbox.org
Subject: buildlinking net/nmap
X-Send-Pr-Version: 3.95

>Number:         13920
>Category:       pkg
>Synopsis:       use net/libpcap/buildlink.mk in net/nmap/Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 10 16:50:01 +0000 2001
>Closed-Date:    Mon Sep 10 17:05:05 +0000 2001
>Last-Modified:  Mon Sep 10 17:05:05 +0000 2001
>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

>Description:
Using net/libpcap/buildlink.mk is IMHO better than 
'.if ${OPSYS} ... DEPENDS+=... .endif'

>How-To-Repeat:
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/nmap/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile	2001/08/24 11:23:16	1.15
+++ Makefile	2001/09/10 16:44:32
@@ -12,15 +12,13 @@

 GNU_CONFIGURE=	YES
 CONFIGURE_ENV+=	INSTALL=${INSTALL}
+CONFIGURE_ARGS+=--with-libpcap=${BUILDLINK_DIR}

 .include "../../mk/bsd.prefs.mk"

 .if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
 MAKE_ENV+=	CPPFLAGS=""
-DEPENDS+=	libpcap>=0.4:../../net/libpcap
-CONFIGURE_ARGS+=--with-libpcap=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=--with-libpcap
 .endif

+.include "../../net/libpcap/buildlink.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Mon Sep 10 10:04:48 PDT 2001 
State-Changed-Why:  
Applied the patch -- thanks again. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.