aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/eglibc/eglibc-package.inc
AgeCommit message (Collapse)Author
2012-09-25Add and use 'localedir' variableChristopher Larson
This avoids the hardcoding of ${libdir}/locale which is all over the place, and will facilitate use of ${exec_prefix}/lib/locale instead of ${libdir}/locale. This doesn't actually change any output at this time. Verified this with buildhistory against the packages produced from core-image-base. Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-09-12eglibc: Restore ${PN} to before ${PN}-dev in PACKAGESPhil Blundell
Commit 13544fbc6217fee1731a6da1e2cf94901a500842 changed the ordering of PACKAGES so that ${PN}-dev came before ${PN}. However, this caused the FILES matching to go wrong if ${libdir} == ${base_libdir}. Fix this by moving ${PN} ahead of ${PN}-dev once again. Signed-off-by: Phil Blundell <pb@pbcl.net> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-09-02eglibc: remove duplicate rquota filesSaul Wold
The /usr/include/rpcsvc/rquota* files are provided by both eglibc and the quota package. Quota's version is newer and a superset of eglibc's [YOCTO #238] Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-08-31nativesdk: Switch to using nativesdk as a prefix, not a suffixRichard Purdie
As discussed on the mailing lists, using a suffix to package names is hard and has lead to many recipes having to do PKGSUFFIX games. Its looking extremely hard to scale nativesdk much further without hacking many recipes. By comparison, using a prefix like multilib does works much better and doesn't involve "hacking" as many recipes. This change converts nativesdk to use a prefix using the existing multilib infrastructure. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-19eglibc-package.inc: Remove duplicate locale installRichard Purdie
Both eglibc-locale and eglibc were installing locale files into the sysroot. Whilst this is in general harmless, its a waste of diskspace/time so this moves the responsibility to the eglibc-locale package. No PR bump this this is really a cleanup and doesn't affect build output, the sstate size reduction will happen next time it is rebuilt. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-07-18bitbake.conf: Define USRBINPATH globally instead of individuallyRichard Purdie
Many recipes are now having to define PERLPATH and PYTHONPATH variables. Creating USRBINPATH in bitbake.conf means we can remove all these lines from the many recipes now needing this and simplify the code changes needed in each case, reducing the chance of errors being introduced. Also fixup glib python binary location issue and fix function indentation. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-06-19eglibc-package: Update PACKAGES and files based on new orderingSaul Wold
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-05-24eglibc: package mtrace separatelyNitin A Kamble
add libc-mtrace as dependency for task-core-tools-debug now eglibc-mtrace gets included in an sdk image and not in a non-sdk image. This does not affect builds with uclibc. This fixes bug: [YOCTO# 2374] Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2012-05-01eglibc-package: remove /varSaul Wold
This is a newly installed directory and Makefile that is not needed in an embedded setup It fixes: ERROR: For recipe eglibc, the following files/directories were installed but not shipped in any package: ERROR: /var ERROR: /var/db ERROR: /var/db/Makefile Signed-off-by: Saul Wold <sgw@linux.intel.com>
2012-04-14eglibc: fix builds on fedora 17 alphaNitin A Kamble
Generally distros keep perl at /sur/bin/perl Fedora 17 alpha also has /bin/perl this causes eglibc build on such distros to put perl interpreter path in the perl scripts as /bin/perl But we set perl location for target as /usr/bin/perl This mismatch of perl path causes failure of rootfs image creation like this: | error: Failed dependencies: | /bin/perl is needed by eglibc-utils-2.13-r23+svnr15508.i586 NOTE: package core-image-sato-1.0-r0: task do_rootfs: Failed ERROR: Task 8 (/home/nitin/prj/poky.git/meta/recipes-sato/images/core-image-sato.bb, do_rootfs) failed with exit code '1' This Fixes bug : [YOCTO #2286] RP: Updated to better account for -nativesdk Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-03-05meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True)Richard Purdie
Using "1" with getVar is bad coding style and "True" is preferred. This patch is a sed over the meta directory of the form: sed \ -e 's:\(\.getVar([^,()]*, \)1 *):\1True):g' \ -e 's:\(\.getVarFlag([^,()]*, [^,()]*, \)1 *):\1True):g' \ -i `grep -ril getVar *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-24eglibc: Fix package warningRichard Purdie
WARNING: For recipe eglibc, the following files/directories were installed but not shipped in any package: WARNING: /usr/lib/locale Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-02-21Add sanity checks for eglibc localeKen Werner
Add sanity checks that test for the existance of folders. This allows to use an external binary toolchain that doesn't have localization support.
2012-02-03eglibc-package.inc: don't include debug files in -picChristopher Larson
Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2012-01-24eglibc: refactor packages for staticdevSaul Wold
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-11-10Convert to use direct access to the data store (instead of bb.data.*Var*())Richard Purdie
This is the result of running the following over the metadata: sed \ -e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \ -e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -i `grep -ril bb.data *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-22Revert "eglibc: fix packaging of some of nativesdk packages"Richard Purdie
This reverts commit 974cdb88680359aac5aefd11b84c4a374ab3a753. See the mailing list for details, this broke things for too many people such as where PKGSUFFIX is used in PREFERRED_PROVIDER. odified: meta/recipes-core/eglibc/eglibc-locale.inc
2011-09-22eglibc: fix packaging of some of nativesdk packagesDmitry Eremin-Solenikov
eglibc.inc contains packaging rules that depend on PKGSUFFIX expansion. However that variable wasn't expanded properly in some case. E.g. PACKAGES = " ... nscd${PKGSUFFIX} ..." FILES_nscd${PKGSUFFIX} = "${sbindir}/nscd*" would be expanded to PACKAGES = " ... nscd-nativesdk ..." FILES_nscd = "${sbindir}/nscd*" Thus leading to empty -nativesdk packages and missing files. To overcome that use python code blob to properly define PKGSUFFIX variable. Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-09-21Add a run-time dependency that eglibc support GNU_HASHMark Hatle
RPM checks to see if binaries require GNU_HASH, if they do it adds an automatic dependency of "rtld(GNU_HASH)". We need to satisfy this dependency, and we do it by providing rtld(GNU_HASH) in the package(s) that provide a runtime-linker. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-08-30eglibc-locale.inc: Add eglibc-binaries, eglibc-localedatas, eglibc-gconvs ↵Xiaofeng Yan
and eglibc-charmps to variable PACKAGE There are no locales resources in an lsb image because the locale resources were splitted from eglibc-package.inc \ and putted into a new file "eglibc-locale.inc". So the above variables lost their function in eglibc-package.inc and caused no locale resources in an lsb image. The purpose of moving the above variables from eglibc-package.inc to \ eglibc-locale.inc is to make the above variables to take effect. eglibc-binaries include packages "eglibc-binary-*" eglibc-localedatas include packages "eglibc-localedata-*" eglibc-gconvs include packages "eglibc-gconv-*" eglibc-charmaps include packages "eglibc-charmap-*" Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-26eglibc: fix gconv packaging after 5486cac29db6e67051fff7637a0abc9aeab661e5Martin Jansa
* gconv is directory so test -f was always false as reported by Phil Blundell in http://lists.linuxtogo.org/pipermail/openembedded-core/2011-August/008973.html * -e used also for localedef which is file, just to be more consistent Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-08-04eglibc-package.inc: Fixed error in referencing PKGSUFFIXLianhao Lu
[YOCTO #1329] Added the missing $ when referencing PKGSUFFIX in FILES_* variables set. [RP: Added PR bumps] Signed-off-by: Lianhao Lu <lianhao.lu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-08-02eglibc: Add missing ${PN} and ${PKGSUFFIX} usagesRichard Purdie
This fixes warning messages such as: The providers found were: ['virtual:nativesdk:eglibc_2.13.bb', 'eglibc_2.13.bb'] The PREFERRED_PROVIDER entries resulting in this conflict were: ['PREFERRED_PROVIDER_virtual/libc-nativesdk = eglibc-nativesdk', 'PREFERRED_PROVIDER_virtual/libc = eglibc'] NOTE: multiple providers are available for runtime glibc-utils (eglibc, eglibc-nativesdk, external-csl-toolchain, external-poky-toolchain) NOTE: consider defining a PREFERRED_PROVIDER entry to match glibc-utils This highlights how ugly adding to PN is when using BBCLASSEXTEND. We need to do this to eglibc so the nativesdk class continues to work correctly for now and ensure consistency in how the various eglibc packages are generated. Longer term, if we switch nativesdk to use the multilib approach and MLPREFIX, we can remove all the PKGSUFFIX mess. I'd rather not get into changing nativesdk right at this time though given all the other changes that are going on. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-27eglibc: fix for multilib RPROVIDES issueYu Ke
in eglibc-package.inc, the "PACKAGES" variable use the ${PN} reference, while RPROVIDES does not use ${PN}. This will lead multilib.bbclass not mapping its RPROVIDES, and cause "NO RPROVIDER: lib64-glibc-utils" error. This patch unify the recipe to fix this issue Signed-off-by: Yu Ke <ke.yu@intel.com>
2011-07-27eglibc_2.13: Resolve multilib header conflictsMark Hatle
Due to mismatches between various header definitions in i386 and x86_64 we need to overwrite the i386 versions of the headers with their x86_64 equivalents. This can not be done for the syscall.h as it's dynamically generated, so use the header conflict resolution helper for that. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2011-07-21eglibc-package: don't fail without localedef/gconvMartin Jansa
* in some cases we don't have localedef/gconv built ie when DISTRO_FEATURES lacks one of libc-charsets, libc-locales, libc-locale-code then is better ignore localedef/gconv instead of do_install_locale failing like in this bugreport: http://bugzilla.yoctoproject.org/show_bug.cgi?id=1209 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2011-07-14eglibc: fix packaging of thread_dbPhil Blundell
Similarly to libnss*, if ${libdir} and ${base_libdir} were the same path then libthread_db would land in ${PN}-dev rather than the intended place. As before, fix this by moving eglibc-thread-db earlier in PACKAGES and adjusting its FILES to not capture the .so symlink. Bump PR for both 2.12 and 2.13. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-13eglibc: fix installed but not packaged filesNitin A Kamble
Fixes these package QA warnings: WARNING: For recipe eglibc, the following files were installed but not shipped in any package: WARNING: /etc/localtime Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2011-07-13eglibc: ensure that NSS libs go into the right package when ${base_libdir} ↵Phil Blundell
and ${libdir} are the same Previously, libnss_hesiod et al. could get swallowed by the wildcarded glob in ${PN}-dev. Fix it by moving eglibc-extra-nss earlier in the PACKAGES and adjusting its FILES to ensure that the devel symlinks don't get caught. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-07-08eglibc: add RDEPENDS for bash on eglibc-utilsSaul Wold
[YOCTO #1214] The eglibc-utils contains 2 scripts (tzselect and xtrace) that use bash, so add an RDEPENDS to eglibc-utils. This also removes libsotruss as it's currently not built, it was not previously depended on because it was mis-spelled as "EDEPENDS" Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-07-08eglibc: avoid copying ${libdir} twice if it's the same as ${base_libdir}Phil Blundell
Otherwise the following "mv ${libdir}/gconv" fails because the destination has already been created. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-30eglibc-package.bbclass: Ensure localedef is only packaged in one locationRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-30eglibc-package.bbclass: Fix unintended code changesRichard Purdie
Commit 477ede7472db0bacd5daacb96e97f849d1be84ee accidentally reverted some code changes it shouldn't have done leading to continued eglibc packaging issues. This patch corrects that damage. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-29libc locale split: fix some remaining problemsKoen Kooi
* libc-{common,package}.bbclass: fix shlib renaming for the C library Without this you'd end up with eglibc_2.12.ipk instead of libc6_2.12.ipk as before * eglibc-locale: don't make versions go backwards after split from eglibc eglibc was way beyond PR = "r1" at the time of the split, so increase PR to make package upgrades work [RP: Fixup PR merge conflict] Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-29glibc/eglibc: Clean up package warnings and potentially broken data in -dev ↵Richard Purdie
package These changes ensure files packaged in the -locale package aren't included in the main do_install and also ensures the staging directory used for the -locale package doesn't end up in the -dev package. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-28eglibc: Fix version 2.12 after locale changesRichard Purdie
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-28libc-locale: split locale handling from libc recipe.Dongxiao Xu
*libc's do_package will cost a lot of time due to the locale handing, which may delay the other recipe's do_package task and affect the build performance. This commit moves locale handling into a separate recipe *libc-locale. [RP: Add fixup with recent eglibc commit conflict for FILES_pn-dbg and PACKAGES] Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-06-22eglibc-package.inc: Package newly added sotruss and supporting librariesKhem Raj
2.14 has a new utility which can trace through PLTs of shared libraries We package the library separately and the script is already packaged in eglibc-utils so we create a RDEPEND so that the library is pulled in if someone isntalls eglibc-utils Signed-off-by: Khem Raj <raj.khem@gmail.com>
2011-06-02eglibc: fix mispackaging of libcidnPhil Blundell
The glob for libc_baselibs was too permissive, causing some of the libcidn symlinks to be placed in ${PN} rather than the intended subpackage. Worse, the .so itself was actually landing in ${PN}-dev, so the net effect was to make libc6-dev a dependency of libc6. Bump PRs for both 2.12 and 2.13 as a result. Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-17eglibc: backport fix from oe master to stop libc.so leaking into ${PN}Phil Blundell
Signed-off-by: Phil Blundell <philb@gnu.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-04-12eglibc-package.inc: Add eglibc-binaries, eglibc-localedatas, eglibc-gconvs ↵Xiaofeng Yan
and eglibc-charmps to variable PACKAGE The purpose of adding the above variables it to make it easier to install them into a lsb-image. By having 4 collections of packages they will not fill the task-poky-lsb.bb file. eglibc-binaries include packages "eglibc-binary-*" eglibc-localedatas include packages "eglibc-localedata-*" eglibc-gconvs include packages "eglibc-gconv-*" eglibc-charmaps include packages "eglibc-charmap-*" [sgw: edited summary and description] Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
2011-01-20eglibc-package.inc: Stop eglibc-nativesdk providing eglib-thread-db and ↵Richard Purdie
locale-base-* Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2010-12-23eglibc: Only package ld.so.conf, not /etc/rpc which then conflicts with netbaseRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
2010-11-10eglibc: install the missing /etc/ld.so.conf into targetDexuan Cui
${sysconfdir} should be added into FILES_${PN}. Fixes [BUGID #511] Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2010-10-11recipes-core: Cleanup package descriptions and summariesMark Hatle
[BUGID #281] Evaluate and update each package in recipes-core to ensure they have a consistent summary and description. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
2010-10-07libc-package.bbclass, eglibc, glibc: enable locales generation using ↵Nitin A Kamble
cross-localedef Along with qemu this provides another option to generate locales for [e]glibc. The new method is to use cross-localedef with appropriate arch specific parameters. The cross-localedef method is found to be 15 times faster than qemu's emnualted method. LOCALE_GENERATION_WITH_CROSS-LOCALEDEF : This is new config variable introduced to selet qemu or cross-localedef method for locale generation. Thanks to Mark Hatle from Windriver for providing the rich information for cross locale generation. Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
2010-09-21[e]glibc-package.inc: fix multiple providers for glibc-gconv-iso8859-1Dexuan Cui
This commit fixes the following error while doing this: bitbake poky-image-sato ERROR: Conflicting PREFERRED_PROVIDER entries were found which resulted in an attempt to select multiple providers (['virtual:nativesdk:/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb', '/distro/dcui/dexuan/meta/recipes-core/eglibc/eglibc_2.12.bb']) for runtime dependency glibc-gconv-iso8859-1 The entries resulting in this conflict were: ['PREFERRED_PROVIDER_virtual/libc-nativesdk = eglibc-nativesdk', 'PREFERRED_PROVIDER_virtual/libc = eglibc'] NOTE: multiple providers are available for runtime glibc-gconv-iso8859-1 (eglibc, eglibc-nativesdk, glibc-nativesdk, glibc, external-csl-toolchain, external-poky-toolchain) NOTE: consider defining a PREFERRED_PROVIDER entry to match glibc-gconv-iso8859-1 And bumped PR. This partly fixes [BUGID #329] Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
2010-09-10[e]glibc-package.inc: fix providers for libsegfault and otherNitin A Kamble
[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>
2010-09-03glibc-package.inc: disable build-time locale generation for nativesdkKevin Tian
The idea of build-time locale generation is documented in glibc-package.inc: Binary locales are generated at build time if ENABLE_BINARY_LOCALE_GENERATION is set. The idea is to avoid running localedef on the target (at first boot) to decrease initial boot time and avoid localedef being killed by the OOM killer which used to effectively break i18n on machines with < 128MB RAM. However it doesn't make sense to do same thing for glibc-nativesdk, as the build system is powerful. More importantly is that ideally host_arch running sdk may even be out of the support list of target_arch by qemu-native. Regarding to above rationale, this commit disables build time locale generation to avoid following error when asking qemu to run localdef: NOTE: /opt/poky/sysroots/i586-pokysdk-linux/lib/ld-linux.so.2: No such file or directory nativesdk binaris have opt path hardcoded to avoid mess with host bits, which is another reason that build time locale generation is not feasible here. This fixes [BUGID #264] also add 'nativesdk' to eglibc per RP's suggestion Signed-off-by: Kevin Tian <kevin.tian@intel.com>
2010-09-03eglibc: Set BBCLASSEXTEND to include nativesdkRichard Purdie
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>