Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mail.openembedded.org (Postfix) with ESMTP id E926E73710 for ; Fri, 10 Jul 2015 18:16:28 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 10 Jul 2015 11:16:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,448,1432623600"; d="scan'208";a="762094107" Received: from bitbang.jf.intel.com ([10.7.201.51]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2015 11:16:28 -0700 From: Randy Witt To: openembedded-core@lists.openembedded.org Date: Fri, 10 Jul 2015 11:16:19 -0700 Message-Id: <1436552179-25621-1-git-send-email-randy.e.witt@linux.intel.com> X-Mailer: git-send-email 2.4.3 Subject: [PATCH] python-smartpm: Have native smart use nativepython X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jul 2015 18:16:29 -0000 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 --- meta/recipes-devtools/python/python-smartpm_1.4.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/recipes-devtools/python/python-smartpm_1.4.1.bb b/meta/recipes-devtools/python/python-smartpm_1.4.1.bb index 69b94a2..e496ff0 100644 --- a/meta/recipes-devtools/python/python-smartpm_1.4.1.bb +++ b/meta/recipes-devtools/python/python-smartpm_1.4.1.bb @@ -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 } -- 2.4.3