Openembedded Core Discussions
 help / color / mirror / Atom feed
* Is BBCLASSEXTEND in .bbappend supposed to work?
@ 2011-04-18 10:55 Koen Kooi
  2011-04-18 11:28 ` Richard Purdie
  0 siblings, 1 reply; 9+ messages in thread
From: Koen Kooi @ 2011-04-18 10:55 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

Hi,

Martin did some Xorg cleanup in meta-oe today and we're seeing some strange behaviour.  The recipe in question:

koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ cat recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
BBCLASSEXTEND = "native nativesdk"
koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ 

Bitbake-layers tells me:

INFO: libxrender_0.9.6.bb:
INFO:   /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend

So the append is getting picked up, but bitbake gives me:

ERROR: Nothing PROVIDES 'libxrender-native'
NOTE: Runtime target 'libnss-mdns' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['libnss-mdns', 'avahi', 'gtk+', 'gtk+-native', 'libxrender-native']

This is with HEAD of bitbake master.

regards,

Koen


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is BBCLASSEXTEND in .bbappend supposed to work?
  2011-04-18 10:55 Is BBCLASSEXTEND in .bbappend supposed to work? Koen Kooi
@ 2011-04-18 11:28 ` Richard Purdie
  2011-04-18 11:34   ` Koen Kooi
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Purdie @ 2011-04-18 11:28 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2011-04-18 at 12:55 +0200, Koen Kooi wrote:
> Martin did some Xorg cleanup in meta-oe today and we're seeing some strange behaviour.  The recipe in question:
> 
> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ cat recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
> BBCLASSEXTEND = "native nativesdk"
> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ 
> 
> Bitbake-layers tells me:
> 
> INFO: libxrender_0.9.6.bb:
> INFO:   /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
> 
> So the append is getting picked up, but bitbake gives me:
> 
> ERROR: Nothing PROVIDES 'libxrender-native'
> NOTE: Runtime target 'libnss-mdns' is unbuildable, removing...
> Missing or unbuildable dependency chain was: ['libnss-mdns', 'avahi', 'gtk+', 'gtk+-native', 'libxrender-native']
> 
> This is with HEAD of bitbake master.

I did some experimentation here and this looks like bitbake-layers is
seeing the file but bitbake is not. If I touch the libxrender .bb file
and then run bitbake -DDD, I see the file mentioned in the logs:

$ touch recipes-graphics/xorg-lib/libxrender_0.9.6.bb
$ bitbake libxrender-native -DDD | grep append
DEBUG: Appending .bbappend file /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend to /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
DEBUG: BB /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend: handle(data, include)
DEBUG: LOAD /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend

Can you confirm you're seeing that? Admittedly I just hacked a local
checkout and I'm not using meta-oe.

Do you need to add *.bbappend to BBFILES in layer.conf ?

Cheers,

Richard





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is BBCLASSEXTEND in .bbappend supposed to work?
  2011-04-18 11:28 ` Richard Purdie
@ 2011-04-18 11:34   ` Koen Kooi
  2011-04-18 12:17     ` Gary Thomas
  0 siblings, 1 reply; 9+ messages in thread
From: Koen Kooi @ 2011-04-18 11:34 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 18 apr 2011, om 13:28 heeft Richard Purdie het volgende geschreven:

> On Mon, 2011-04-18 at 12:55 +0200, Koen Kooi wrote:
>> Martin did some Xorg cleanup in meta-oe today and we're seeing some strange behaviour.  The recipe in question:
>> 
>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ cat recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>> BBCLASSEXTEND = "native nativesdk"
>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ 
>> 
>> Bitbake-layers tells me:
>> 
>> INFO: libxrender_0.9.6.bb:
>> INFO:   /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>> 
>> So the append is getting picked up, but bitbake gives me:
>> 
>> ERROR: Nothing PROVIDES 'libxrender-native'
>> NOTE: Runtime target 'libnss-mdns' is unbuildable, removing...
>> Missing or unbuildable dependency chain was: ['libnss-mdns', 'avahi', 'gtk+', 'gtk+-native', 'libxrender-native']
>> 
>> This is with HEAD of bitbake master.
> 
> I did some experimentation here and this looks like bitbake-layers is
> seeing the file but bitbake is not. If I touch the libxrender .bb file
> and then run bitbake -DDD, I see the file mentioned in the logs:
> 
> $ touch recipes-graphics/xorg-lib/libxrender_0.9.6.bb
> $ bitbake libxrender-native -DDD | grep append
> DEBUG: Appending .bbappend file /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend to /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
> DEBUG: BB /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend: handle(data, include)
> DEBUG: LOAD /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
> 
> Can you confirm you're seeing that? Admittedly I just hacked a local
> checkout and I'm not using meta-oe.

