aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc-package.inc
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2010-09-08 12:31:39 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-10 12:53:46 +0100
commitd6e8013a8c1c439eef28301b1cc3b6f7674ee63b (patch)
tree209e5589001011a0bddbc0d61d83deae89d206a2 /meta/recipes-core/glibc/glibc-package.inc
parentb273ca2be051cab71bd07e11a1a4a5106e64f5ce (diff)
downloadopenembedded-core-contrib-d6e8013a8c1c439eef28301b1cc3b6f7674ee63b.tar.gz
openembedded-core-contrib-d6e8013a8c1c439eef28301b1cc3b6f7674ee63b.tar.bz2
openembedded-core-contrib-d6e8013a8c1c439eef28301b1cc3b6f7674ee63b.zip
[e]glibc-package.inc: fix providers for libsegfault and other
[e]glibc-nativesdk should not be providing libsegfault. This commit fixes the following error while doing this: bitbake poky-image-minimal-initramfs DEBUG: providers for libsegfault are: ['glibc-nativesdk', 'glibc', 'eglibc-nativesdk', 'external-csl-toolchain', 'eglibc', 'external-poky-toolchain'] DEBUG: selecting virtual:nativesdk:/rphome/poky/meta/recipes-core/glibc/glibc_2.10.1.bb as PREFERRED_VERSION 2.10.1 of package glibc-nativesdk (for item libsegfault) DEBUG: selecting /rphome/poky/meta/recipes-core/glibc/glibc_2.10.1.bb as PREFERRED_VERSION 2.10.1 of package glibc (for item libsegfault) NOTE: checking PREFERRED_PROVIDER_glibc-nativesdk NOTE: checking PREFERRED_PROVIDER_glibc-nativesdk-2.10.1 NOTE: checking PREFERRED_PROVIDER_glibc-nativesdk-2.10.1-r3 NOTE: checking PREFERRED_PROVIDER_virtual/libc-nativesdk NOTE: selecting glibc-nativesdk to satisfy runtime libsegfault due to PREFERRED_PROVIDER_virtual/libc-nativesdk = glibc-nativesdk And bumped PR. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/glibc/glibc-package.inc')
-rw-r--r--meta/recipes-core/glibc/glibc-package.inc33
1 files changed, 23 insertions, 10 deletions
diff --git a/meta/recipes-core/glibc/glibc-package.inc b/meta/recipes-core/glibc/glibc-package.inc
index 9aaa4f3873..13f92236be 100644
--- a/meta/recipes-core/glibc/glibc-package.inc
+++ b/meta/recipes-core/glibc/glibc-package.inc
@@ -27,15 +27,28 @@ ENABLE_BINARY_LOCALE_GENERATION_pn-glibc-nativesdk = "0"
# BINARY_LOCALE_ARCHES is a space separated list of regular expressions
BINARY_LOCALE_ARCHES ?= "arm.* i[3-6]86 x86_64 powerpc mips"
-PACKAGES = "glibc-dbg glibc catchsegv sln nscd ldd localedef glibc-utils glibc-dev glibc-doc glibc-locale libsegfault glibc-extra-nss glibc-thread-db glibc-pcprofile"
-PACKAGES_DYNAMIC = "glibc-gconv-* glibc-charmap-* glibc-localedata-* locale-base-* glibc-binary-localedata-*"
+PKGSUFFIX = ""
+PKGSUFFIX_virtclass-nativesdk = "-nativesdk"
-libc_baselibs = "${base_libdir}/libc* ${base_libdir}/libm* ${base_libdir}/ld* ${base_libdir}/libpthread* ${base_libdir}/libresolv* ${base_libdir}/librt* ${base_libdir}/libutil* ${base_libdir}/libnsl* ${base_libdir}/libnss_files* ${base_libdir}/libnss_compat* ${base_libdir}/libnss_dns* ${base_libdir}/libdl* ${base_libdir}/libanl* ${base_libdir}/libBrokenLocale*"
+PACKAGES = "${PN}-dbg ${PN} catchsegv${PKGSUFFIX} sln${PKGSUFFIX} nscd${PKGSUFFIX} \
+ ldd${PKGSUFFIX} localedef${PKGSUFFIX} ${PN}-utils ${PN}-dev ${PN}-doc \
+ ${PN}-locale libsegfault${PKGSUFFIX} ${PN}-extra-nss ${PN}-thread-db \
+ ${PN}-pcprofile"
+
+PACKAGES_DYNAMIC = "glibc-gconv-* glibc-charmap-* glibc-localedata-* locale-base-* \
+ glibc-binary-localedata-*"
+
+libc_baselibs = "${base_libdir}/libc* ${base_libdir}/libm* ${base_libdir}/ld* \
+ ${base_libdir}/libpthread* ${base_libdir}/libresolv* ${base_libdir}/librt* \
+ ${base_libdir}/libutil* ${base_libdir}/libnsl* ${base_libdir}/libnss_files* \
+ ${base_libdir}/libnss_compat* ${base_libdir}/libnss_dns* ${base_libdir}/libdl* \
+ ${base_libdir}/libanl* ${base_libdir}/libBrokenLocale*"
# The problem is that if PN = "glibc", FILES_${PN} will overwrite FILES_glibc
# Solution: Make them both the same thing, then it doesn't matter
-glibcfiles = "${sysconfdir} ${libc_baselibs} ${base_sbindir}/ldconfig ${libexecdir}/* ${datadir}/zoneinfo"
+glibcfiles = "${sysconfdir} ${libc_baselibs} ${base_sbindir}/ldconfig \
+ ${libexecdir}/* ${datadir}/zoneinfo"
glibcdbgfiles = "${bindir}/.debug ${sbindir}/.debug ${libdir}/.debug \
${base_bindir}/.debug ${base_sbindir}/.debug ${base_libdir}/.debug \
${libdir}/gconv/.debug ${libexecdir}/*/.debug"
@@ -45,22 +58,22 @@ glibcdevfiles = "${bindir}/rpcgen ${includedir} ${libdir}/lib*${SOLIBSDEV} ${lib
FILES_glibc = "${glibcfiles}"
FILES_${PN} = "${glibcfiles}"
-FILES_ldd = "${bindir}/ldd"
-FILES_libsegfault = "${base_libdir}/libSegFault*"
+FILES_ldd${PKGSUFFIX} = "${bindir}/ldd"
+FILES_libsegfault${PKGSUFFIX} = "${base_libdir}/libSegFault*"
FILES_glibc-extra-nss = "${base_libdir}/libnss*"
FILES_sln = "${base_sbindir}/sln"
FILES_glibc-dev = "${glibcdevfiles}"
FILES_${PN}-dev = "${glibcdevfiles}"
FILES_glibc-dbg = "${glibcdbgfiles}"
FILES_${PN}-dbg = "${glibcdbgfiles}"
-FILES_nscd = "${sbindir}/nscd* ${sysconfdir}/nscd* ${sysconfdir}/init.d/nscd*"
+FILES_nscd${PKGSUFFIX} = "${sbindir}/nscd* ${sysconfdir}/nscd* ${sysconfdir}/init.d/nscd*"
FILES_glibc-utils = "${bindir}/* ${sbindir}/*"
FILES_glibc-gconv = "${libdir}/gconv/*"
-FILES_catchsegv = "${bindir}/catchsegv"
-RDEPENDS_catchsegv = "libsegfault"
+FILES_catchsegv${PKGSUFFIX} = "${bindir}/catchsegv"
+RDEPENDS_catchsegv${PKGSUFFIX} = "libsegfault"
FILES_glibc-pcprofile = "${base_libdir}/libpcprofile.so"
FILES_glibc-thread-db = "${base_libdir}/libthread_db*"
-FILES_localedef = "${bindir}/localedef"
+FILES_localedef${PKGSUFFIX} = "${bindir}/localedef"
RPROVIDES_glibc-dev += "libc-dev"
DESCRIPTION_sln = "glibc: create symbolic links between files"