Openembedded Core Discussions
 help / color / mirror / Atom feed
* Re: [oe] evince: who is responsible to pack all within usr/lib/evince/3/backends to ${PN}?
       [not found]   ` <CALbNGRQ0+FDE7QisckBOCXBUspQiumZFLjPJYgRf87a1mqtHaw@mail.gmail.com>
@ 2012-01-27 12:48     ` Andreas Müller
  2012-01-27 15:22       ` Saul Wold
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Müller @ 2012-01-27 12:48 UTC (permalink / raw)
  To: openembedded-devel; +Cc: openembedded-core

On Fri, Jan 27, 2012 at 9:43 AM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Fri, Jan 27, 2012 at 2:28 AM, Saul Wold <sgw@linux.intel.com> wrote:
>> On 01/26/2012 05:16 PM, Andreas Müller wrote:
>>>
>>> I checked: the complete contents of /usr/lib/evince/3/backends go to
>>> evince package and I would like to move *.a to ${PN}-staticdev and
>>> *.la to ${PN}-dev but I don't understand: who is responsible for
>>> adding all this to ${PN}?
>>>
>> bitbake.conf defines where most files should go, but when you get files in
>> sub-directories, such as /usr/lib/evince/..., then the recipe needs to do a
>> little more work. If you look at the evince_2.32.0.bb, there already is a
>> FILES_${PN}-staticdev that adds some extensions, you need to add this set of
>> backends to that list, probably same with the .la to the -dev package.
>>
> Why I asked this: Maybe there is a chance to fix this more globally
> instead of one by one in each recipe. But therefore I need to know
> where the path is packed.
>
I looked around for this a bit: As Saul pointed out, in bitbake.conf we have
FILES_${PN} = ... ${libdir}/${BPN}/* ...

This
* drags in all below this directory ( e.g *.la / *.a )
* Forces me to rewrite FILES_${PN} in evince ( e.g just adding
${libdir}/${BPN}/*/backends/*.a to FILES_${PN}-staticdev fixes nothing
). This is something I would like to avoid.

Suggestions?

I guess others but evince are also affected.

Andreas



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

* Re: [oe] evince: who is responsible to pack all within usr/lib/evince/3/backends to ${PN}?
  2012-01-27 12:48     ` [oe] evince: who is responsible to pack all within usr/lib/evince/3/backends to ${PN}? Andreas Müller
@ 2012-01-27 15:22       ` Saul Wold
  2012-01-27 23:16         ` Andreas Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Saul Wold @ 2012-01-27 15:22 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: openembedded-devel

On 01/27/2012 04:48 AM, Andreas Müller wrote:
> On Fri, Jan 27, 2012 at 9:43 AM, Andreas Müller
> <schnitzeltony@googlemail.com>  wrote:
>> On Fri, Jan 27, 2012 at 2:28 AM, Saul Wold<sgw@linux.intel.com>  wrote:
>>> On 01/26/2012 05:16 PM, Andreas Müller wrote:
>>>>
>>>> I checked: the complete contents of /usr/lib/evince/3/backends go to
>>>> evince package and I would like to move *.a to ${PN}-staticdev and
>>>> *.la to ${PN}-dev but I don't understand: who is responsible for
>>>> adding all this to ${PN}?
>>>>
>>> bitbake.conf defines where most files should go, but when you get files in
>>> sub-directories, such as /usr/lib/evince/..., then the recipe needs to do a
>>> little more work. If you look at the evince_2.32.0.bb, there already is a
>>> FILES_${PN}-staticdev that adds some extensions, you need to add this set of
>>> backends to that list, probably same with the .la to the -dev package.
>>>
>> Why I asked this: Maybe there is a chance to fix this more globally
>> instead of one by one in each recipe. But therefore I need to know
>> where the path is packed.
>>
> I looked around for this a bit: As Saul pointed out, in bitbake.conf we have
> FILES_${PN} = ... ${libdir}/${BPN}/* ...
>
> This
> * drags in all below this directory ( e.g *.la / *.a )
> * Forces me to rewrite FILES_${PN} in evince ( e.g just adding
> ${libdir}/${BPN}/*/backends/*.a to FILES_${PN}-staticdev fixes nothing
> ). This is something I would like to avoid.
>
> Suggestions?
>
> I guess others but evince are also affected.
>
Actually the ordering of PACKAGES matters here and since bitbake.conf 
lists the ${PN}-dev and ${PN}-staticdev package before ${PN}, you can 
append the ${libdir}/${BPN}/3/backends/*.a to FILES_${PN}-staticdev and 
it will pull those first before doing the FILES_${PN}. does that make 
sense?  You don't have to re-write FILES_${PN}.

Sau!

> Andreas
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>



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

* Re: [oe] evince: who is responsible to pack all within usr/lib/evince/3/backends to ${PN}?
  2012-01-27 15:22       ` Saul Wold
@ 2012-01-27 23:16         ` Andreas Müller
  2012-01-27 23:29           ` Andreas Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Müller @ 2012-01-27 23:16 UTC (permalink / raw)
  To: openembedded-core

On Fri, Jan 27, 2012 at 4:22 PM, Saul Wold <sgw@linux.intel.com> wrote:
> On 01/27/2012 04:48 AM, Andreas Müller wrote:
>>
>> On Fri, Jan 27, 2012 at 9:43 AM, Andreas Müller
>> <schnitzeltony@googlemail.com>  wrote:
>>>
>>> On Fri, Jan 27, 2012 at 2:28 AM, Saul Wold<sgw@linux.intel.com>  wrote:
>>>>
>>>> On 01/26/2012 05:16 PM, Andreas Müller wrote:
>>>>>
>>>>>
>>>>> I checked: the complete contents of /usr/lib/evince/3/backends go to
>>>>> evince package and I would like to move *.a to ${PN}-staticdev and
>>>>> *.la to ${PN}-dev but I don't understand: who is responsible for
>>>>> adding all this to ${PN}?
>>>>>
>>>> bitbake.conf defines where most files should go, but when you get files
>>>> in
>>>> sub-directories, such as /usr/lib/evince/..., then the recipe needs to
>>>> do a
>>>> little more work. If you look at the evince_2.32.0.bb, there already is
>>>> a
>>>> FILES_${PN}-staticdev that adds some extensions, you need to add this
>>>> set of
>>>> backends to that list, probably same with the .la to the -dev package.
>>>>
>>> Why I asked this: Maybe there is a chance to fix this more globally
>>> instead of one by one in each recipe. But therefore I need to know
>>> where the path is packed.
>>>
>> I looked around for this a bit: As Saul pointed out, in bitbake.conf we
>> have
>> FILES_${PN} = ... ${libdir}/${BPN}/* ...
>>
>> This
>> * drags in all below this directory ( e.g *.la / *.a )
>> * Forces me to rewrite FILES_${PN} in evince ( e.g just adding
>> ${libdir}/${BPN}/*/backends/*.a to FILES_${PN}-staticdev fixes nothing
>> ). This is something I would like to avoid.
>>
>> Suggestions?
>>
>> I guess others but evince are also affected.
>>
> Actually the ordering of PACKAGES matters here and since bitbake.conf lists
> the ${PN}-dev and ${PN}-staticdev package before ${PN}, you can append the
> ${libdir}/${BPN}/3/backends/*.a to FILES_${PN}-staticdev and it will pull
> those first before doing the FILES_${PN}. does that make sense?  You don't
> have to re-write FILES_${PN}.
>
Sorry - but In oe-core's bitbake.conf I see

PACKAGES = "${PN}-dbg ${PN} ${PN}-doc ${PN}-dev ${PN}-staticdev ${PN}-locale"

this might explain why I can append whatever I want to -dev /
-staticdev - or do I miss something?

Andreas



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

* Re: [oe] evince: who is responsible to pack all within usr/lib/evince/3/backends to ${PN}?
  2012-01-27 23:16         ` Andreas Müller
@ 2012-01-27 23:29           ` Andreas Müller
  2012-01-28 15:03             ` Paul Eggleton
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Müller @ 2012-01-27 23:29 UTC (permalink / raw)
  To: openembedded-core

On Sat, Jan 28, 2012 at 12:16 AM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
>> Actually the ordering of PACKAGES matters here and since bitbake.conf lists
>> the ${PN}-dev and ${PN}-staticdev package before ${PN}, you can append the
>> ${libdir}/${BPN}/3/backends/*.a to FILES_${PN}-staticdev and it will pull
>> those first before doing the FILES_${PN}. does that make sense?  You don't
>> have to re-write FILES_${PN}.
>>
> Sorry - but In oe-core's bitbake.conf I see
>
> PACKAGES = "${PN}-dbg ${PN} ${PN}-doc ${PN}-dev ${PN}-staticdev ${PN}-locale"
>
> this might explain why I can append whatever I want to -dev /
> -staticdev - or do I miss something?
>
Have modified bitbake.conf here to

PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN} ${PN}-doc ${PN}-locale"

now I get the expected behavior.

Will start a build from scratch for the night to see if there is some fallout..

Andreas



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

* Re: [oe] evince: who is responsible to pack all within usr/lib/evince/3/backends to ${PN}?
  2012-01-27 23:29           ` Andreas Müller
@ 2012-01-28 15:03             ` Paul Eggleton
  2012-01-28 22:46               ` Andreas Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Paul Eggleton @ 2012-01-28 15:03 UTC (permalink / raw)
  To: Andreas Müller; +Cc: openembedded-core

On Saturday 28 January 2012 00:29:28 Andreas Müller wrote:
> Have modified bitbake.conf here to
> 
> PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN} ${PN}-doc
> ${PN}-locale"
> 
> now I get the expected behavior.
> 
> Will start a build from scratch for the night to see if there is some
> fallout..

We would need to be extremely careful before changing the default value of 
PACKAGES. I would strongly suggest you enable buildhistory when you do this so 
you can spot any changes easily, particularly in package content.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



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

* Re: [oe] evince: who is responsible to pack all within usr/lib/evince/3/backends to ${PN}?
  2012-01-28 15:03             ` Paul Eggleton
@ 2012-01-28 22:46               ` Andreas Müller
  2012-01-29  0:08                 ` Andreas Müller
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Müller @ 2012-01-28 22:46 UTC (permalink / raw)
  To: openembedded-core

On Sat, Jan 28, 2012 at 4:03 PM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> On Saturday 28 January 2012 00:29:28 Andreas Müller wrote:
>> Have modified bitbake.conf here to
>>
>> PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN} ${PN}-doc
>> ${PN}-locale"
>>
>> now I get the expected behavior.
>>
>> Will start a build from scratch for the night to see if there is some
>> fallout..
>
> We would need to be extremely careful before changing the default value of
> PACKAGES. I would strongly suggest you enable buildhistory when you do this so
> you can spot any changes easily, particularly in package content.
>
I am afraid you are so right: First build fallout is db. It shows that
the current implementation

SOLIBS = ".so.*"
SOLIBSDEV = ".so"

fails at least here. The main shared lib is found in -dev!

Uhhh cold in here...

Andreas



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

* Re: [oe] evince: who is responsible to pack all within usr/lib/evince/3/backends to ${PN}?
  2012-01-28 22:46               ` Andreas Müller
@ 2012-01-29  0:08                 ` Andreas Müller
  2012-01-30 23:45                   ` Saul Wold
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Müller @ 2012-01-29  0:08 UTC (permalink / raw)
  To: openembedded-core

On Sat, Jan 28, 2012 at 11:46 PM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
> On Sat, Jan 28, 2012 at 4:03 PM, Paul Eggleton
> <paul.eggleton@linux.intel.com> wrote:
>> On Saturday 28 January 2012 00:29:28 Andreas Müller wrote:
>>> Have modified bitbake.conf here to
>>>
>>> PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN} ${PN}-doc
>>> ${PN}-locale"
>>>
>>> now I get the expected behavior.
>>>
>>> Will start a build from scratch for the night to see if there is some
>>> fallout..
>>
>> We would need to be extremely careful before changing the default value of
>> PACKAGES. I would strongly suggest you enable buildhistory when you do this so
>> you can spot any changes easily, particularly in package content.
>>
> I am afraid you are so right: First build fallout is db. It shows that
> the current implementation
>
> SOLIBS = ".so.*"
> SOLIBSDEV = ".so"
>
> fails at least here. The main shared lib is found in -dev!
>
> Uhhh cold in here...
>
How about splitting bitbake.conf changes:
1. Now: move ${PN}-staticdev before ${PN}. This should not have the
dramatic impact and makes it easier to fix new QA warnings.
2. (Much) later ${PN}-dev before ${PN}. This has huge impact and needs
massive testing

Andreas



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

* Re: [oe] evince: who is responsible to pack all within usr/lib/evince/3/backends to ${PN}?
  2012-01-29  0:08                 ` Andreas Müller
@ 2012-01-30 23:45                   ` Saul Wold
  0 siblings, 0 replies; 8+ messages in thread
From: Saul Wold @ 2012-01-30 23:45 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 01/28/2012 04:08 PM, Andreas Müller wrote:
> On Sat, Jan 28, 2012 at 11:46 PM, Andreas Müller
> <schnitzeltony@googlemail.com>  wrote:
>> On Sat, Jan 28, 2012 at 4:03 PM, Paul Eggleton
>> <paul.eggleton@linux.intel.com>  wrote:
>>> On Saturday 28 January 2012 00:29:28 Andreas Müller wrote:
>>>> Have modified bitbake.conf here to
>>>>
>>>> PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-staticdev ${PN} ${PN}-doc
>>>> ${PN}-locale"
>>>>
>>>> now I get the expected behavior.
>>>>
>>>> Will start a build from scratch for the night to see if there is some
>>>> fallout..
>>>
>>> We would need to be extremely careful before changing the default value of
>>> PACKAGES. I would strongly suggest you enable buildhistory when you do this so
>>> you can spot any changes easily, particularly in package content.
>>>
>> I am afraid you are so right: First build fallout is db. It shows that
>> the current implementation
>>
>> SOLIBS = ".so.*"
>> SOLIBSDEV = ".so"
>>
>> fails at least here. The main shared lib is found in -dev!
>>
>> Uhhh cold in here...
>>
> How about splitting bitbake.conf changes:
> 1. Now: move ${PN}-staticdev before ${PN}. This should not have the
> dramatic impact and makes it easier to fix new QA warnings.
> 2. (Much) later ${PN}-dev before ${PN}. This has huge impact and needs
> massive testing
>
 From my understanding there are reasons (that I can't remember right 
now) why ${PN} is where it is. As you note it might not be helpful in 
this case anyways because of the ${BPN}/3.

Sau!

> Andreas
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>



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

end of thread, other threads:[~2012-01-30 23:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CALbNGRS-WsE45UakTV5VE2T5bAxb1C2iWgPeN+Ys+OTx-i48Rw@mail.gmail.com>
     [not found] ` <4F21FDA2.5070803@linux.intel.com>
     [not found]   ` <CALbNGRQ0+FDE7QisckBOCXBUspQiumZFLjPJYgRf87a1mqtHaw@mail.gmail.com>
2012-01-27 12:48     ` [oe] evince: who is responsible to pack all within usr/lib/evince/3/backends to ${PN}? Andreas Müller
2012-01-27 15:22       ` Saul Wold
2012-01-27 23:16         ` Andreas Müller
2012-01-27 23:29           ` Andreas Müller
2012-01-28 15:03             ` Paul Eggleton
2012-01-28 22:46               ` Andreas Müller
2012-01-29  0:08                 ` Andreas Müller
2012-01-30 23:45                   ` Saul Wold

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