I get:

koen@dominion:/OE/tentacle/build$ touch ../sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb 
koen@dominion:/OE/tentacle/build$ bitbake libxrender-native -DDD | grep append
DEBUG: Appending .bbappend file /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend to /OE/tentacle/sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
DEBUG: BB /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend: handle(data, include)
DEBUG: LOAD /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend

It then chokes on renderproto-native, which gets fixes by touching the .bb. So it looks like bitbake has some caching issues.


> 
> Do you need to add *.bbappend to BBFILES in layer.conf ?

I have that already :)


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is BBCLASSEXTEND in .bbappend supposed to work?
  2011-04-18 11:34   ` Koen Kooi
@ 2011-04-18 12:17     ` Gary Thomas
  2011-05-18 19:47       ` Simon Busch
  0 siblings, 1 reply; 9+ messages in thread
From: Gary Thomas @ 2011-04-18 12:17 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Koen Kooi

On 04/18/2011 05:34 AM, Koen Kooi wrote:
>
> Op 18 apr 2011, om 13:28 heeft Richard Purdie het volgende geschreven:
>
>> On Mon, 2011-04-18 at 12:55 +0200, Koen Kooi wrote:
>>> Martin did some Xorg cleanup in meta-oe today and we're seeing some strange behaviour.  The recipe in question:
>>>
>>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ cat recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>> BBCLASSEXTEND = "native nativesdk"
>>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$
>>>
>>> Bitbake-layers tells me:
>>>
>>> INFO: libxrender_0.9.6.bb:
>>> INFO:   /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>
>>> So the append is getting picked up, but bitbake gives me:
>>>
>>> ERROR: Nothing PROVIDES 'libxrender-native'
>>> NOTE: Runtime target 'libnss-mdns' is unbuildable, removing...
>>> Missing or unbuildable dependency chain was: ['libnss-mdns', 'avahi', 'gtk+', 'gtk+-native', 'libxrender-native']
>>>
>>> This is with HEAD of bitbake master.
>>
>> I did some experimentation here and this looks like bitbake-layers is
>> seeing the file but bitbake is not. If I touch the libxrender .bb file
>> and then run bitbake -DDD, I see the file mentioned in the logs:
>>
>> $ touch recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>> $ bitbake libxrender-native -DDD | grep append
>> DEBUG: Appending .bbappend file /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend to /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>> DEBUG: BB /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend: handle(data, include)
>> DEBUG: LOAD /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>
>> Can you confirm you're seeing that? Admittedly I just hacked a local
>> checkout and I'm not using meta-oe.
>
> I get:
>
> koen@dominion:/OE/tentacle/build$ touch ../sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
> koen@dominion:/OE/tentacle/build$ bitbake libxrender-native -DDD | grep append
> DEBUG: Appending .bbappend file /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend to /OE/tentacle/sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
> DEBUG: BB /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend: handle(data, include)
> DEBUG: LOAD /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>
> It then chokes on renderproto-native, which gets fixes by touching the .bb. So it looks like bitbake has some caching issues.

I have seen exactly this behaviour.  Rebuilding the cache makes it work.  Is there an easy way
to force the cache to rebuild?  (I just touch a .conf file...)

>>
>> Do you need to add *.bbappend to BBFILES in layer.conf ?
>
> I have that already :)

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is BBCLASSEXTEND in .bbappend supposed to work?
  2011-04-18 12:17     ` Gary Thomas
