* [PATCH] eglibc-dbg: provides libc6-dbg
@ 2014-01-22 3:12 Kai Kang
2014-01-22 7:08 ` Phil Blundell
0 siblings, 1 reply; 6+ messages in thread
From: Kai Kang @ 2014-01-22 3:12 UTC (permalink / raw)
To: openembedded-core
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.
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
meta/recipes-core/eglibc/eglibc-package.inc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc
index 3adf1a9..220832a 100644
--- a/meta/recipes-core/eglibc/eglibc-package.inc
+++ b/meta/recipes-core/eglibc/eglibc-package.inc
@@ -30,7 +30,7 @@ RPROVIDES_${PN}-doc = "glibc-doc"
RPROVIDES_eglibc-extra-nss = "glibc-extra-nss"
RPROVIDES_eglibc-thread-db = "glibc-thread-db"
RPROVIDES_${PN}-pcprofile = "glibc-pcprofile"
-RPROVIDES_${PN}-dbg = "glibc-dbg"
+RPROVIDES_${PN}-dbg = "glibc-dbg libc6-dbg"
libc_baselibs = "${base_libdir}/libcrypt*.so.* ${base_libdir}/libcrypt-*.so ${base_libdir}/libc.so.* ${base_libdir}/libc-*.so ${base_libdir}/libm*.so.* ${base_libdir}/libm-*.so ${base_libdir}/ld*.so.* ${base_libdir}/ld-*.so ${base_libdir}/libpthread*.so.* ${base_libdir}/libpthread-*.so ${base_libdir}/libresolv*.so.* ${base_libdir}/libresolv-*.so ${base_libdir}/librt*.so.* ${base_libdir}/librt-*.so ${base_libdir}/libutil*.so.* ${base_libdir}/libutil-*.so ${base_libdir}/libnsl*.so.* ${base_libdir}/libnsl-*.so ${base_libdir}/libnss_files*.so.* ${base_libdir}/libnss_files-*.so ${base_libdir}/libnss_compat*.so.* ${base_libdir}/libnss_compat-*.so ${base_libdir}/libnss_dns*.so.* ${base_libdir}/libnss_dns-*.so ${base_libdir}/libdl*.so.* ${base_libdir}/libdl-*.so ${base_libdir}/libanl*.so.* ${base_libdir}/libanl-*.so ${base_libdir}/libBrokenLocale*.so.* ${base_libdir}/libBrokenLocale-*.so"
FILES_${PN} = "${libc_baselibs} ${libexecdir}/* ${@base_conditional('USE_LDCONFIG', '1', '${base_sbindir}/ldconfig ${sysconfdir}/ld.so.conf', '', d)}"
--
1.8.1.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] eglibc-dbg: provides libc6-dbg
2014-01-22 3:12 [PATCH] eglibc-dbg: provides libc6-dbg Kai Kang
@ 2014-01-22 7:08 ` Phil Blundell
2014-01-22 9:06 ` Kang Kai
0 siblings, 1 reply; 6+ messages in thread
From: Phil Blundell @ 2014-01-22 7:08 UTC (permalink / raw)
To: Kai Kang; +Cc: openembedded-core
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?
p.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] eglibc-dbg: provides libc6-dbg
2014-01-22 7:08 ` Phil Blundell
@ 2014-01-22 9:06 ` Kang Kai
2014-01-25 19:30 ` Phil Blundell
0 siblings, 1 reply; 6+ messages in thread
From: Kang Kai @ 2014-01-22 9:06 UTC (permalink / raw)
To: Phil Blundell; +Cc: openembedded-core
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] eglibc-dbg: provides libc6-dbg
2014-01-22 9:06 ` Kang Kai
@ 2014-01-25 19:30 ` Phil Blundell
2014-01-27 3:20 ` Kang Kai
0 siblings, 1 reply; 6+ messages in thread
From: Phil Blundell @ 2014-01-25 19:30 UTC (permalink / raw)
To: Kang Kai; +Cc: openembedded-core
On Wed, 2014-01-22 at 17:06 +0800, Kang Kai wrote:
> Use glib-dbg does work. But if I use it in a recipe, when uclibc is
> used, I have to edit the recipe.
Isn't that still true of "libc6-dbg"? Worse, it isn't even guaranteed
that the eglibc-debug package will be named libc6-dbg on all targets; it
would probably end up as libc6.1-dbg on alpha-linux or ia64-linux for
example. Encouraging people to hardcode "libc6" doesn't seem very
wholesome.
p.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] eglibc-dbg: provides libc6-dbg
2014-01-25 19:30 ` Phil Blundell
@ 2014-01-27 3:20 ` Kang Kai
2014-01-27 11:25 ` Phil Blundell
0 siblings, 1 reply; 6+ messages in thread
From: Kang Kai @ 2014-01-27 3:20 UTC (permalink / raw)
To: Phil Blundell; +Cc: openembedded-core
On 2014年01月26日 03:30, Phil Blundell wrote:
> On Wed, 2014-01-22 at 17:06 +0800, Kang Kai wrote:
>> Use glib-dbg does work. But if I use it in a recipe, when uclibc is
>> used, I have to edit the recipe.
> Isn't that still true of "libc6-dbg"? Worse, it isn't even guaranteed
> that the eglibc-debug package will be named libc6-dbg on all targets; it
> would probably end up as libc6.1-dbg on alpha-linux or ia64-linux for
> example. Encouraging people to hardcode "libc6" doesn't seem very
> wholesome.
I think this is the way to deal the "RPROVIDES" and please ref to
libc6-dev in eglibc-package.inc:
RPROVIDES_${PN}-dev = "glibc-dev libc6-dev virtual-libc-dev"
Thanks,
Kai
>
> p.
>
>
>
--
Regards,
Neil | Kai Kang
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] eglibc-dbg: provides libc6-dbg
2014-01-27 3:20 ` Kang Kai
@ 2014-01-27 11:25 ` Phil Blundell
0 siblings, 0 replies; 6+ messages in thread
From: Phil Blundell @ 2014-01-27 11:25 UTC (permalink / raw)
To: Kang Kai; +Cc: openembedded-core
On Mon, 2014-01-27 at 11:20 +0800, Kang Kai wrote:
> On 2014年01月26日 03:30, Phil Blundell wrote:
> > On Wed, 2014-01-22 at 17:06 +0800, Kang Kai wrote:
> >> Use glib-dbg does work. But if I use it in a recipe, when uclibc is
> >> used, I have to edit the recipe.
> > Isn't that still true of "libc6-dbg"? Worse, it isn't even guaranteed
> > that the eglibc-debug package will be named libc6-dbg on all targets; it
> > would probably end up as libc6.1-dbg on alpha-linux or ia64-linux for
> > example. Encouraging people to hardcode "libc6" doesn't seem very
> > wholesome.
>
> I think this is the way to deal the "RPROVIDES" and please ref to
> libc6-dev in eglibc-package.inc:
>
> RPROVIDES_${PN}-dev = "glibc-dev libc6-dev virtual-libc-dev"
I'm not quite sure I understand what you're saying here. But, a few
observations:
- the RPROVIDES that you mentioned is somewhat bogus since, as
previously mentioned, the autonamer is not guaranteed to come up with
"libc6" for eglibc on all platforms
- uclibc doesn't include eglibc-package.inc anyway so it won't be
affected by any RPROVIDES in that file
- adding that RPROVIDES for uclibc would be especially bogus since there
are no existing platforms where uclibc does get autonamed as "libc6"
So, I still don't really understand how adding this extra RPROVIDES does
much to help with uclibc compatibility.
p.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-01-27 11:25 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-22 3:12 [PATCH] eglibc-dbg: provides libc6-dbg Kai Kang
2014-01-22 7:08 ` Phil Blundell
2014-01-22 9:06 ` Kang Kai
2014-01-25 19:30 ` Phil Blundell
2014-01-27 3:20 ` Kang Kai
2014-01-27 11:25 ` Phil Blundell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox