[PATCH] Make ccache use basenames for repos

Jannis Pohlmann jannis.pohlmann at codethink.co.uk
Thu Jan 3 16:39:19 GMT 2013


maybe I'm missing something but can we not just use the
morph.repository value, quote it like we always do and use
that as the basename like we do in /src/cache/gifts?

  - Jannis

Jannis Pohlmann
Senior Software Engineer and Architect
Codethink Limited

Jonathan Maw <jonathan.maw at codethink.co.uk> wrote:

>head:   0d08f8dbe4e450921ee873cb9e2c037dc0020e06
>branch: jonathanmaw/ccache-local-fix
>repo:   ssh://git@trove.baserock.org/baserock/baserock/morph
>This patch makes morph store its ccaches by the url's basename instead
>of using the whole url. This fixes the problem of morph choking when it
>tries to mount a directory with a colon in its path, and also makes
>all clones of one repository use the same cache (probably). This will
>cause projects with the same name to use the same cache, but that is
>not likely to cause serious problems.
>I have tried to run ./check to see if this breaks anything. It might do.In my baserock image, ./check fills up /tmp which causes every
>successive test to fail. I would like confirmation of whether my
>baserock image is messed-up, or if we have a serious problem.
>Jonathan Maw (1):
>  Make ccache use the same directory for repos that are clones
> morphlib/builder2.py | 14 +++++++++++---
> 1 file changed, 11 insertions(+), 3 deletions(-)
>baserock-dev mailing list
>baserock-dev at baserock.org

More information about the baserock-dev mailing list