@ 2011-05-18 19:47       ` Simon Busch
  2011-05-18 22:11         ` Gary Thomas
  2011-05-19 22:53         ` Richard Purdie
  0 siblings, 2 replies; 9+ messages in thread
From: Simon Busch @ 2011-05-18 19:47 UTC (permalink / raw)
  To: openembedded-core

On 18.04.2011 14:17, Gary Thomas wrote:
> On 04/18/2011 05:34 AM, Koen Kooi wrote:
>>
>> Op 18 apr 2011, om 13:28 heeft Richard Purdie het volgende geschreven:
>>
>>> On Mon, 2011-04-18 at 12:55 +0200, Koen Kooi wrote:
>>>> Martin did some Xorg cleanup in meta-oe today and we're seeing some
>>>> strange behaviour.  The recipe in question:
>>>>
>>>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ cat
>>>> recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>> BBCLASSEXTEND = "native nativesdk"
>>>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$
>>>>
>>>> Bitbake-layers tells me:
>>>>
>>>> INFO: libxrender_0.9.6.bb:
>>>> INFO:  
>>>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>>
>>>>
>>>> So the append is getting picked up, but bitbake gives me:
>>>>
>>>> ERROR: Nothing PROVIDES 'libxrender-native'
>>>> NOTE: Runtime target 'libnss-mdns' is unbuildable, removing...
>>>> Missing or unbuildable dependency chain was: ['libnss-mdns',
>>>> 'avahi', 'gtk+', 'gtk+-native', 'libxrender-native']
>>>>
>>>> This is with HEAD of bitbake master.
>>>
>>> I did some experimentation here and this looks like bitbake-layers is
>>> seeing the file but bitbake is not. If I touch the libxrender .bb file
>>> and then run bitbake -DDD, I see the file mentioned in the logs:
>>>
>>> $ touch recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>> $ bitbake libxrender-native -DDD | grep append
>>> DEBUG: Appending .bbappend file
>>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>> to /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>> DEBUG: BB
>>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend: handle(data,
>>> include)
>>> DEBUG: LOAD
>>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>
>>> Can you confirm you're seeing that? Admittedly I just hacked a local
>>> checkout and I'm not using meta-oe.
>>
>> I get:
>>
>> koen@dominion:/OE/tentacle/build$ touch
>> ../sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>
>> koen@dominion:/OE/tentacle/build$ bitbake libxrender-native -DDD |
>> grep append
>> DEBUG: Appending .bbappend file
>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>> to
>> /OE/tentacle/sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>
>> DEBUG: BB
>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend:
>> handle(data, include)
>> DEBUG: LOAD
>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>
>>
>> It then chokes on renderproto-native, which gets fixes by touching the
>> .bb. So it looks like bitbake has some caching issues.
> 
> I have seen exactly this behaviour.  Rebuilding the cache makes it
> work.  Is there an easy way
> to force the cache to rebuild?  (I just touch a .conf file...)
> 
>>>
>>> Do you need to add *.bbappend to BBFILES in layer.conf ?
>>
>> I have that already :)

I discoverd the same behaviour today. Is there already something fix to
get bitbake to evaluate the bbappend file after creation?

regards,
Simon




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is BBCLASSEXTEND in .bbappend supposed to work?
  2011-05-18 19:47       ` Simon Busch
@ 2011-05-18 22:11         ` Gary Thomas
  2011-05-19 22:53         ` Richard Purdie
  1 sibling, 0 replies; 9+ messages in thread
From: Gary Thomas @ 2011-05-18 22:11 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 05/18/2011 01:47 PM, Simon Busch wrote:
> On 18.04.2011 14:17, Gary Thomas wrote:
>> On 04/18/2011 05:34 AM, Koen Kooi wrote:
>>>
>>> Op 18 apr 2011, om 13:28 heeft Richard Purdie het volgende geschreven:
>>>
>>>> On Mon, 2011-04-18 at 12:55 +0200, Koen Kooi wrote:
>>>>> Martin did some Xorg cleanup in meta-oe today and we're seeing some
>>>>> strange behaviour.  The recipe in question:
>>>>>
>>>>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ cat
>>>>> recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>>> BBCLASSEXTEND = "native nativesdk"
>>>>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$
>>>>>
>>>>> Bitbake-layers tells me:
>>>>>
>>>>> INFO: libxrender_0.9.6.bb:
>>>>> INFO:
>>>>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>>>
>>>>>
>>>>> So the append is getting picked up, but bitbake gives me:
>>>>>
>>>>> ERROR: Nothing PROVIDES 'libxrender-native'
>>>>> NOTE: Runtime target 'libnss-mdns' is unbuildable, removing...
>>>>> Missing or unbuildable dependency chain was: ['libnss-mdns',
>>>>> 'avahi', 'gtk+', 'gtk+-native', 'libxrender-native']
>>>>>
>>>>> This is with HEAD of bitbake master.
>>>>
>>>> I did some experimentation here and this looks like bitbake-layers is
>>>> seeing the file but bitbake is not. If I touch the libxrender .bb file
>>>> and then run bitbake -DDD, I see the file mentioned in the logs:
>>>>
>>>> $ touch recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>>> $ bitbake libxrender-native -DDD | grep append
>>>> DEBUG: Appending .bbappend file
>>>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>> to /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>>> DEBUG: BB
>>>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend: handle(data,
>>>> include)
>>>> DEBUG: LOAD
>>>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>>
>>>> Can you confirm you're seeing that? Admittedly I just hacked a local
>>>> checkout and I'm not using meta-oe.
>>>
>>> I get:
>>>
>>> koen@dominion:/OE/tentacle/build$ touch
>>> ../sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>>
>>> koen@dominion:/OE/tentacle/build$ bitbake libxrender-native -DDD |
>>> grep append
>>> DEBUG: Appending .bbappend file
>>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>> to
>>> /OE/tentacle/sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>>
>>> DEBUG: BB
>>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend:
>>> handle(data, include)
>>> DEBUG: LOAD
>>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>
>>>
>>> It then chokes on renderproto-native, which gets fixes by touching the
>>> .bb. So it looks like bitbake has some caching issues.
>>
>> I have seen exactly this behaviour.  Rebuilding the cache makes it
>> work.  Is there an easy way
>> to force the cache to rebuild?  (I just touch a .conf file...)
>>
>>>>
>>>> Do you need to add *.bbappend to BBFILES in layer.conf ?
>>>
>>> I have that already :)
>
> I discoverd the same behaviour today. Is there already something fix to
> get bitbake to evaluate the bbappend file after creation?

As far as I know, no.  If you add a .bbappend file _after_ the
main recipe has been parsed, it does not seem to be processed
at all.  Forcing the cache to be rebuilt is what fixed it for me.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is BBCLASSEXTEND in .bbappend supposed to work?
  2011-05-18 19:47       ` Simon Busch
  2011-05-18 22:11         ` Gary Thomas
@ 2011-05-19 22:53         ` Richard Purdie
  2011-05-20 11:33           ` Gary Thomas
  1 sibling, 1 reply; 9+ messages in thread
From: Richard Purdie @ 2011-05-19 22:53 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, 2011-05-18 at 21:47 +0200, Simon Busch wrote:
> On 18.04.2011 14:17, Gary Thomas wrote:
> > On 04/18/2011 05:34 AM, Koen Kooi wrote:
> >>
> >> Op 18 apr 2011, om 13:28 heeft Richard Purdie het volgende geschreven:
> >>
> >>> On Mon, 2011-04-18 at 12:55 +0200, Koen Kooi wrote:
> >>>> Martin did some Xorg cleanup in meta-oe today and we're seeing some
> >>>> strange behaviour.  The recipe in question:
> >>>>
> >>>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ cat
> >>>> recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
> >>>> BBCLASSEXTEND = "native nativesdk"
> >>>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$
> >>>>
> >>>> Bitbake-layers tells me:
> >>>>
> >>>> INFO: libxrender_0.9.6.bb:
> >>>> INFO:  
> >>>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
> >>>>
> >>>>
> >>>> So the append is getting picked up, but bitbake gives me:
> >>>>
> >>>> ERROR: Nothing PROVIDES 'libxrender-native'
> >>>> NOTE: Runtime target 'libnss-mdns' is unbuildable, removing...
> >>>> Missing or unbuildable dependency chain was: ['libnss-mdns',
> >>>> 'avahi', 'gtk+', 'gtk+-native', 'libxrender-native']
> >>>>
> >>>> This is with HEAD of bitbake master.
> >>>
> >>> I did some experimentation here and this looks like bitbake-layers is
> >>> seeing the file but bitbake is not. If I touch the libxrender .bb file
> >>> and then run bitbake -DDD, I see the file mentioned in the logs:
> >>>
> >>> $ touch recipes-graphics/xorg-lib/libxrender_0.9.6.bb
> >>> $ bitbake libxrender-native -DDD | grep append
> >>> DEBUG: Appending .bbappend file
> >>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
> >>> to /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
> >>> DEBUG: BB
> >>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend: handle(data,
> >>> include)
> >>> DEBUG: LOAD
> >>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
> >>>
> >>> Can you confirm you're seeing that? Admittedly I just hacked a local
> >>> checkout and I'm not using meta-oe.
> >>
> >> I get:
> >>
> >> koen@dominion:/OE/tentacle/build$ touch
> >> ../sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
> >>
> >> koen@dominion:/OE/tentacle/build$ bitbake libxrender-native -DDD |
> >> grep append
> >> DEBUG: Appending .bbappend file
> >> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
> >> to
> >> /OE/tentacle/sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
> >>
> >> DEBUG: BB
> >> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend:
> >> handle(data, include)
> >> DEBUG: LOAD
> >> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
> >>
> >>
> >> It then chokes on renderproto-native, which gets fixes by touching the
> >> .bb. So it looks like bitbake has some caching issues.
> > 
> > I have seen exactly this behaviour.  Rebuilding the cache makes it
> > work.  Is there an easy way
> > to force the cache to rebuild?  (I just touch a .conf file...)
> > 
> >>>
> >>> Do you need to add *.bbappend to BBFILES in layer.conf ?
> >>
> >> I have that already :)
> 
> I discoverd the same behaviour today. Is there already something fix to
> get bitbake to evaluate the bbappend file after creation?

Someone should file a bug about this so we don't forget about it. I
think bbappend files currently sometimes fall outside the cache logic
but they obviously shouldn't and we've found a corner case...

Cheers,

Richard




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is BBCLASSEXTEND in .bbappend supposed to work?
  2011-05-19 22:53         ` Richard Purdie
@ 2011-05-20 11:33           ` Gary Thomas
  2011-05-20 11:46             ` Richard Purdie
  0 siblings, 1 reply; 9+ messages in thread
From: Gary Thomas @ 2011-05-20 11:33 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 05/19/2011 04:53 PM, Richard Purdie wrote:
> On Wed, 2011-05-18 at 21:47 +0200, Simon Busch wrote:
>> On 18.04.2011 14:17, Gary Thomas wrote:
>>> On 04/18/2011 05:34 AM, Koen Kooi wrote:
>>>>
>>>> Op 18 apr 2011, om 13:28 heeft Richard Purdie het volgende geschreven:
>>>>
>>>>> On Mon, 2011-04-18 at 12:55 +0200, Koen Kooi wrote:
>>>>>> Martin did some Xorg cleanup in meta-oe today and we're seeing some
>>>>>> strange behaviour.  The recipe in question:
>>>>>>
>>>>>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$ cat
>>>>>> recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>>>> BBCLASSEXTEND = "native nativesdk"
>>>>>> koen@dominion:/OE/tentacle/sources/meta-openembedded/meta-oe$
>>>>>>
>>>>>> Bitbake-layers tells me:
>>>>>>
>>>>>> INFO: libxrender_0.9.6.bb:
>>>>>> INFO:
>>>>>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>>>>
>>>>>>
>>>>>> So the append is getting picked up, but bitbake gives me:
>>>>>>
>>>>>> ERROR: Nothing PROVIDES 'libxrender-native'
>>>>>> NOTE: Runtime target 'libnss-mdns' is unbuildable, removing...
>>>>>> Missing or unbuildable dependency chain was: ['libnss-mdns',
>>>>>> 'avahi', 'gtk+', 'gtk+-native', 'libxrender-native']
>>>>>>
>>>>>> This is with HEAD of bitbake master.
>>>>>
>>>>> I did some experimentation here and this looks like bitbake-layers is
>>>>> seeing the file but bitbake is not. If I touch the libxrender .bb file
>>>>> and then run bitbake -DDD, I see the file mentioned in the logs:
>>>>>
>>>>> $ touch recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>>>> $ bitbake libxrender-native -DDD | grep append
>>>>> DEBUG: Appending .bbappend file
>>>>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>>> to /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>>>> DEBUG: BB
>>>>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend: handle(data,
>>>>> include)
>>>>> DEBUG: LOAD
>>>>> /rphome/poky/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>>>
>>>>> Can you confirm you're seeing that? Admittedly I just hacked a local
>>>>> checkout and I'm not using meta-oe.
>>>>
>>>> I get:
>>>>
>>>> koen@dominion:/OE/tentacle/build$ touch
>>>> ../sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>>>
>>>> koen@dominion:/OE/tentacle/build$ bitbake libxrender-native -DDD |
>>>> grep append
>>>> DEBUG: Appending .bbappend file
>>>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>> to
>>>> /OE/tentacle/sources/openembedded-core/meta/recipes-graphics/xorg-lib/libxrender_0.9.6.bb
>>>>
>>>> DEBUG: BB
>>>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend:
>>>> handle(data, include)
>>>> DEBUG: LOAD
>>>> /OE/tentacle/sources/meta-openembedded/meta-oe/recipes-graphics/xorg-lib/libxrender_0.9.6.bbappend
>>>>
>>>>
>>>> It then chokes on renderproto-native, which gets fixes by touching the
>>>> .bb. So it looks like bitbake has some caching issues.
>>>
>>> I have seen exactly this behaviour.  Rebuilding the cache makes it
>>> work.  Is there an easy way
>>> to force the cache to rebuild?  (I just touch a .conf file...)
>>>
>>>>>
>>>>> Do you need to add *.bbappend to BBFILES in layer.conf ?
>>>>
>>>> I have that already :)
>>
>> I discoverd the same behaviour today. Is there already something fix to
>> get bitbake to evaluate the bbappend file after creation?
>
> Someone should file a bug about this so we don't forget about it. I
> think bbappend files currently sometimes fall outside the cache logic
> but they obviously shouldn't and we've found a corner case...

Done - bug #1091

Query: is there a command line way to force the cache to be rebuilt?
I just use the "big hammer" approach - touch local.conf

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Is BBCLASSEXTEND in .bbappend supposed to work?
  2011-05-20 11:33           ` Gary Thomas
@ 2011-05-20 11:46             ` Richard Purdie
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Purdie @ 2011-05-20 11:46 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Patches and discussions about the oe-core layer

On Fri, 2011-05-20 at 05:33 -0600, Gary Thomas wrote:
> On 05/19/2011 04:53 PM, Richard Purdie wrote:
> > On Wed, 2011-05-18 at 21:47 +0200, Simon Busch wrote:
> >>
> >> I discoverd the same behaviour today. Is there already something fix to
> >> get bitbake to evaluate the bbappend file after creation?
> >
> > Someone should file a bug about this so we don't forget about it. I
> > think bbappend files currently sometimes fall outside the cache logic
> > but they obviously shouldn't and we've found a corner case...
> 
> Done - bug #1091
> 
> Query: is there a command line way to force the cache to be rebuilt?
> I just use the "big hammer" approach - touch local.conf

I think that is the way everyone does it at the moment...

Cheers,

Richard





^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-05-20 11:50 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-18 10:55 Is BBCLASSEXTEND in .bbappend supposed to work? Koen Kooi
2011-04-18 11:28 ` Richard Purdie
2011-04-18 11:34   ` Koen Kooi
2011-04-18 12:17     ` Gary Thomas
2011-05-18 19:47       ` Simon Busch
2011-05-18 22:11         ` Gary Thomas
2011-05-19 22:53         ` Richard Purdie
2011-05-20 11:33           ` Gary Thomas
2011-05-20 11:46             ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox