]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
install-deps: save and restore user's XDG_CACHE_HOME 56991/head
authorluo rixin <luorixin@huawei.com>
Tue, 16 Apr 2024 07:18:06 +0000 (15:18 +0800)
committerluo rixin <luorixin@huawei.com>
Fri, 19 Apr 2024 02:47:01 +0000 (02:47 +0000)
commita6fd412b711adce80958b76aa7d76a67fa26e284
treea35de6d00866ac7f98c886e44a64dabd36476b55
parentf8a7c04fda2beaffe0bb909241d8b5b5f77b6bc0
install-deps: save and restore user's XDG_CACHE_HOME

Since ccache 4.0, ccache use $XDG_CACHE_HOME/ccache to keep compile cache
if XDG_CACHE_HOME is set. In this case $XDG_CACHE_HOME is overwrite,
ccache will use $XDG_CACHE_HOME/ccache(ccache will create the dir if not exsit) to
store compile cache, but $XDG_CACHE_HOME will be removed next round running,
leading to ccache contests are always removed. So save and restore user's XDG_CACHE_HOME.

Fixes: https://tracker.ceph.com/issues/65175
Signed-off-by: luo rixin <luorixin@huawei.com>
(cherry picked from commit a17342147d4411211ecf646730987d2633dabb6e)
install-deps.sh