Bug 1209

Summary: eglibc 2.13 r5: cannot stat localedef when ENABLE_BINARY_LOCALE_GENERATION = "0"
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Denis Carikli <GNUtoo>
Component: coreAssignee: Dongxiao Xu <dongxiao.xu>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: Martin.Jansa, meta.mr.watcher, meta.watcher
Version: unspecified   
Target Milestone: 1.1 M3   
Hardware: Other   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
log.do_install_locale.30573 none

Description Denis Carikli 2011-07-01 15:58:36 UTC
hi,
when ENABLE_BINARY_LOCALE_GENERATION is not set in local.conf(so I guess it's automatically set to 0) eglibc installation in do_install_locale fails with:
| mv: cannot stat `/home/gnutoo/port4/embedded/oe-core/oetmps/shr/work/armv4t-oe-linux-gnueabi/eglibc-2.13-r5+svnr14157/image/usr/bin/localedef': No such file or directory
| ERROR: Function 'do_install_locale' failed (see /home/gnutoo/port4/embedded/oe-core/oetmps/shr/work/armv4t-oe-linux-gnueabi/eglibc-2.13-r5+svnr14157/temp/log.do_install_locale.19888 for further information)

I guess the log is not necessary and that that part is sufficent.

Denis.
Comment 1 Denis Carikli 2011-07-01 16:01:20 UTC
Here is the configuration used: SHR distribution with shr-lite-image and om-gta02 machine
And here are the layers used:
cat bblayers.conf 
# LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
LCONF_VERSION = "4"

BBFILES ?= ""

TOPDIR = "${HOME}/port4/embedded/oe-core/repos"

# Add your overlay location to BBLAYERS
# Make sure to have a conf/layers.conf in there
BBLAYERS = " \
  ${TOPDIR}/meta-smartphone/meta-shr \
  ${TOPDIR}/meta-smartphone/meta-fso \
  ${TOPDIR}/meta-smartphone/meta-openmoko \
  ${TOPDIR}/meta-smartphone/meta-nokia \
  ${TOPDIR}/meta-smartphone/meta-htc \
  ${TOPDIR}/meta-smartphone/meta-palm \
  \
  ${TOPDIR}/meta-openembedded/meta-oe \
  ${TOPDIR}/meta-openembedded/meta-efl \
  ${TOPDIR}/meta-openembedded/meta-gnome \
  ${TOPDIR}/meta-openembedded/meta-gpe \
  \
  ${TOPDIR}/openembedded-core/meta \
"

Denis.
Comment 2 Denis Carikli 2011-07-01 16:08:46 UTC
Created attachment 181 [details]
log.do_install_locale.30573

it also fails with ENABLE_BINARY_LOCALE_GENERATION="1", log attached.
Comment 3 Martin Jansa 2011-07-20 11:19:11 UTC
It was because meta-smartphone with meta-shr layer wasn't updated with DISTRO_FEATURES_LIBC, fixed now

http://git.shr-project.org/git/?p=meta-smartphone.git;a=commit;h=36419769b53eb2895d3c39b21384c07dcbda8bb7

I'll send another patch to prevent do_install_locale failing in such cases to oe-core list