From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Apr 29 12:30:05 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A20E1065689 for ; Tue, 29 Apr 2008 12:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1538F8FC1D for ; Tue, 29 Apr 2008 12:30:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3TCU4Td097898 for ; Tue, 29 Apr 2008 12:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3TCU4KM097895; Tue, 29 Apr 2008 12:30:04 GMT (envelope-from gnats) Resent-Date: Tue, 29 Apr 2008 12:30:04 GMT Resent-Message-Id: <200804291230.m3TCU4KM097895@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mars G Miro Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8DA5E1065673 for ; Tue, 29 Apr 2008 12:26:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 7A9F38FC0C for ; Tue, 29 Apr 2008 12:26:05 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m3TCPSKY018295 for ; Tue, 29 Apr 2008 12:25:28 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m3TCPSQU018293; Tue, 29 Apr 2008 12:25:28 GMT (envelope-from nobody) Message-Id: <200804291225.m3TCPSQU018293@www.freebsd.org> Date: Tue, 29 Apr 2008 12:25:28 GMT From: Mars G Miro To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/123213: patch net/libnet's configure to not do anymore checks of bpf device X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2008 12:30:05 -0000 >Number: 123213 >Category: ports >Synopsis: patch net/libnet's configure to not do anymore checks of bpf device >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Apr 29 12:30:04 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Mars G Miro >Release: FreeBSD 7.0R/amd64 >Organization: Organization of Redundant Organizations >Environment: >Description: when building net/libnet, bpf has been there since FreeBSD 3.X, so do not do anymore checks. this is useful when building in jails as they don't have bpf. this is somewhat like #113893 >How-To-Repeat: build net/libnet in jail, then build arping. create pkg for arping. install arping pkg on a different machine. run arping, you'll get 'libnet_get_hwaddr' errors. >Fix: remove any bpf device checks on configure Patch attached with submission follows: --- configure.orig 2004-03-02 04:02:37.000000000 +0800 +++ configure 2008-04-29 11:48:34.000000000 +0800 @@ -3852,38 +3852,10 @@ echo "$as_me:$LINENO: checking link-layer packet interface type" >&5 echo $ECHO_N "checking link-layer packet interface type... $ECHO_C" >&6 -if test -r /dev/bpf0 ; then - LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext" - echo "$as_me:$LINENO: result: found bpf" >&5 +#if test -r /dev/bpf0 ; then +LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext" +echo "$as_me:$LINENO: result: bpf has been here evar since da world began ..." >&5 echo "${ECHO_T}found bpf" >&6 -elif test -r /usr/include/net/pfilt.h ; then - LIBOBJS="$LIBOBJS libnet_link_pf.$ac_objext" - echo "$as_me:$LINENO: result: found pf" >&5 -echo "${ECHO_T}found pf" >&6 -elif test -r /dev/nit ; then - LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext" - echo "$as_me:$LINENO: result: found snit" >&5 -echo "${ECHO_T}found snit" >&6 -elif test -r /usr/include/sys/net/nit.h ; then - LIBOBJS="$LIBOBJS libnet_link_nit.$ac_objext" - echo "$as_me:$LINENO: result: found nit" >&5 -echo "${ECHO_T}found nit" >&6 -elif test -r /usr/include/net/raw.h ; then - LIBOBJS="$LIBOBJS libnet_link_snoop.$ac_objext" - echo "$as_me:$LINENO: result: found snoop" >&5 -echo "${ECHO_T}found snoop" >&6 -elif test -r /usr/include/sys/dlpi.h ; then - LIBOBJS="$LIBOBJS libnet_link_dlpi.$ac_objext" - echo "$as_me:$LINENO: result: found dlpi" >&5 -echo "${ECHO_T}found dlpi" >&6 - cat >>confdefs.h <<\_ACEOF -#define HAVE_DLPI 1 -_ACEOF - -elif test -r /usr/include/linux/socket.h ; then - LIBOBJS="$LIBOBJS libnet_link_linux.$ac_objext" - echo "$as_me:$LINENO: result: found linux primitives" >&5 -echo "${ECHO_T}found linux primitives" >&6 echo "$as_me:$LINENO: checking for packet socket (PF_SOCKET)" >&5 echo $ECHO_N "checking for packet socket (PF_SOCKET)... $ECHO_C" >&6 @@ -3987,32 +3959,6 @@ echo "$as_me:$LINENO: result: $ac_cv_libnet_linux_procfs" >&5 echo "${ECHO_T}$ac_cv_libnet_linux_procfs" >&6 - if test $ac_cv_libnet_linux_procfs = yes ; then - -cat >>confdefs.h <<\_ACEOF -#define HAVE_LINUX_PROCFS 1 -_ACEOF - - fi -elif test -c /dev/bpf0 ; then # check again in case not readable - LIBOBJS="$LIBOBJS libnet_link_bpf.$ac_objext" - echo "$as_me:$LINENO: result: found bpf" >&5 -echo "${ECHO_T}found bpf" >&6 -elif test -c /dev/nit ; then # check again in case not readable - LIBOBJS="$LIBOBJS libnet_link_snit.$ac_objext" - echo "$as_me:$LINENO: result: found snit" >&5 -echo "${ECHO_T}found snit" >&6 -elif test "$target_os" = "cygwin" ; then - LIBOBJS="$LIBOBJS libnet_link_win32.$ac_objext" - echo "$as_me:$LINENO: result: found win32 wpcap" >&5 -echo "${ECHO_T}found win32 wpcap" >&6 -else - LIBOBJS="$LIBOBJS libnet_link_none.$ac_objext" - { echo "$as_me:$LINENO: WARNING: could not find a link-layer packet interface" >&5 -echo "$as_me: WARNING: could not find a link-layer packet interface" >&2;} - { echo "$as_me:$LINENO: WARNING: link-layer packet injection will not be available" >&5 -echo "$as_me: WARNING: link-layer packet injection will not be available" >&2;} -fi echo -n "scanning available packet construction modules: " for dir in src/*build*c ; do >Release-Note: >Audit-Trail: >Unformatted: