ports/154353: [PATCH] make nmap jail builds happy
Mars G Miro
spry at anarchy.in.the.ph
Fri Jan 28 10:10:12 UTC 2011
>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 at 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:
More information about the freebsd-ports-bugs
mailing list