Bug 155008 - [patch] devel/ccache - support other world compilers
Summary: [patch] devel/ccache - support other world compilers
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: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-24 17:20 UTC by Alberto Villa
Modified: 2011-02-28 13:41 UTC (History)
0 users

See Also:


Attachments
file.diff (5.05 KB, patch)
2011-02-24 17:20 UTC, Alberto Villa
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!