[oe-commits] Andrei Gherzan : package-index: Force NATIVE python to use modules from STAGING_DIR_NATIVE
git at git.openembedded.org
git at git.openembedded.org
Fri Apr 13 15:09:46 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: 230b235329bcaca1a95afd89801d28768aff483b
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=230b235329bcaca1a95afd89801d28768aff483b
Author: Andrei Gherzan <andrei at gherzan.ro>
Date: Wed Apr 11 17:26:16 2012 +0300
package-index: Force NATIVE python to use modules from STAGING_DIR_NATIVE
Export PYTHONHOME to ${STAGING_DIR_NATIVE}/usr. In this way python will search
for modules in native sysroot.
[YOCTO #2134]
Signed-off-by: Andrei Gherzan <andrei at gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-core/meta/package-index.bb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/meta/recipes-core/meta/package-index.bb b/meta/recipes-core/meta/package-index.bb
index bf3922f..96d54e3 100644
--- a/meta/recipes-core/meta/package-index.bb
+++ b/meta/recipes-core/meta/package-index.bb
@@ -21,6 +21,9 @@ do_populate_sysroot[noexec] = "1"
do_package_index[nostamp] = "1"
do_package_index[depends] += "${PACKAGEINDEXDEPS}"
+# Force NATIVE python to use modules from STAGING_DIR_NATIVE
+export PYTHONHOME = "${STAGING_DIR_NATIVE}/usr"
+
do_package_index() {
set -ex
${PACKAGEINDEXES}
More information about the Openembedded-commits
mailing list