Bug 155008

Summary: [patch] devel/ccache - support other world compilers
Product: Ports & Packages Reporter: Alberto Villa <avilla>
Component: Individual Port(s)Assignee: Emanuel Haupt <ehaupt>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Alberto Villa freebsd_committer freebsd_triage 2011-02-24 17:20:03 UTC
the attached patch allows ccache to use non-default compilers 
(especially clang, as it's the only one which will actually work) to build 
world and kernel

it also updates documentation with the new instructions, and replaces 
libtool15 with libtool

a couple of notes:
- the clang warnings about unused arguments are really harmless. read 
more here: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-
June/009539.html
- i replaced world-* with world/* (this would obviously require a note in 
UPDATING) because of this (/sys/boot/i386/boot2/Makefile and others):
CC:=${CC:C/^(.*\/)?clang$/gcc/1}
world-clang wouldn't be replaced with world-gcc, while ${PREFIX}/libexec/ccache/world/clang is 
successfully changed to gcc. in addition, this allows to have only 
one script (world/ccache), and just create links to it (like world/clang, 
world/llvm-gcc...)

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-02-24 17:20:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ehaupt

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Emanuel Haupt freebsd_committer freebsd_triage 2011-02-28 13:41:50 UTC
State Changed
From-To: open->closed

Committed, thanks!