forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
'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.6-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.
 
Upstream-Status: Inappropriate
 
 
Index: serf-1.3.6/SConstruct
===================================================================
--- serf-1.3.6.orig/SConstruct
+++ serf-1.3.6/SConstruct
@@ -149,6 +149,7 @@ if sys.platform == 'win32':
 env = Environment(variables=opts,
                   tools=('default', 'textfile',),
                   CPPPATH=['.', ],
+                  ENV = os.environ,
                   )
 
 env.Append(BUILDERS = {