]> code.ossystems Code Review - openembedded-core.git/commit
serf: fix 'ccache' builds
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Thu, 5 Mar 2015 23:03:28 +0000 (00:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 17 Apr 2015 21:38:33 +0000 (22:38 +0100)
commit24c35c63b85621b263e7a211dc39b2257154cd28
tree432c9e48c7c66bcaa136f5f5652aec58f519b81e
parentc4306385f6f2139474a4389a465c1650e10b2444
serf: fix 'ccache' builds

'scons' cleans the environment which breaks ccache builds because
CCACHEDIR can point to an unexpected location:

| ccache arm-linux-gnueabi-gcc ... context.c
| ccache: failed to create .../serf/1.3.8-r0/.home/.ccache (No such file or directory)

Issue is described in

  http://www.scons.org/wiki/ImportingEnvironmentSettings

and because 'bitbake' cleans environment we can pass it completely
instead of trying to enumerate needed env.

With the 'env.patch' the FULLCC variable is not needed anymore (which
would break when CC is 'ccache arm-...-gcc' and host ccache is used)
because the correct $PATH is available during scons build:

| sh: .../sysroots/x86_64-oe-linux/usr/bin/arm-linux-gnueabi/ccache: No such file or directory
| scons: *** [context.o] Error 127

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-support/serf/serf/env.patch [new file with mode: 0644]
meta/recipes-support/serf/serf_1.3.7.bb