Bug 154353 - [PATCH] make security/nmap jail builds happy
Summary: [PATCH] make security/nmap jail builds happy
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Olli Hauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 10:10 UTC by spry
Modified: 2011-01-30 17:20 UTC (History)
0 users

See Also:


Attachments
file.diff (452 bytes, patch)
2011-01-28 10:10 UTC, spry
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description spry 2011-01-28 10:10:12 UTC
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

Fix: Patch libdnet-stripped/configure to remove any BPF checks

Patch attached with submission follows:
How-To-Repeat: build nmap in jail, then pkg_create it. pkg_add package on another machine, run nmap
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-01-28 22:33:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ohauer

Fix synopsis and assign.
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-01-30 17:15:14 UTC
ohauer      2011-01-30 17:15:07 UTC

  FreeBSD ports repository

  Modified files:
    security/nmap        Makefile distinfo 
  Added files:
    security/nmap/files  patch-libdnet-stripped__configure 
  Log:
  - update to version 5.50
  - always enable bpf in libdnet-stripped to support build in Jail [1]
  
  Announcement and Changelog are very long and covered by last updates.
  
  Announcement: http://seclists.org/nmap-hackers/2011/0
  Changelog: http://nmap.org/changelog.html
  
  PR:             ports/154353 [1]
  Submitted by:   Mars G Miro <spry _at_ anarchy.in.the.ph> [1]
  Feature safe:   yes
  
  Revision  Changes    Path
  1.125     +1 -1      ports/security/nmap/Makefile
  1.79      +2 -2      ports/security/nmap/distinfo
  1.1       +16 -0     ports/security/nmap/files/patch-libdnet-stripped__configure (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Olli Hauer freebsd_committer freebsd_triage 2011-01-30 17:18:58 UTC
State Changed
From-To: open->closed

Committed with the update to nmap-5.50 
Tahnks!