[oe-commits] Randy Witt : python-smartpm: Have native smart use nativepython
git at git.openembedded.org
git at git.openembedded.org
Sun Jul 12 21:51:10 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 42aca0a05d000182d3f13b01dace3758c7b773e3
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=42aca0a05d000182d3f13b01dace3758c7b773e3
Author: Randy Witt <randy.e.witt at linux.intel.com>
Date: Fri Jul 10 14:03:21 2015 -0700
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 at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-devtools/python/python-smartpm_git.bb | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-devtools/python/python-smartpm_git.bb b/meta/recipes-devtools/python/python-smartpm_git.bb
index ed786e4..18df892 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
}
More information about the Openembedded-commits
mailing list