Hi,

so after four and a half years, the same issue still exists - when
building a package that uses CMake, I got a cache hit rate of zero.
After some investigation (I wasn't aware of this bug report), it
turned out that the issue was caused by the differing build paths, as
described in this bug report.

Could you at least add some advice to the wiki page [0] that points
out the existence of this issue, and ideally a proposed solution? I
mean, I'm no expert with sbuild, so my solution consisted of something
like

  export CCACHE_BASEDIR = $(shell pwd)

in debian/rules; which is fine, it works, but it is obviously quite
inelegant and untrue to the spirit of a cache (which is supposed to be
hidden in the background, "caché", so to speak).

Is there a better solution, perhaps something I can put into
$dir/sbuild-setup, to use the wiki page's terminology?

Thanks,
Fabian

[0] https://wiki.debian.org/sbuild#Using_.22ccache.22_with_sbuild

Reply via email to