Bug 1212

Summary: eglibc can't build with only a subset of DISTRO_FEATURES_LIBC
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Gary Thomas <gary>
Component: meta-yoctoAssignee: Kai Kang <kai.kang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: liang.li2, liangliang.wang, poky.bs.watcher, poky.watcher, sgw, Xiaofeng.yan, yi.zhao
Version: unspecified   
Target Milestone: 1.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard: will be fixed by Aug24/2011
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Gary Thomas 2011-07-05 08:50:32 UTC
The new configuration variable DISTRO_FEATURES_LIBC lists a number of features which are designed to control what pieces of eglibc package get built and used.  Building often fails if only a subset of these features is defined.

To see the failures, try removing 'libc-locales libc-locale-code'

If DISTRO_FEATURES_LIBC is an empty list, the eglibc build fails with
this error:
cp: cannot stat `/home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/image/usr/bin/localedef': No such file or directory
ERROR: Function 'do_install_locale' failed (see /home/local/p60_latest/tmp/work/armv7a-amltd-linux-gnueabi/eglibc-2.13-r3+svnr14157/temp/log.do_install_locale.13725 for further information)
Comment 1 Kai Kang 2011-08-21 18:51:08 UTC
DISTRO_FEATURES_LIBC should not be an empty list, because some options are needed by other packages that can't be droped, such as libc-libm is needed by gcc-runtime, libc-crypt is needed by busybox, and libc-posix-regexp is required by perf, etc.
Please refer to
https://wiki.yoctoproject.org/wiki/Minimal_Image

And build failed with subset of the features is fixed by commit:
ddc01beb5d44940812dcef55b2b0368339620153
Comment 2 Yi Zhao 2011-09-07 02:01:35 UTC
Verified with latest master branch.
git info: dbff56238e083d0110eb13c1f5a07716340fdfe4

Try removing 'libc-locales libc-locale-code', the image can be built. 
According to the https://wiki.yoctoproject.org/wiki/Minimal_Image, DISTRO_FEATURES_LIBC should not be an empty.