Bug 193478

Summary: security/nmap Compilation test omits ccache environment
Product: Ports & Packages Reporter: dewayne
Component: Individual Port(s)Assignee: Olli Hauer <ohauer>
Status: Closed FIXED    
Severity: Affects Some People CC: arved
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
Patch to add test for ccache none

Description dewayne 2014-09-09 05:39:48 UTC

    
Comment 1 dewayne 2014-09-09 12:44:23 UTC
Created attachment 147108 [details]
Patch to add test for ccache

The nmap Makefile explicitly tests ${CC} to be either cc or clang, otherwise additional stuff is added to the build.  Unfortunately the test fails where ccache is used as ${CC} is /usr/local/libexec/ccache/cc (derived from cd /usr/ports/security/nmap && make -V CC)

The attached patch fixes this anomaly, which strangely stopped our build on a 10.Stable (FreeBSD 10.1-PRERELEASE #0 r267757M) yesterday, but built packages on a 9.3Stable i386 and amd64.  The ports and distfiles are shared (so they're identical).  Another of life's little mysteries!
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2014-09-11 15:38:31 UTC
over to maintainer
Comment 3 commit-hook freebsd_committer freebsd_triage 2014-09-12 04:39:34 UTC
A commit references this bug:

Author: ohauer
Date: Fri Sep 12 04:38:33 UTC 2014
New revision: 368003
URL: http://svnweb.freebsd.org/changeset/ports/368003

Log:
  - fix build with ccache on FreeBSD 10

  PR:		193478
  Submitted by:	dewayne @ heuristicsystems.com.au

Changes:
  head/security/nmap/Makefile
Comment 4 Olli Hauer freebsd_committer freebsd_triage 2014-09-12 04:41:39 UTC
Committed, thanks for the patch!