From: Yue Tao Date: Thu, 28 Nov 2013 08:34:48 +0000 (+0800) Subject: python: do not replace ccache in the middle of a path X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~35258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1181112cf65bc;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git python: do not replace ccache in the middle of a path Python recipe did a sed s/ccache/$(CCACHE) on the Makefile, which replaces all "ccache" including ones that consist of a full path. This leads to build error when building in a project path with "ccache" in its name. Fix it by only replacing "ccache " with "$(CCACHE) ". Signed-off-by: Lei Liu Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/python/python_2.7.3.bb b/meta/recipes-devtools/python/python_2.7.3.bb index 887e02e1c32..b560b827545 100644 --- a/meta/recipes-devtools/python/python_2.7.3.bb +++ b/meta/recipes-devtools/python/python_2.7.3.bb @@ -61,7 +61,7 @@ do_compile() { cd - # remove hardcoded ccache, see http://bugs.openembedded.net/show_bug.cgi?id=4144 - sed -i -e s,ccache,'$(CCACHE)', Makefile + sed -i -e s,ccache\ ,'$(CCACHE) ', Makefile # remove any bogus LD_LIBRARY_PATH sed -i -e s,RUNSHARED=.*,RUNSHARED=, Makefile