aboutsummaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRandy Witt <randy.e.witt@linux.intel.com>2015-07-10 14:03:21 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-12 22:53:22 +0100
commit4d4d9e8aa68a185b330ffbdb2e084b31fa6a6451 (patch)
tree3ca74d80711ec744e78c8ce716ed62baf08129ba /meta
parent80e6f0e5782435157b9a2687ffe6cbd3b3033b47 (diff)
downloadopenembedded-core-contrib-4d4d9e8aa68a185b330ffbdb2e084b31fa6a6451.tar.gz
python-smartpm: Have native smart use nativepython
Currently when trying to use smart via devshell or in the bitbake environment, it will fail without inheriting pythonnative. Since the native tools should "just work" use nativepython in the shebang line for smart. Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python-smartpm_git.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python-smartpm_git.bb b/meta/recipes-devtools/python/python-smartpm_git.bb
index ed786e458e..18df892b9b 100644
--- a/meta/recipes-devtools/python/python-smartpm_git.bb
+++ b/meta/recipes-devtools/python/python-smartpm_git.bb
@@ -97,6 +97,7 @@ add_native_wrapper() {
}
do_install_append_class-native() {
+ sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' ${D}${bindir}/smart
add_native_wrapper
}