https://ccache.samba.org/releasenotes.html#_ccache_3_6
Thanks
"ccache now includes the environment variables LANG, LC_ALL, LC_CTYPE and LC_MESSAGES in the hash since they may affect localization of compiler warning messages. Set sloppiness to locale to opt out of this". Ew that's going to hurt a lot.
(In reply to Bryan Drewery from comment #2) What are the prospects of this port getting updated based on what you wrote above?
(In reply to kunda from comment #3) > (In reply to Bryan Drewery from comment #2) > What are the prospects of this port getting updated based on what you wrote > above? The only real blocker to this PR is time for me to test. It's overall a trivial update. I just need to prioritize it. Thanks for the ping.
soft bump :)
ccache 3.7 has been released https://ccache.dev/releasenotes.html#_ccache_3_7 (Updated ticket summary)
3.7.1 was released https://ccache.dev/releasenotes.html#_ccache_3_7_1
Ugh sorry. Thanks for the reminders. Iām at bsdcan so FreeBSD is on my mind. Will Write a patch tomorrow.
A commit references this bug: Author: bdrewery Date: Sat May 18 21:53:05 UTC 2019 New revision: 501985 URL: https://svnweb.freebsd.org/changeset/ports/501985 Log: Update ccache to 3.7.1 Changes: https://ccache.dev/releasenotes.html#_ccache_3_7_1 ccache-memcached is not updated in this commit. PR: 234971 Changes: head/devel/ccache/Makefile head/devel/ccache/distinfo head/devel/ccache/files/extra-patch-configure.ac
ccache 3.7.3 is available https://ccache.dev/releasenotes.html#_ccache_3_7_3
soft bump
Created attachment 211253 [details] svn diff for ccache 3.7.1->3.7.7 update trivial update to 3.7.7 (works for me during src and ports builds)
Thanks will look this week.
Created attachment 215193 [details] svn diff for ccache 3.7.1->3.7.9 update cache 3.7.9 is here
4.1 has been released. Supposedly fixes some precompiled header quirks, among other things.
Also, the 4.0 branch is implemented in C++ and uses CMake as the build system. Not sure what this will bode for our memcached stuff.
Created attachment 220025 [details] 3.7.12 In the interim, here is an update to 3.7.12, the last in the pure C 3.7 series. All existing patches still work.
Thank you for the 3.7 patch. A review was posted to https://reviews.freebsd.org/D27393 for 4.1. I haven't had a chance to review it yet.
^Triage: 4.3 is now GA, update summary accordingly
See https://reviews.freebsd.org/D27393#701068 I am actively working on getting this to work.
I committed 3.7.12 today for now.
Anyone is welcome to commit devel/ccache4 and explore bootstrapping it for WITH_CCACHE. Just leave devel/ccache* otherwise on 3 so that WITH_CCACHE works. 4 can't work with this feature due to its dependency on cmake.
Created attachment 234077 [details] add ccache 4.6.1 as devel/ccache4 (In reply to Bryan Drewery from comment #22) Here's the patch for ccache 4.6.1 I'm currently using. It contains extra upstream patch that fixes crash during textproc/texlive-base building. I think separate port is better until it gets supported in portmaster and poudriere. Poudriere produces tons of warnings about circular dependencies but works for everything but ccache itself and its dependencies.
Created attachment 240819 [details] Patch to add ccache 4.8 as devel/ccache4 (via git format-patch) (In reply to Oleg Sidorkin from comment #23) 4.8 has been just released with several freebsd-related fixes. Now inodes cache works properly with freebsd. Could it be commited?
(In reply to Oleg Sidorkin from comment #24) You added the use of devel/${CCACHE_DEFAULT}, where is CCACHE_DEFAULT set ? Shouldn't it be set somewhere ?
Created attachment 240831 [details] Patch to add ccache 4.8 as devel/ccache4 (via git format-patch) (In reply to Kurt Jaeger from comment #25) Thanks for looking at this. Sorry, didn't squash all relevant commits into the patch. Here is the complete one: CCACHE_DEFAULT added, CONFLICTS strings of ccache* ports patched. I've tested it on clean ports copy to check that DEFAULT_VERSIONS is working.
(In reply to Oleg Sidorkin from comment #26) Would you mind if I just added ccache4 and use the other patch to the Mk/ files only after some settling time ?
(In reply to Kurt Jaeger from comment #27) Yes, I'm completely OK with it. Thanks
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=61e5c612e7f14178fec95fd56dcbf2b6b9fce5d4 commit 61e5c612e7f14178fec95fd56dcbf2b6b9fce5d4 Author: Oleg Sidorkin <osidorkin@gmail.com> AuthorDate: 2023-03-13 21:04:41 +0000 Commit: Kurt Jaeger <pi@FreeBSD.org> CommitDate: 2023-03-13 21:04:41 +0000 devel/ccache4: new port ccache is a compiler cache. It acts as a caching pre-processor to C/C++ compilers, using the -E compiler switch and a hash to detect when a compilation can be satisfied from cache. This often results in a 5 to 10 times speedup in common compilations. PR: 234971 Approved by: bdrewery Author: Oleg Sidorkin <osidorkin@gmail.com> devel/Makefile | 1 + devel/ccache/Makefile | 2 +- devel/ccache4/Makefile (new) | 101 +++++++++++++++++++++ devel/ccache4/distinfo (new) | 3 + .../ccache4/files/ccache-update-links.sh.in (new) | 72 +++++++++++++++ devel/ccache4/files/ccache_clean.in (new +x) | 71 +++++++++++++++ devel/ccache4/files/pkg-message.in (new) | 10 ++ devel/ccache4/files/world-ccache.in (new) | 9 ++ devel/ccache4/pkg-descr (new) | 4 + devel/ccache4/pkg-plist (new) | 9 ++ 10 files changed, 281 insertions(+), 1 deletion(-)
Created attachment 244932 [details] Patch to Mk to make ccache version configurable (via git am). Allows to select ccache4 as a compiler cache Updated uncommited Mk part (couldn't create a separate ports framework ticket). Some people did find it useful (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252088#c20) Also obsolete old patches.
Note: v4.9 released https://github.com/ccache/ccache/releases/tag/v4.9
(In reply to kunda from comment #31) 4.9.1 actually https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276854