Override problems in bitbake trunk/1,8
Hi,
This is an expansion of the issue reported in
http://bugs.openembedded.org/show_bug.cgi?id=2601
If you have a .bb file and set:
PN = gtk+
OVERRIDES = "OVERRIDES="poky:linux-gnueabi"
FRREC_${PN} = "foo1"
FRREC_${PN}_append_poky = " foo2"
FRREC_${PN}_append_linux = " foo3"
FRREC_${PN}_append_linux-gnueabi = " foo3"
GRREC = "foo1"GRREC_append_poky = " foo2"GRREC_append_linux = " foo3"
GRREC_append_linux-gnueabi = " foo3"
You get the expected:
GRREC="foo1 foo2 foo3"
but the ${PN} breaks things somewhere and gives:
FRREC_gtk+="foo1"
I suspect something is wrong in the overrides handling, maybe to do with expandKeys. Does anyone have any ideas?
Cheers,
Richard
Quoted 3 lines · Richard Purdie
This is an expansion of the issue reported in
http://bugs.openembedded.org/show_bug.cgi?id=2601
[...]
Quoted 10 lines
You get the expected:
GRREC="foo1 foo2 foo3"
but the ${PN} breaks things somewhere and gives:
FRREC_gtk+="foo1"
I suspect something is wrong in the overrides handling, maybe to do with expandKeys. Does anyone have any ideas?
I think this might be the fix:
data.py +4 -0
@@ -288,6 +288,10 @@ src = getVarFlag(key, i, readdata) or [] dest.extend(src) setVarFlag(ekey, i, dest, alterdata) + + if key in alterdata._special_values[i]: + alterdata._special_values[i].remove(key) + alterdata._special_values[i].add(ekey) delVar(key, alterdata)