eglibc-dbg: provides libc6-dbg
PATCH 1/1 eglibc-dbg: provides libc6-dbg
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.
--- meta/recipes-core/eglibc/eglibc-package.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/eglibc/eglibc-package.inc +1 -1
@@ -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)}"
Signature · 1 line
1.8.1.2
meta/recipes-core/eglibc/eglibc-package.inc RPROVIDES_${PN}-doc = "glibc-doc" · line 33
Quoted 7 lines · Kai Kang
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.
meta/recipes-core/eglibc/eglibc-package.inc +1
-1-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.
Quoted 11 lines · Phil Blundell
meta/recipes-core/eglibc/eglibc-package.inc RPROVIDES_${PN}-doc = "glibc-doc" · line 33
Quoted 7 lines · Kai Kang
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.
meta/recipes-core/eglibc/eglibc-package.inc +1
-1-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
Quoted 6 lines
p.
Signature · 2 lines
Regards, Neil | Kai Kang
Quoted 2 lines · Kang Kai
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.
Quoted 8 lines · Phil Blundell
Quoted 2 lines · Kang Kai
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
Quoted 5 lines
p.
Signature · 2 lines
Regards, Neil | Kai Kang
Quoted 10 lines · Kang Kai
Quoted 8 lines · Phil Blundell
Quoted 2 lines · Kang Kai
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.
Quoted 4 lines
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.