From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by mail.openembedded.org (Postfix) with ESMTP id 996176E666 for ; Wed, 9 Mar 2016 01:07:19 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id u2917IiH016185 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK); Tue, 8 Mar 2016 17:07:18 -0800 Received: from [128.224.162.159] (128.224.162.159) by ALA-HCA.corp.ad.wrs.com (147.11.189.40) with Microsoft SMTP Server id 14.3.248.2; Tue, 8 Mar 2016 17:07:17 -0800 To: "Burton, Ross" References: <05c06ed8ffad83ab3bf492ef793f33f2a5d346e3.1456449257.git.hongxu.jia@windriver.com> From: Hongxu Jia Message-ID: <56DF7739.4000103@windriver.com> Date: Wed, 9 Mar 2016 09:07:05 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: Cc: OE-core Subject: Re: [PATCH 13/15] python-pygobject: fix buildpath QA issue 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: Wed, 09 Mar 2016 01:07:21 -0000 Content-Type: multipart/alternative; boundary="------------000300030609040502010205" --------------000300030609040502010205 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit On 03/08/2016 11:24 PM, Burton, Ross wrote: > > On 26 February 2016 at 01:45, Hongxu Jia > wrote: > > +do_install_append_class-target() { > + sed -i -e "s:${PYTHON}:\`which python\`:g" \ > + ${D}${bindir}/pygobject-codegen-2.0 > +} > > > If you're going to expect the shell to find the right python on the > target there's no need to use `which python` as exec will search > $PATH. However, we do know where Python on the target it: > ${bindir}/python. > OK, I directly use '${bindir}/python' to instead. //Hongxu > Ross --------------000300030609040502010205 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit
On 03/08/2016 11:24 PM, Burton, Ross wrote:

On 26 February 2016 at 01:45, Hongxu Jia <hongxu.jia@windriver.com> wrote:
+do_install_append_class-target() {
+       sed -i -e "s:${PYTHON}:\`which python\`:g" \
+           ${D}${bindir}/pygobject-codegen-2.0
+}

If you're going to expect the shell to find the right python on the target there's no need to use `which python` as exec will search $PATH.  However, we do know where Python on the target it: ${bindir}/python.


OK, I directly use '${bindir}/python' to instead.

//Hongxu

Ross

--------------000300030609040502010205--