Date: Fri, 28 Jan 2011 10:07:24 GMT From: Mars G Miro <spry@anarchy.in.the.ph> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/154353: [PATCH] make nmap jail builds happy Message-ID: <201101281007.p0SA7OEc020285@red.freebsd.org> Resent-Message-ID: <201101281010.p0SAACYW089657@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101281007.p0SA7OEc020285>