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 Isilonb408ef56b8
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 ccacheinstalls 3.7.12_9 fromlatest; fromquarterly(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 version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 3.7.12_9 | 3.7.12_9 | – |
| FreeBSD 15 | 3.7.12_9 | 3.7.12_9 | – |
| FreeBSD 14 | 3.7.12_9 | 3.7.12_9 | 3.7.12_9 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 3.7.12_9 | 3.7.12_9 | – |
| FreeBSD 14 | 3.7.12_9 | 3.7.12_9 | 3.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
| PR | Summary | Status | Changed |
|---|---|---|---|
| 261705 | maintainer-feedback? devel/ccache when using zfs the cache size reported by ccache is incorrect; with ufs it is correct | Open | 2026-09-03 |
| 247530 | maintainer-feedback? devel/ccache: add periodic cleanup script | Open | 2026-05-22 |
Commits (183)
- Add links for clang40 Approved by: maintainer implicit69c706d085
- Update to 3.3.3 Changes: https://ccache.samba.org/releasenotes.html#_ccache_3_3_38eb956b971
- Update to 3.2.9 Changes: https://ccache.samba.org/releasenotes.html#_ccache_3_2_91f348f0ff5
- Fix regression from last commit with -Wp Obtained from: https://github.com/ccache/ccache/commit/3ba2ca78f9bad5b432b3ebe7095bd8bffbdf8a30 MFH: 2017Q162e4999a83
- 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: 2017Q1db4321b9cf
- Add links for clang39 Approved by: bdrewery (maintainer, implicit)70206342c1
- Add links for gcc 7 Approved by: bdrewery (maintainer, implicit)108affed02
- Fix trailing whitespace in pkg-messages Approved by: portmgr blankete87a8bd319
- Update to 3.2.5 Changes: https://ccache.samba.org/releasenotes.html#_ccache_3_2_53b32b83f0a
- Add links for clang38 Approved by: bdrewery (maintainer implicit)cb53fcbfb0
- 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 f6dc38ae884
Regenerate patches41f2027159
- Fix defining of strndup(3) prototype due to improperly defined _POSIX_C_SOURCE and _XOPEN_SOURCE. strndup(3) came in POSIX.1-2008.8747fba8d2
Update to 3.2.4. Changes: https://ccache.samba.org/releasenotes.html#_ccache_3_2_4f9deca0df9
- Switch to options helpers Approved by: portmgr blanketc44a50c8bc
Remove deprecated @exec/@unexec from ports using ccache-update-links67ad2d2460
Update to 3.2.3. Changes: http://ccache.samba.org/releasenotes.html#_ccache_3_2_326ebbddc1c
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
- Remove obsolete clang links Approved by: bdrewery (maintainer, implicit)35f0ed54e1
- Add links for clang37 Approved by: bdrewery (maintainer, implicit)4e258c28e1
- Drop @dirrm* from plist Approved by: portmgr blankete0fca3228a
Enable CLANG/LLVM links by default. The clang issues have proven to be fixed now with both upstream fixes and local fixes.5f42cdd236
Update to 3.2.2e98e9e4583
- Add links for gcc6 Approved by: bdrewery (maintainer, implicit)0f166edaeb
- Add link for clang36 PR: 199640 Submitted by: amdmi3 Approved by: bdrewery (maintainer)4272c9ea59
Fix use with clang. CCACHE_CPP2 is still required. Otherwise the errors with parenthesis occur again. Seen with www/uwsgi. Reported by: blackflow on freenode11ba86db55
Fix sanity094e5c0bbd
- 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_26178d37a3c
Move MASTER_SITES from CRITICAL to LOCAL/ehaupte1cea1eaa9
- Add links for newer compilers: gcc5, clang35 and clang-devel PR: 195864 Submitted by: amdmi3 Approved by: bdrewery (maintainer)1b2e8a4fc3
- Update to 3.1.1035977ab79a
Enable colors by default643bca267f
- Fix GCC detection Submitted by: interfaSys sàrl <info@interfasys.ch>013bb940b8
Fix the build after r346759.f661ea2b97
- 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
- Create CC symlink PR: ports/186708 Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru>a86785eac0
- Add support for clang31,32,33,34 links PR: ports/186220 Submitted by: Dmitry Marakasov <amdmi3@amdmi3.ru>3d3450e38b
- 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 enabledfa0cc5afdf
- Add NO_STAGE until validated to be safe for upcoming staging support2324655f20
Convert to new options helperscea1dd9ee0
- 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=clanga85b8a6f91
- 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 ('u5ff3784338- Take maintainership - Remove indefinite article from COMMENT Approved by: ehaupt@ (maintainer, via email)77e65309c8
- Use DOC instead of NOPORTDOCS - Pacify portlint - Convert headerc4c14fd156
Update to 3.1.9 Changelog: http://ccache.samba.org/releasenotes.html#_ccache_3_1_956198f75b0
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: yes00df1d9662
- Use OPTIONSng - Remove deprecated header information07411ccbfb
Update to 3.1.80b52e03aa9
Add additional compiler links for tinderbox ccache tarball. PR: 169981 Submitted by: swillse18d61c447