[Bug 261705] devel/ccache cache size reported by ccache is incorrect

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 04 Feb 2022 00:09:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261705

            Bug ID: 261705
           Summary: devel/ccache cache size reported by ccache is
                    incorrect
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bdrewery@FreeBSD.org
          Reporter: brian@brianwhalen.net
          Assignee: bdrewery@FreeBSD.org
             Flags: maintainer-feedback?(bdrewery@FreeBSD.org)

I am running the stable version of Freebsd 13. For a while now, when using the
ccache port, the cache size is incorrect.

FreeBSD fbsdnvme 13.0-STABLE FreeBSD 13.0-STABLE #3
stable/13-n249224-f6e755d1b26: Thu Feb  3 11:28:42 PST 2022    
root@fbsdnvme:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64

brian@fbsdnvme:~ $ pkg info | grep ccache
ccache-3.7.12_2                Tool to minimize the compile time of C/C++
programs

root@fbsdnvme:~ # du -h -d1 .ccache/ && ccache -s
118M    .ccache/e
140M    .ccache/5
126M    .ccache/8
133M    .ccache/2
127M    .ccache/b
126M    .ccache/f
128M    .ccache/6
122M    .ccache/1
132M    .ccache/a
133M    .ccache/c
128M    .ccache/3
118M    .ccache/9
135M    .ccache/4
118M    .ccache/d
512B    .ccache/tmp
118M    .ccache/0
130M    .ccache/7
2.0G    .ccache/
cache directory                     /root/.ccache
primary config                      /root/.ccache/ccache.conf
secondary config      (readonly)    /usr/local/etc/ccache.conf
stats updated                       Thu Feb  3 16:05:01 2022
stats zeroed                        Thu Feb  3 15:55:19 2022
cache hit (direct)                 11976
cache hit (preprocessed)              30
cache miss                             0
cache hit rate                    100.00 %
cleanups performed                     0
files in cache                    138624
cache size                         438.3 kB
max cache size                       5.0 GB

438KB is nowhere near 2.0GB

-- 
You are receiving this mail because:
You are the assignee for the bug.