diff options
| -rw-r--r-- | meta/recipes-devtools/python/python/host_include_contamination.patch | 27 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python_2.7.2.bb | 3 |
2 files changed, 29 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python/host_include_contamination.patch b/meta/recipes-devtools/python/python/host_include_contamination.patch new file mode 100644 index 0000000000..62cb8b16da --- /dev/null +++ b/meta/recipes-devtools/python/python/host_include_contamination.patch | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | when building python for qemux86-64 on ubuntu 11.10/64bit | ||
| 2 | it gropes into host includes and then mixes them with cross | ||
| 3 | includes and as a result some modules fail to compile and link | ||
| 4 | one of the modules is python-elementtree which is then not | ||
| 5 | found during image creation | ||
| 6 | |||
| 7 | Proble is that setup.py tries to add native includes that newer | ||
| 8 | ubuntu has introduced for multiarch support. But that should | ||
| 9 | only happen for native builds and not cross building python | ||
| 10 | so we add a check here. | ||
| 11 | |||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | Upstream-Status: Pending | ||
| 14 | |||
| 15 | Index: Python-2.7.2/setup.py | ||
| 16 | =================================================================== | ||
| 17 | --- Python-2.7.2.orig/setup.py 2012-02-03 12:10:42.307057756 -0800 | ||
| 18 | +++ Python-2.7.2/setup.py 2012-02-03 12:11:12.363059210 -0800 | ||
| 19 | @@ -360,6 +360,8 @@ | ||
| 20 | # https://wiki.ubuntu.com/MultiarchSpec | ||
| 21 | if not find_executable('dpkg-architecture'): | ||
| 22 | return | ||
| 23 | + if os.environ.get('CROSS_COMPILE') is not None: | ||
| 24 | + return | ||
| 25 | tmpfile = os.path.join(self.build_temp, 'multiarch') | ||
| 26 | if not os.path.exists(self.build_temp): | ||
| 27 | os.makedirs(self.build_temp) | ||
diff --git a/meta/recipes-devtools/python/python_2.7.2.bb b/meta/recipes-devtools/python/python_2.7.2.bb index 654c850759..fb5e860fdb 100644 --- a/meta/recipes-devtools/python/python_2.7.2.bb +++ b/meta/recipes-devtools/python/python_2.7.2.bb | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | require python.inc | 1 | require python.inc |
| 2 | DEPENDS = "python-native db gdbm openssl readline sqlite3 zlib" | 2 | DEPENDS = "python-native db gdbm openssl readline sqlite3 zlib" |
| 3 | DEPENDS_sharprom = "python-native db readline zlib gdbm openssl" | 3 | DEPENDS_sharprom = "python-native db readline zlib gdbm openssl" |
| 4 | PR = "${INC_PR}.5" | 4 | PR = "${INC_PR}.6" |
| 5 | 5 | ||
| 6 | DISTRO_SRC_URI ?= "file://sitecustomize.py" | 6 | DISTRO_SRC_URI ?= "file://sitecustomize.py" |
| 7 | DISTRO_SRC_URI_linuxstdbase = "" | 7 | DISTRO_SRC_URI_linuxstdbase = "" |
| @@ -20,6 +20,7 @@ SRC_URI += "\ | |||
| 20 | file://remove_sqlite_rpath.patch \ | 20 | file://remove_sqlite_rpath.patch \ |
| 21 | file://setup_py_skip_cross_import_check.patch \ | 21 | file://setup_py_skip_cross_import_check.patch \ |
| 22 | file://add-md5module-support.patch \ | 22 | file://add-md5module-support.patch \ |
| 23 | file://host_include_contamination.patch \ | ||
| 23 | " | 24 | " |
| 24 | 25 | ||
| 25 | S = "${WORKDIR}/Python-${PV}" | 26 | S = "${WORKDIR}/Python-${PV}" |
