From: Randy Witt Date: Fri, 10 Jul 2015 21:03:21 +0000 (-0700) Subject: python-smartpm: Have native smart use nativepython X-Git-Tag: 2015-10~1257 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=4d4d9e8aa68a185b330ffbdb2e084b31fa6a6451;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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 }