python: add patch to fix logic to get gcc paths
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 29 May 2015 20:52:23 +0000 (22:52 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 31 May 2015 19:44:55 +0000 (21:44 +0200)
commit238bf198cf4f31a3301b81a924d5e22044945955
treec39b14a26057f36de8177f1a866b44970be9d5da
parent62d925ee68fd3aa3fece9af11f19cf61fb6b5140
python: add patch to fix logic to get gcc paths

The Python setup.py has a function called add_gcc_paths(), which
executes gcc -E -v to get the list of header paths searched by
gcc. However, the logic of setup.py is only valid with the normal
english output of gcc: it doesn't work if a non-english locale is
set. This causes setup.py to not find certain headers (such as zlib.h)
and therefore disabling the build of such extensions.

Reported-by: Bruno Coudoin <bruno.coudoin@gcompris.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/python/018-fix-add-gcc-paths-logic.patch [new file with mode: 0644]