From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-we0-f175.google.com ([74.125.82.175]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1S4SuE-0000VA-Nd for bitbake-devel@lists.openembedded.org; Mon, 05 Mar 2012 09:04:30 +0100 Received: by wera1 with SMTP id a1so2253679wer.6 for ; Sun, 04 Mar 2012 23:55:56 -0800 (PST) Received: by 10.180.100.196 with SMTP id fa4mr12249416wib.0.1330934156705; Sun, 04 Mar 2012 23:55:56 -0800 (PST) Received: from fensuse.internal.dresearch-fe.de (pd95cb174.dip0.t-ipconnect.de. [217.92.177.116]) by mx.google.com with ESMTPS id df3sm19194044wib.1.2012.03.04.23.55.55 (version=SSLv3 cipher=OTHER); Sun, 04 Mar 2012 23:55:56 -0800 (PST) Message-ID: <4F54718B.3090900@dresearch-fe.de> Date: Mon, 05 Mar 2012 08:55:55 +0100 From: Steffen Sledz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: openembedded-devel References: <4F4F7D9C.8070300@dresearch-fe.de> In-Reply-To: <4F4F7D9C.8070300@dresearch-fe.de> X-Enigmail-Version: 1.3.5 X-Gm-Message-State: ALoCoQlu4iC4n8pKWYNhofH1eZZprrGBM+rxEr9H4we8GtaK7qlklNobd1pGZjiaFdzHkg0oWI20 X-Mailman-Approved-At: Mon, 05 Mar 2012 19:30:14 +0100 Cc: bitbake-devel@lists.openembedded.org, Richard Purdie Subject: Re: bitbake dependency cache problem X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 08:04:30 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 01.03.2012 14:46, Steffen Sledz wrote: > I'm working with oe-classic and BitBake Build Tool Core version 1.12.0, bitbake version 1.12.0. > > Because of some special development requirements we like to generate the Package Version from the SVN Revision (not the Last Changed Rev!) of the bitbake recipe in the local workspace. > > Therefor the recipe contains this: > > ---------------->snip<----------------- > PR = "r8" > PV = "svnr${@svn_revision(d)}" > > inherit svn-helper > ---------------->snip<----------------- > > The svn-helper.bbclass contains a little helper function to determine the needed value: > > ---------------->snip<----------------- > def svn_revision(d): > import subprocess > bbpath = os.path.dirname(bb.data.getVar('FILE',d,1)) > return subprocess.check_output(["svn", "info", bbpath]).partition("Revision: ")[2].splitlines()[0] > ---------------->snip<----------------- > > After this changes i make a first build and everything works fine. Assuming the SVN Revsion is 42 a package called foo-svnr42-r8.ipk is generated. > > Now i make an "svn update" inside the workspace and the SVN Revision increases to 66. > > A call of "bitbake foo" now results in an "Tasks Summary: Attempted 1182 tasks of which 1182 didn't need to be rerun and 0 failed." an no new ipg is generated. :( > > The log generated by "bitbake -DDDDDvvvvv foo" contains > > ---------------->snip<----------------- > DEBUG: providers for foo are: ['foo'] > NOTE: checking PREFERRED_PROVIDER_foo > NOTE: checking PREFERRED_PROVIDER_foo-svnr42 > NOTE: checking PREFERRED_PROVIDER_foo-svnr42-r8 > ---------------->snip<----------------- > > Why does bitbake not respects the new PV and generates a foo-svnr66-r8.ipk here??? Ping! Can anyone of the bitbake gurus lease give a feedback here? Thx, Steffen -- DResearch Fahrzeugelektronik GmbH Otto-Schmirgal-Str. 3, 10319 Berlin, Germany Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de Fax: +49 30 515932-299 Geschäftsführer: Dr. Michael Weber, Werner Mögle; Amtsgericht Berlin Charlottenburg; HRB 130120 B; Ust.-IDNr. DE273952058 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-we0-f175.google.com ([74.125.82.175]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1S4SuE-0000VB-Nq for openembedded-devel@lists.openembedded.org; Mon, 05 Mar 2012 09:04:30 +0100 Received: by wera1 with SMTP id a1so2253680wer.6 for ; Sun, 04 Mar 2012 23:55:56 -0800 (PST) Received: by 10.180.100.196 with SMTP id fa4mr12249416wib.0.1330934156705; Sun, 04 Mar 2012 23:55:56 -0800 (PST) Received: from fensuse.internal.dresearch-fe.de (pd95cb174.dip0.t-ipconnect.de. [217.92.177.116]) by mx.google.com with ESMTPS id df3sm19194044wib.1.2012.03.04.23.55.55 (version=SSLv3 cipher=OTHER); Sun, 04 Mar 2012 23:55:56 -0800 (PST) Message-ID: <4F54718B.3090900@dresearch-fe.de> Date: Mon, 05 Mar 2012 08:55:55 +0100 From: Steffen Sledz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120129 Thunderbird/10.0 MIME-Version: 1.0 To: openembedded-devel References: <4F4F7D9C.8070300@dresearch-fe.de> In-Reply-To: <4F4F7D9C.8070300@dresearch-fe.de> X-Enigmail-Version: 1.3.5 X-Gm-Message-State: ALoCoQlQQsXtq9IazwBqHcaldq1/N/6PKQdOUCAWfz3MIXuZGSYMbpk7kxoT/q6DzIIJfk158MD6 Cc: bitbake-devel@lists.openembedded.org Subject: Re: bitbake dependency cache problem X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 08:04:30 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 01.03.2012 14:46, Steffen Sledz wrote: > I'm working with oe-classic and BitBake Build Tool Core version 1.12.0, bitbake version 1.12.0. > > Because of some special development requirements we like to generate the Package Version from the SVN Revision (not the Last Changed Rev!) of the bitbake recipe in the local workspace. > > Therefor the recipe contains this: > > ---------------->snip<----------------- > PR = "r8" > PV = "svnr${@svn_revision(d)}" > > inherit svn-helper > ---------------->snip<----------------- > > The svn-helper.bbclass contains a little helper function to determine the needed value: > > ---------------->snip<----------------- > def svn_revision(d): > import subprocess > bbpath = os.path.dirname(bb.data.getVar('FILE',d,1)) > return subprocess.check_output(["svn", "info", bbpath]).partition("Revision: ")[2].splitlines()[0] > ---------------->snip<----------------- > > After this changes i make a first build and everything works fine. Assuming the SVN Revsion is 42 a package called foo-svnr42-r8.ipk is generated. > > Now i make an "svn update" inside the workspace and the SVN Revision increases to 66. > > A call of "bitbake foo" now results in an "Tasks Summary: Attempted 1182 tasks of which 1182 didn't need to be rerun and 0 failed." an no new ipg is generated. :( > > The log generated by "bitbake -DDDDDvvvvv foo" contains > > ---------------->snip<----------------- > DEBUG: providers for foo are: ['foo'] > NOTE: checking PREFERRED_PROVIDER_foo > NOTE: checking PREFERRED_PROVIDER_foo-svnr42 > NOTE: checking PREFERRED_PROVIDER_foo-svnr42-r8 > ---------------->snip<----------------- > > Why does bitbake not respects the new PV and generates a foo-svnr66-r8.ipk here??? Ping! Can anyone of the bitbake gurus lease give a feedback here? Thx, Steffen -- DResearch Fahrzeugelektronik GmbH Otto-Schmirgal-Str. 3, 10319 Berlin, Germany Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de Fax: +49 30 515932-299 Geschäftsführer: Dr. Michael Weber, Werner Mögle; Amtsgericht Berlin Charlottenburg; HRB 130120 B; Ust.-IDNr. DE273952058