From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D6C6AE00769; Mon, 16 Feb 2015 09:05:46 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [198.152.71.100 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from de307622-de-outbound.net.avaya.com (de307622-de-outbound.net.avaya.com [198.152.71.100]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id DC7C6E00754 for ; Mon, 16 Feb 2015 09:05:37 -0800 (PST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AskFAM0i4lTGmAcV/2dsb2JhbABcgkMhIoEwwA+IGwKBFkMBAQEBAQF8hAMLAQEDEnkBCwEJFVYmAQQbGogLAadQhH+hMiCPSINOgRQFigyFLJAcjCgig26CM38BAQE X-IronPort-AV: E=Sophos;i="5.09,588,1418101200"; d="scan'208,217";a="91560760" Received: from unknown (HELO co300216-co-erhwest-exch.avaya.com) ([198.152.7.21]) by de307622-de-outbound.net.avaya.com with ESMTP; 16 Feb 2015 12:05:35 -0500 X-OutboundMail_SMTP: 1 Received: from unknown (HELO AZ-FFEXHC03.global.avaya.com) ([135.64.58.13]) by co300216-co-erhwest-out.avaya.com with ESMTP/TLS/AES128-SHA; 16 Feb 2015 12:05:34 -0500 Received: from AZ-FFEXMB01.global.avaya.com ([fe80::39ee:75fe:e67a:cf4a]) by AZ-FFEXHC03.global.avaya.com ([135.64.58.13]) with mapi id 14.03.0174.001; Mon, 16 Feb 2015 12:05:33 -0500 From: "Bipnesh, Abhinav (Abhinav)" To: "yocto@yoctoproject.org" Thread-Topic: Graceful continue if some recipe has error Thread-Index: AdBKCsYf2pTmpt72RK6Iy4QiqLwCcg== Date: Mon, 16 Feb 2015 17:05:32 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [135.64.58.47] MIME-Version: 1.0 Subject: Graceful continue if some recipe has error X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2015 17:05:46 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_F38A866CD026F746A3BF0928A84397BE3A351435AZFFEXMB01globa_" --_000_F38A866CD026F746A3BF0928A84397BE3A351435AZFFEXMB01globa_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, We have written recipe for our application which reads some environment var= iables and follow a path. But if these variables are not set then recipe pa= rsing results into error. So I was looking if we can have some way for a graceful continuation. As we= want if those variables are set then it bitbake should continue with rest = of building. So is there way we can achieve the same. Thanks, Abhinav --_000_F38A866CD026F746A3BF0928A84397BE3A351435AZFFEXMB01globa_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,

We have written recipe for our application which reads some environment var= iables and follow a path. But if these variables are not set then recipe pa= rsing results into error.
So I was looking if we can have some way for a graceful continuation. As we= want if those variables are set then it bitbake should continue with rest = of building.
So is there way we can achieve the same.

Thanks,
Abhinav
--_000_F38A866CD026F746A3BF0928A84397BE3A351435AZFFEXMB01globa_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 19860E0076B; Mon, 16 Feb 2015 09:39:43 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.88 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id C0179E00757 for ; Mon, 16 Feb 2015 09:39:42 -0800 (PST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 16 Feb 2015 09:39:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,589,1418112000"; d="scan'208";a="455358459" Received: from mmettala-mobl.ger.corp.intel.com (HELO peggleto-mobl5.ger.corp.intel.com) ([10.252.7.57]) by FMSMGA003.fm.intel.com with ESMTP; 16 Feb 2015 09:24:42 -0800 From: Paul Eggleton To: "Bipnesh, Abhinav (Abhinav)" Date: Mon, 16 Feb 2015 17:39:39 +0000 Message-ID: <1793194.PUJNIAFybC@peggleto-mobl5.ger.corp.intel.com> Organization: Intel Corporation User-Agent: KMail/4.14.4 (Linux/3.18.5-101.fc20.x86_64; KDE/4.14.4; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Cc: yocto@yoctoproject.org Subject: Re: Graceful continue if some recipe has error X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2015 17:39:43 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Hi Abhinav, On Monday 16 February 2015 17:05:32 Bipnesh, Abhinav wrote: > We have written recipe for our application which reads some environment > variables and follow a path. But if these variables are not set then recipe > parsing results into error. So I was looking if we can have some way for a > graceful continuation. As we want if those variables are set then it > bitbake should continue with rest of building. So is there way we can > achieve the same. Depends, how are you reading the variables? From python or shell? Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B4EB6E0076B; Mon, 16 Feb 2015 09:42:31 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [198.152.13.100 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from co300216-co-outbound.net.avaya.com (co300216-co-outbound.net.avaya.com [198.152.13.100]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5622BE00757 for ; Mon, 16 Feb 2015 09:42:28 -0800 (PST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah0GALUr4lTGmAcV/2dsb2JhbABcgmQigSwEwA+IGwKBF0MBAQEBAQF8hAwBAQEBAxIoPwwEAgEIDQQEAQEBChQJBzIUCQgBAQQOBQgaiAsBrGWhKgEBAQEBAQEBAQEBAQEBAQEBAQEBAReLDIQ8MQcGgxCBFAWPOJAcjCgig25vAYFDfwEBAQ X-IronPort-AV: E=Sophos;i="5.09,589,1418101200"; d="scan'208";a="104262929" Received: from unknown (HELO co300216-co-erhwest-exch.avaya.com) ([198.152.7.21]) by co300216-co-outbound.net.avaya.com with ESMTP; 16 Feb 2015 12:42:04 -0500 X-OutboundMail_SMTP: 1 Received: from unknown (HELO AZ-FFEXHC01.global.avaya.com) ([135.64.58.11]) by co300216-co-erhwest-out.avaya.com with ESMTP/TLS/AES128-SHA; 16 Feb 2015 12:42:04 -0500 Received: from AZ-FFEXMB01.global.avaya.com ([fe80::39ee:75fe:e67a:cf4a]) by AZ-FFEXHC01.global.avaya.com ([135.64.58.11]) with mapi id 14.03.0174.001; Mon, 16 Feb 2015 18:42:02 +0100 From: "Bipnesh, Abhinav (Abhinav)" To: Paul Eggleton Thread-Topic: [yocto] Graceful continue if some recipe has error Thread-Index: AdBKCsYf2pTmpt72RK6Iy4QiqLwCcgALqx6AAApzMIA= Date: Mon, 16 Feb 2015 17:42:02 +0000 Message-ID: References: <1793194.PUJNIAFybC@peggleto-mobl5.ger.corp.intel.com> In-Reply-To: <1793194.PUJNIAFybC@peggleto-mobl5.ger.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [135.64.58.48] MIME-Version: 1.0 Cc: "yocto@yoctoproject.org" Subject: Re: Graceful continue if some recipe has error X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2015 17:42:31 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am using python function as below python __anonymous () { origenv =3D d.getVar("BB_ORIGENV", False) . . . } Thanks, Abhinav -----Original Message----- From: Paul Eggleton [mailto:paul.eggleton@linux.intel.com]=20 Sent: Monday, February 16, 2015 23:10 To: Bipnesh, Abhinav (Abhinav) Cc: yocto@yoctoproject.org Subject: Re: [yocto] Graceful continue if some recipe has error Hi Abhinav, On Monday 16 February 2015 17:05:32 Bipnesh, Abhinav wrote: > We have written recipe for our application which reads some=20 > environment variables and follow a path. But if these variables are=20 > not set then recipe parsing results into error. So I was looking if we=20 > can have some way for a graceful continuation. As we want if those=20 > variables are set then it bitbake should continue with rest of=20 > building. So is there way we can achieve the same. Depends, how are you reading the variables? From python or shell? Cheers, Paul --=20 Paul Eggleton Intel Open Source Technology Centre From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D3258E0076B; Mon, 16 Feb 2015 10:20:39 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.115 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id B1718E00757 for ; Mon, 16 Feb 2015 10:20:35 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 16 Feb 2015 10:13:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,589,1418112000"; d="scan'208";a="678765286" Received: from mmettala-mobl.ger.corp.intel.com (HELO peggleto-mobl5.ger.corp.intel.com) ([10.252.7.57]) by fmsmga002.fm.intel.com with ESMTP; 16 Feb 2015 10:20:32 -0800 From: Paul Eggleton To: "Bipnesh, Abhinav (Abhinav)" Date: Mon, 16 Feb 2015 18:20:32 +0000 Message-ID: <7054167.eXFi0SgPrx@peggleto-mobl5.ger.corp.intel.com> Organization: Intel Corporation User-Agent: KMail/4.14.4 (Linux/3.18.5-101.fc20.x86_64; KDE/4.14.4; x86_64; ; ) In-Reply-To: References: <1793194.PUJNIAFybC@peggleto-mobl5.ger.corp.intel.com> MIME-Version: 1.0 Cc: "yocto@yoctoproject.org" Subject: Re: Graceful continue if some recipe has error X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2015 18:20:39 -0000 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Monday 16 February 2015 17:42:02 Bipnesh, Abhinav wrote: > Paul Eggleton wrote: > > On Monday 16 February 2015 17:05:32 Bipnesh, Abhinav wrote: > > > We have written recipe for our application which reads some > > > environment variables and follow a path. But if these variables are > > > not set then recipe parsing results into error. So I was looking if we > > > can have some way for a graceful continuation. As we want if those > > > variables are set then it bitbake should continue with rest of > > > building. So is there way we can achieve the same. > > > > Depends, how are you reading the variables? From python or shell? > > I am using python function as below > python __anonymous () { > origenv = d.getVar("BB_ORIGENV", False) > . . . > } Presumably then you would do: value = origenv.getVar("BAR", False) if value: # do something if set else: # do something if not set ? Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre