Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | 'scons' cleans the environment which breaks ccache builds because |
| 2 | CCACHEDIR can point to an unexpected location: |
| 3 | |
| 4 | | ccache arm-linux-gnueabi-gcc ... context.c |
| 5 | | ccache: failed to create .../serf/1.3.6-r0/.home/.ccache (No such file or directory) |
| 6 | |
| 7 | Issue is described in |
| 8 | |
| 9 | http://www.scons.org/wiki/ImportingEnvironmentSettings |
| 10 | |
| 11 | and because 'bitbake' cleans environment we can pass it completely |
| 12 | instead of trying to enumerate needed env. |
| 13 | |
| 14 | Upstream-Status: Inappropriate |
| 15 | |
| 16 | |
| 17 | Index: serf-1.3.6/SConstruct |
| 18 | =================================================================== |
| 19 | --- serf-1.3.6.orig/SConstruct |
| 20 | +++ serf-1.3.6/SConstruct |
| 21 | @@ -149,6 +149,7 @@ if sys.platform == 'win32': |
| 22 | env = Environment(variables=opts, |
| 23 | tools=('default', 'textfile',), |
| 24 | CPPPATH=['.', ], |
| 25 | + ENV = os.environ, |
| 26 | ) |
| 27 | |
| 28 | env.Append(BUILDERS = { |