Re: [OE-core] Ensuring a task is re-ran when local.conf is updated

2014-05-03 Thread Burton, Ross
On 3 May 2014 10:08, Richard Purdie wrote: >> Could this be the root-cause of so many instances where we've had to >> add explicit hints that variables should be added to the hash? > > Is there really "so many"? > > In each case we've seen its been due to the code being python that the > parser ca

Re: [OE-core] Ensuring a task is re-ran when local.conf is updated

2014-05-03 Thread Richard Purdie
On Sat, 2014-05-03 at 10:03 +0100, Burton, Ross wrote: > On 2 May 2014 23:07, Richard Purdie > wrote: > > It may well do and I've realised the issue: > > > > codeparser.py: > > class PythonParser(): > > getvars = ("d.getVar", "bb.data.getVar", "data.getVar", "d.appendVar", > > "d.prependVar"

Re: [OE-core] Ensuring a task is re-ran when local.conf is updated

2014-05-03 Thread Burton, Ross
On 2 May 2014 23:07, Richard Purdie wrote: > It may well do and I've realised the issue: > > codeparser.py: > class PythonParser(): > getvars = ("d.getVar", "bb.data.getVar", "data.getVar", "d.appendVar", > "d.prependVar") > > we probably need to change this to an .endswith(".getVar", ".appen

Re: [OE-core] Ensuring a task is re-ran when local.conf is updated

2014-05-02 Thread Richard Purdie
On Fri, 2014-05-02 at 22:51 +0100, Paul Barker wrote: > On 2 May 2014 22:34, Richard Purdie > wrote: > > On Fri, 2014-05-02 at 17:43 +0100, Paul Barker wrote: > >> > >> Am I missing something here? Is it expected that this variable change > >> is detected and the relevant tasks re-executed? I kno

Re: [OE-core] Ensuring a task is re-ran when local.conf is updated

2014-05-02 Thread Paul Barker
On 2 May 2014 22:34, Richard Purdie wrote: > On Fri, 2014-05-02 at 17:43 +0100, Paul Barker wrote: >> >> Am I missing something here? Is it expected that this variable change >> is detected and the relevant tasks re-executed? I know changing >> variables like PREFERRED_PROVIDER_* in local.conf cau

Re: [OE-core] Ensuring a task is re-ran when local.conf is updated

2014-05-02 Thread Richard Purdie
On Fri, 2014-05-02 at 17:43 +0100, Paul Barker wrote: > Hi all, I'm wondering if someone can help me debug this problem a > little as it's getting into the parts of bitbake I don't know very > well, in particular the determination of whether a task needs to > re-run or not. > > I've attached a pat

[OE-core] Ensuring a task is re-ran when local.conf is updated

2014-05-02 Thread Paul Barker
Hi all, I'm wondering if someone can help me debug this problem a little as it's getting into the parts of bitbake I don't know very well, in particular the determination of whether a task needs to re-run or not. I've attached a patch which adds code to do_package_write_ipk in package_ipk.bbclass