Skip to contentSkip to conversation

python-smartpm: Have native smart use nativepython

PATCH Superseded Randy Witt 2 participants 3 messages Jul 10, 2015

lore
Share & tools
lore

Randy Witt

author
#0 lore raw

PATCH 1/1 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.

---
 meta/recipes-devtools/python/python-smartpm_1.4.1.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python-smartpm_1.4.1.bb +1 -0
index 69b94a2..e496ff0 100644
@@ -110,6 +110,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
 }
 
Signature · 1 line
2.4.3
#1 lore raw
Quoted 5 lines · Randy Witt

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.

smart was recently upgraded to 1.5, can you rebase this please?

Cheers,
Ross

author
#2 lore raw

PATCH v2 1/1 python-smartpm: Have native smart use nativepython

In reply to Randy Witt

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.

---
 meta/recipes-devtools/python/python-smartpm_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python-smartpm_git.bb +1 -0
index ed786e4..18df892 100644
@@ -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
 }
 
Signature · 1 line
2.4.3