From: Steffen Sledz <sledz@dresearch-fe.de>
To: openembedded-devel <openembedded-devel@lists.openembedded.org>
Cc: bitbake-devel@lists.openembedded.org, Richard Purdie <rpurdie@rpsys.net>
Subject: Re: bitbake dependency cache problem
Date: Mon, 05 Mar 2012 08:55:55 +0100 [thread overview]
Message-ID: <4F54718B.3090900@dresearch-fe.de> (raw)
In-Reply-To: <4F4F7D9C.8070300@dresearch-fe.de>
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
next prev parent reply other threads:[~2012-03-05 8:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 13:46 bitbake dependency cache problem Steffen Sledz
2012-03-05 7:55 ` Steffen Sledz [this message]
[not found] ` <1330954103.17022.15.camel@ted>
2012-03-05 15:07 ` Steffen Sledz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F54718B.3090900@dresearch-fe.de \
--to=sledz@dresearch-fe.de \
--cc=bitbake-devel@lists.openembedded.org \
--cc=openembedded-devel@lists.openembedded.org \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox