[OE-core] [PATCH] eglibc-dbg: provides libc6-dbg

Kang Kai Kai.Kang at windriver.com
Wed Jan 22 09:06:38 UTC 2014


On 2014年01月22日 15:08, Phil Blundell wrote:
> On Wed, 2014-01-22 at 11:12 +0800, Kai Kang wrote:
>> Update eglibc-package.inc to let eglibc-dbg provides libc6-dbg.
>>
>> The use case is that when libc6-dbg is needded to be installed into
>> image, we don't need change glibc-dbg to uclibc-dbg in recipe when we
>> change to use package uclibc as default C library.
>> -RPROVIDES_${PN}-dbg = "glibc-dbg"
>> +RPROVIDES_${PN}-dbg = "glibc-dbg libc6-dbg"
> Isn't PKG_${PN}-dbg set to libc6-dbg anyway (by libc-common.bbclass)?
> Can you explain the use case and justification for this change a bit
> more clearly?

In libc-common.bbclass, it set dependencies for the rpm packages. When
run 'rpm -qp --provides libc6-dbg-2.18-r2.0.x86_64.rpm', yes, it
provides 'eglibc-dbg  libc-dbg  glibc-dbg  libc6-dbg'.

But when bitbake parse the recipe and configure files, libc6-dbg is not
found and not package provides it. If you add one line such as:
IMAGE_INSTALL_append += "libc6-dbg"

bitbake complains:

ERROR: Nothing RPROVIDES 'libc6-dbg' (but
/mnt/sda8/poky-neil/meta/recipes-sato/images/core-image-sato.bb RDEPENDS
on or otherwise requires it)

Use glib-dbg does work. But if I use it in a recipe, when uclibc is
used, I have to edit the recipe.

So I update RPROVIDES_${PN}-dbg to let it provides libc6-dbg.

Regards,
Kai
>
> p.
>
>
>
>


-- 
Regards,
Neil | Kai Kang




More information about the Openembedded-core mailing list