From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Jan 28 10:10:12 2011 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 CDB25106566C for ; Fri, 28 Jan 2011 10:10:12 +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 AB9008FC12 for ; Fri, 28 Jan 2011 10:10:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0SAACoQ089663 for ; Fri, 28 Jan 2011 10:10:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0SAACYW089657; Fri, 28 Jan 2011 10:10:12 GMT (envelope-from gnats) Resent-Date: Fri, 28 Jan 2011 10:10:12 GMT Resent-Message-Id: <201101281010.p0SAACYW089657@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 706E0106564A for ; Fri, 28 Jan 2011 10:07:24 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 60A0B8FC15 for ; Fri, 28 Jan 2011 10:07:24 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p0SA7O3j020286 for ; Fri, 28 Jan 2011 10:07:24 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p0SA7OEc020285; Fri, 28 Jan 2011 10:07:24 GMT (envelope-from nobody) Message-Id: <201101281007.p0SA7OEc020285@red.freebsd.org> Date: Fri, 28 Jan 2011 10:07:24 GMT From: Mars G Miro To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/154353: [PATCH] make nmap jail builds happy 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: Fri, 28 Jan 2011 10:10:12 -0000 >Number: 154353 >Category: ports >Synopsis: [PATCH] make nmap jail builds happy >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: Fri Jan 28 10:10:12 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Mars G Miro >Release: FreeBSD 8.2-RC2/amd64 >Organization: Organization of Redundant Organizations >Environment: FreeBSD spry.XXX.XXX 8.2-RC2 FreeBSD 8.2-RC2 #0: Tue Jan 18 14:54:28 PHT 2011 root@spry.XXX.XXX:/usr/obj/usr/src/sys/SPRY amd64 >Description: This has to do w/ building nmap on a jail. A jail normally does not have a bpf device, so the configure sets ac_cv_dnet_bsd_bpf=no. If you're like me building stuff in jails and packaging them to another machine, the resulting nmap package is b0rk, e.g. .... Starting Nmap 5.36TEST4 ( http://nmap.org ) at 2011-01-28 17:38 PHT Warning: Unable to open interface em0 -- skipping it. Warning: Unable to open interface em0 -- skipping it. Warning: Unable to open interface em0 -- skipping it. Warning: Unable to open interface em0 -- skipping it. Warning: Unable to open interface em0 -- skipping it. WARNING: Unable to find appropriate interface for system route to X.X.X.X nexthost: failed to determine route to X.X.X.X QUITTING! .. This is much like these PRs: http://www.freebsd.org/cgi/query-pr.cgi?pr=123213 http://www.freebsd.org/cgi/query-pr.cgi?pr=113893 http://www.freebsd.org/cgi/query-pr.cgi?pr=125001 >How-To-Repeat: build nmap in jail, then pkg_create it. pkg_add package on another machine, run nmap >Fix: Patch libdnet-stripped/configure to remove any BPF checks Patch attached with submission follows: --- libdnet-stripped/configure.orig 2010-05-08 05:08:32.000000000 +0800 +++ libdnet-stripped/configure 2011-01-28 17:16:00.000000000 +0800 @@ -14342,11 +14342,7 @@ if test "${ac_cv_dnet_bsd_bpf+set}" = set; then $as_echo_n "(cached) " >&6 else - if test -c /dev/bpf0 ; then - ac_cv_dnet_bsd_bpf=yes - else - ac_cv_dnet_bsd_bpf=no - fi + ac_cv_dnet_bsd_bpf=yes fi { $as_echo "$as_me:$LINENO: result: $ac_cv_dnet_bsd_bpf" >&5 >Release-Note: >Audit-Trail: >Unformatted: