CVE and update status of the FreeBSD ports tree3,295 unaddressed CVEs in 670 portsAll times are CET
Port details

devel/ccache 3.7.12_9

Tool to minimize the compile time of C/C++ programs

Port info

Maintainer
bdrewery@FreeBSD.org
Packages
latest: 3.7.12_9
Upstream
up to date
Last update
to 3.7.12_9 · f4cbd23d2f
Quarterly
2026Q4: 3.7.12_9
WWW
https://ccache.samba.org/
Links
cgit · VuXML

Install

Package
# pkg install ccache
installs 3.7.12_9 from latest; from quarterly (2026Q4) 3.7.12_9
Port
# cd /usr/ports/devel/ccache && make install clean
# make -C /usr/ports/devel/ccache config  # change options first
Size
135 KiB download · 483 KiB installed
Depends on
nothing
License
GPLv3+
Options
3 of 5 on in the package: CLANGLINK DOCS LLVMLINK
Show the 2 options that are off
STATIC TINDERBOX
pkg-message
Shown after installing
NOTE:
Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for
information on using ccache with FreeBSD ports and src.

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 163.7.12_93.7.12_9–
FreeBSD 153.7.12_93.7.12_9–
FreeBSD 143.7.12_93.7.12_93.7.12_9

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 153.7.12_93.7.12_9–
FreeBSD 143.7.12_93.7.12_93.7.12_9

version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.

Unaddressed and VuXML only (0)

No unaddressed CVE and nothing reported by pkg audit for the packaged version 3.7.12_9.

Fixed (0)

No VuXML entries for this package.

Problem reports (2) · open in Bugzilla, most recently changed first

PRSummaryStatusChanged
261705maintainer-feedback? devel/ccache when using zfs the cache size reported by ccache is incorrect; with ufs it is correctOpen2026-09-03
247530maintainer-feedback? devel/ccache: add periodic cleanup scriptOpen2026-05-22

Commits (183)

Bryan Drewery (bdrewery) · 3.3.3_1
Add a patch for memcached to ccache along with a slave devel/ccache-memcached port.

This patch is not safe for WITH_CCACHE_BUILD support yet as that causes all
ports to depend on devel/ccache.  Enabling that patch would then cause the
new devel/libmemcached dependency to require devel/ccache which is a cyclic
dependency.  The autoconf dependency also causes issues.

Add a devel/ccache-memcached slave port that would allow a user to use
the ccache+memcached package manually with ports without WITH_CCACHE_BUILD.

This patch comes from https://github.com/ccache/ccache/pull/58 and has been
an ongoing effort over a few years to be merged into the mainline of ccache.
Documenation for it can be found in the MANUAL file at:

  /usr/local/share/doc/ccache/MANUAL.txt

Sponsored by:	Dell EMC Isilon
b408ef56b8
Dmitry Marakasov (amdmi3) · 3.3.3_1
- Add links for clang40

Approved by:	maintainer implicit
69c706d085
Bryan Drewery (bdrewery) · 3.3.3
- Update to 3.3.3

Changes:	https://ccache.samba.org/releasenotes.html#_ccache_3_3_3
8eb956b971
Bryan Drewery (bdrewery) · 3.2.9
- Update to 3.2.9

Changes:	https://ccache.samba.org/releasenotes.html#_ccache_3_2_9
1f348f0ff5
Bryan Drewery (bdrewery) · 3.2.5_4
- Fix regression from last commit with -Wp

Obtained from:	https://github.com/ccache/ccache/commit/3ba2ca78f9bad5b432b3ebe7095bd8bffbdf8a30
MFH:		2017Q1
62e4999a83
Bryan Drewery (bdrewery) · 3.2.5_3
- Fix building with -Wp,-MT,path.  Namely this fixes building   the emulators/virtualbox-ose port.

PR:		212818
Obtained from:	https://github.com/ccache/ccache/commit/026ba6b9fdbeb3ab57d9eb424025a0a0850baae6
MFH:		2017Q1
db4321b9cf
Dmitry Marakasov (amdmi3) · 3.2.5_2
- Add links for clang39

Approved by:	bdrewery (maintainer, implicit)
70206342c1
Dmitry Marakasov (amdmi3) · 3.2.5_1
- Add links for gcc 7

Approved by:	bdrewery (maintainer, implicit)
108affed02
Dmitry Marakasov (amdmi3) · 3.2.5
- Fix trailing whitespace in pkg-messages

Approved by:	portmgr blanket
e87a8bd319
Bryan Drewery (bdrewery) · 3.2.5
- Update to 3.2.5

Changes: https://ccache.samba.org/releasenotes.html#_ccache_3_2_5
3b32b83f0a
Dmitry Marakasov (amdmi3) · 3.2.4_3
- Add links for clang38

Approved by:	bdrewery (maintainer implicit)
cb53fcbfb0
Bryan Drewery (bdrewery) · 3.2.4_2
- Don't cache -fcolor-diagnostics.   Unlike gmake, which ccache is primarily targetted at, our make does not   give a TTY to stderr.  Thus make -j does not use -fcolor-diagnostics by   default.  If you run with make -j, then run make again ccache will   add in -fcolor-diagnostics and find only cache misses.  Skip processing of   -fcolor-diagnostics (and gcc equivalents) to avoid this problem and f
6dc38ae884
Bryan Drewery (bdrewery) · 3.2.4_1
Regenerate patches
41f2027159
Bryan Drewery (bdrewery) · 3.2.4_1
- Fix defining of strndup(3) prototype due to improperly defined   _POSIX_C_SOURCE and _XOPEN_SOURCE.  strndup(3) came in POSIX.1-2008.
8747fba8d2
Bryan Drewery (bdrewery) · 3.2.4
Update to 3.2.4.

Changes: https://ccache.samba.org/releasenotes.html#_ccache_3_2_4
f9deca0df9
Dmitry Marakasov (amdmi3) · 3.2.3
- Switch to options helpers

Approved by:	portmgr blanket
c44a50c8bc
Antoine Brodin (antoine) · 3.2.3
Remove deprecated @exec/@unexec from ports using ccache-update-links
67ad2d2460
Bryan Drewery (bdrewery) · 3.2.3
Update to 3.2.3.

Changes: http://ccache.samba.org/releasenotes.html#_ccache_3_2_3
26ebbddc1c
Bryan Drewery (bdrewery) · 3.2.2_4
Always default CCACHE_CPP2 to 1, otherwise a build error with parenthesis can occur in buildworld when upgrading from a GCC-built clang or pre-10 system to a system built with clang.
f05cb0091b
Dmitry Marakasov (amdmi3) · 3.2.2_3
- Remove obsolete clang links

Approved by:	bdrewery (maintainer, implicit)
35f0ed54e1
Dmitry Marakasov (amdmi3) · 3.2.2_2
- Add links for clang37

Approved by:	bdrewery (maintainer, implicit)
4e258c28e1
Dmitry Marakasov (amdmi3) · 3.2.2_1
- Drop @dirrm* from plist

Approved by:	portmgr blanket
e0fca3228a
Bryan Drewery (bdrewery) · 3.2.2_1
Enable CLANG/LLVM links by default.

The clang issues have proven to be fixed now with both
upstream fixes and local fixes.
5f42cdd236
Bryan Drewery (bdrewery) · 3.2.2
Update to 3.2.2
e98e9e4583
Dmitry Marakasov (amdmi3) · 3.2.1_3
- Add links for gcc6

Approved by:    bdrewery (maintainer, implicit)
0f166edaeb
Dmitry Marakasov (amdmi3) · 3.2.1_2
- Add link for clang36

PR:		199640
Submitted by:	amdmi3
Approved by:	bdrewery (maintainer)
4272c9ea59
Bryan Drewery (bdrewery) · 3.2.1_1
Fix use with clang. CCACHE_CPP2 is still required. Otherwise the errors with parenthesis occur again.

Seen with www/uwsgi.

Reported by:	blackflow on freenode
11ba86db55
Bryan Drewery (bdrewery) · 3.2.1
Fix sanity
094e5c0bbd
Bryan Drewery (bdrewery) · 3.2.1
- Update to 3.2.1   This fixes some of the clang bugs. CCACHE_CPP2 should no longer be needed. - Remove COLORS option as it is now upstreamed and enabled by default. Requires   DISABLE_MAKE_JOBS to see them (or no -j to make(1)) as bmake has a feature   which disables colors with -j.

Changes: https://ccache.samba.org/releasenotes.html#_ccache_3_2_1
Changes: https://ccache.samba.org/releasenotes.html#_ccache_3_2
6178d37a3c
Emanuel Haupt (ehaupt) · 3.1.10_1
Move MASTER_SITES from CRITICAL to LOCAL/ehaupt
e1cea1eaa9
Dmitry Marakasov (amdmi3) · 3.1.10_1
- Add links for newer compilers: gcc5, clang35 and clang-devel

PR:		195864
Submitted by:	amdmi3
Approved by:	bdrewery (maintainer)
1b2e8a4fc3
Bryan Drewery (bdrewery) · 3.1.10
- Update to 3.1.10
35977ab79a
Bryan Drewery (bdrewery) · 3.1.9_8
Enable colors by default
643bca267f
Bryan Drewery (bdrewery) · 3.1.9_7
- Fix GCC detection

Submitted by:	interfaSys sàrl <info@interfasys.ch>
013bb940b8
Raphael Kubo da Costa (rakuco) · 3.1.9_6
Fix the build after r346759.
f661ea2b97
Bryan Drewery (bdrewery) · 3.1.9_6
- Add COLORS option to enable contributed colors patch that uses colors   when possible

PR:		ports/186851
Submitted by:	Olivier <software-freebsd@interfasys.ch>
Obtained from:	https://groups.google.com/forum/#!topic/ccache/-Zehp1Zs3Lg [*]
[*] Backported to 3.1.9 by me and CC_IS_CLANG and CC_IS_GCC support added.
0bfb8b564b
Bryan Drewery (bdrewery) · 3.1.9_5
- Create CC symlink

PR:             ports/186708
Submitted by:	Dmitry Marakasov <amdmi3@amdmi3.ru>
a86785eac0
Bryan Drewery (bdrewery) · 3.1.9_4
- Add support for clang31,32,33,34 links

PR:		ports/186220
Submitted by:	Dmitry Marakasov <amdmi3@amdmi3.ru>
3d3450e38b
Bryan Drewery (bdrewery) · 3.1.9_3
- Convert to staging - Update howto with a safer example - Update howto with note on using WITH_CCACHE_BUILD for ports - Add TINDERBOX option and fix install/plist for when it is not enabled
fa0cc5afdf
Bryan Drewery (bdrewery) · 3.1.9_2
- Add NO_STAGE until validated to be safe for upcoming staging support
2324655f20
Bryan Drewery (bdrewery) · 3.1.9_2
Convert to new options helpers
cea1dd9ee0
Bryan Drewery (bdrewery) · 3.1.9_2
- Always enable CCACHE_CPP2 on CURRENT after clang became the default.   This fixes building ports with ccache+clang without needing CCACHE_CPP2   set in make.conf. This fix will be removed once upstream ccache has a   working fix for this.   Note that this does not fix the issue if building on non-CURRENT with   CC=clang
a85b8a6f91
Bryan Drewery (bdrewery) · 3.1.9_1
- Fix ccache for CURRENT world builds by automatically defining   CCACHE_CPP2=1 when COMPILER_TYPE=clang (this will be removed   once upstream fixes the issue). This does not address port   builds yet. - Add more hints for building with clang - Split MASTER_SITES into 2 lines - Note that textproc/libexttextcat is an example port that currently   fails to build with clang+ccache due to bug 8118 ('u
5ff3784338
Bryan Drewery (bdrewery) · 3.1.9
- Take maintainership - Remove indefinite article from COMMENT

Approved by:	ehaupt@ (maintainer, via email)
77e65309c8
Emanuel Haupt (ehaupt) · 3.1.9
- Use DOC instead of NOPORTDOCS - Pacify portlint - Convert header
c4c14fd156
Emanuel Haupt (ehaupt) · 3.1.9
Update to 3.1.9

Changelog:	http://ccache.samba.org/releasenotes.html#_ccache_3_1_9
56198f75b0
Emanuel Haupt (ehaupt) · 3.1.8
Restore 'Created by' header information. This has been removed during the first announcement of the new trimming rule and the finalized overworked version.

Feature safe:   yes
00df1d9662
Emanuel Haupt (ehaupt) · 3.1.8
- Use OPTIONSng - Remove deprecated header information
07411ccbfb
Emanuel Haupt (ehaupt) · 3.1.8
Update to 3.1.8
0b52e03aa9
Emanuel Haupt (ehaupt) · 3.1.7_2
Add additional compiler links for tinderbox ccache tarball.

PR:		169981
Submitted by:	swills
e18d61c447