diff options
Diffstat (limited to 'meta/recipes-devtools/python/python/use_sysroot_ncurses_instead_of_host.patch')
-rw-r--r-- | meta/recipes-devtools/python/python/use_sysroot_ncurses_instead_of_host.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python/use_sysroot_ncurses_instead_of_host.patch b/meta/recipes-devtools/python/python/use_sysroot_ncurses_instead_of_host.patch new file mode 100644 index 0000000000..2c657861c8 --- /dev/null +++ b/meta/recipes-devtools/python/python/use_sysroot_ncurses_instead_of_host.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | Python tries to use ncursesw from the host, | ||
2 | if it is not found causes an error on configure, | ||
3 | we should use ncursesw from sysroot instead | ||
4 | |||
5 | |||
6 | Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | ||
7 | |||
8 | Index: Python-2.7.9/configure.ac | ||
9 | =================================================================== | ||
10 | --- Python-2.7.9.orig/configure.ac | ||
11 | +++ Python-2.7.9/configure.ac | ||
12 | @@ -4311,7 +4311,7 @@ fi | ||
13 | |||
14 | # first curses configure check | ||
15 | ac_save_cppflags="$CPPFLAGS" | ||
16 | -CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" | ||
17 | +CPPFLAGS="$CPPFLAGS -I=/usr/include/ncursesw" | ||
18 | |||
19 | AC_CHECK_HEADERS(curses.h ncurses.h) | ||
20 | |||