The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / python3 / 019-fix-add-gcc-paths-logic.patch
1 Override system locale and set to default when adding gcc paths
2
3 Forces the use of the default locale in the function
4 add_gcc_paths, which is called when cross compiling to add the
5 include and library paths. This is necessary because otherwise
6 the gcc output is localized and the output parsing fails, which
7 results in no paths added and detect_modules not able to find
8 any system library (eg. libz, libssl, etc.)
9
10 [Thomas: patch taken from https://bugs.python.org/issue23767.]
11
12 Signed-off-by: Samuel Cabrero <samuelcabrero@gmail.com>
13 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
14
15 Index: b/setup.py
16 ===================================================================
17 --- a/setup.py
18 +++ b/setup.py
19 @@ -423,7 +423,7 @@
20          tmpfile = os.path.join(self.build_temp, 'gccpaths')
21          if not os.path.exists(self.build_temp):
22              os.makedirs(self.build_temp)
23 -        ret = os.system('%s -E -v - </dev/null 2>%s 1>/dev/null' % (gcc, tmpfile))
24 +        ret = os.system('LC_ALL=C %s -E -v - </dev/null 2>%s 1>/dev/null' % (gcc, tmpfile))
25          is_gcc = False
26          in_incdirs = False
27          inc_dirs = []