[Buildroot] [PATCH] ccache: make default host-ccache cache dir fit for multi-user setups

Peter Korsgaard peter at korsgaard.com
Sat Jul 8 18:55:50 UTC 2017


>>>>> "Peter" == Peter Korsgaard <peter at korsgaard.com> writes:

 > While building I noticed:
 >>>> host-ccache 3.3.4 Building
 > conf.c: In function 'conf_create':
 > conf.c:314:2: warning: too many arguments for format [-Wformat-extra-args]
 conf-> cache_dir = format("/home/peko/.buildroot-ccache", get_home_directory());
 >   ^

 > As host-ccache gets installed into $(HOST_DIR) and is part of the SDK,
 > hardcoding the build user homedir isn't really nice for the relocatable
 > SDK feature (or simply for a SDK used by multiple users).

 > As the warning shows, CCache replaces "%s" with the current user home
 > directory, so rewrite BR_CACHE_DIR to use this feature if it begins with
 > $HOME.

 > Signed-off-by: Peter Korsgaard <peter at korsgaard.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list