ccache.bbclass: don't remove CCACHE_DIR as part of do_clean
PATCH 1/1 ccache.bbclass: don't remove CCACHE_DIR as part of do_clean
Removing the ccache directory as part of do_clean is unnecessarily conservative and defeats many of the benefits of ccache.
The original justification for this behaviour was to avoid confusion in the corner case that the ccache directory becomes corrupted. However the standard approach for dealing with such highly unlikely corner cases (ie manually removing tmp) would also recover from corruption of the ccache directories, without the negative impact of defeating ccache during normal development.
--- meta/classes/ccache.bbclass | 2 -- 1 file changed, 2 deletions(-)
meta/classes/ccache.bbclass +0 -2
@@ -4,5 +4,3 @@ CCACHE_DISABLE[unexport] = "1" do_configure[dirs] =+ "${CCACHE_DIR}" do_kernel_configme[dirs] =+ "${CCACHE_DIR}" - -do_clean[cleandirs] += "${CCACHE_DIR}"
Signature · 1 line
1.9.1
Quoted 6 lines · Andre McCurdy
Removing the ccache directory as part of
do_cleanis unnecessarily conservative and defeats many of the benefits of ccache.
Quoted 6 lines
The original justification for this behaviour was to avoid confusion in the corner case that the ccache directory becomes corrupted. However the standard approach for dealing with such highly unlikely corner cases (ie manually removing tmp) would also recover from corruption of the ccache directories, without the negative impact of defeating ccache during normal development.
perhaps a good know-how on this if someone runs into this case would justify this patch. Since this can still break the case where someone is doing -cclean* operations and other tasks are run individually for such broken case.
Quoted 24 lines
Signed-off-by Andre McCurdy <[email protected]>---
meta/classes/ccache.bbclass | 2 --1 file changed, 2 deletions(-)meta/classes/ccache.bbclass +0
-0@@ -4,5 +4,3 @@ CCACHE_DISABLE[unexport] = "1"do_configure[dirs] =+ "${CCACHE_DIR}"
do_kernel_configme[dirs] =+ "${CCACHE_DIR}"meta/classes/ccache.bbclass +0
-3- -do_clean[cleandirs] += "${CCACHE_DIR}" --1.9.1
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core