<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>713</bug_id>
          
          <creation_ts>2011-02-12 20:53:33 +0000</creation_ts>
          <short_desc>poky-image-sato do_rootfs fails when GLIBC_GENERATE_LOCALES is missing en_GB.UTF-8</short_desc>
          <delta_ts>2011-02-20 21:34:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Garman">scott.a.garman</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11723</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-02-12 20:53:33 +0000</bug_when>
    <thetext>Steps to reproduce:

1. Uncomment GLIBC_GENERATE_LOCALES in your local.conf and remove en_GB.UTF-8:

GLIBC_GENERATE_LOCALES = &quot;en_US.UTF-8&quot;

2. bitbake poky-image-sato

Result: do_rootfs fails at the end of the build with the following:

+ &apos;[&apos; &apos;!&apos; -z &apos;locale-base-en-us locale-base-en-gb&apos; &apos;]&apos;
+ for i in &apos;${package_lingusa}&apos;
+ opkg-cl -f /raid0/sources/poky/build/tmp/work/qemux86-poky-linux/poky-image-sato-1.0-r0/opkg.conf -o /raid0/sources/poky/build/tmp/work/qemux86-poky-linux/poky-image-sato-1.0-r0/rootfs --force-overwrite install locale-base-en-us
Installing locale-base-en-us (2.12-r13) to root...
Downloading file:/raid0/sources/poky/build/tmp/deploy/ipk/i586/locale-base-en-us_2.12-r13_i586.ipk.
Configuring locale-base-en-us.
+ for i in &apos;${package_lingusa}&apos;
+ opkg-cl -f /raid0/sources/poky/build/tmp/work/qemux86-poky-linux/poky-image-sato-1.0-r0/opkg.conf -o /raid0/sources/poky/build/tmp/work/qemux86-poky-linux/poky-image-sato-1.0-r0/rootfs --force-overwrite install locale-base-en-gb
Unknown package &apos;locale-base-en-gb&apos;.
Collected errors:
 * opkg_install_cmd: Cannot install package locale-base-en-gb.

So it appears that list of locales to generate for the image is not honoring GLIBC_GENERATE_LOCALES.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11724</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-02-13 22:29:43 +0000</bug_when>
    <thetext>Initial Evaluation seems to indicate that this is either coming in from image.bbclass or from the poky-eglibc.ing which lists locale-base-en-gb as a dependency for libc, further investigating is happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11731</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-02-14 04:50:19 +0000</bug_when>
    <thetext>To quote local.conf.sample:

# Set GLIBC_GENERATE_LOCALES to the locales you wish to generate should you not
# wish to perform the time-consuming step of generating all LIBC locales.
# NOTE: If removing en_US.UTF-8 you will also need to uncomment, and set
# appropriate values for IMAGE_LINGUAS and LIMIT_BUILT_LOCALES
# WARNING: this may break localisation!
#GLIBC_GENERATE_LOCALES = &quot;en_GB.UTF-8 en_US.UTF-8&quot;
# See message above as to whether setting these is required
#IMAGE_LINGUAS ?= &quot;en-gb&quot;
#LIMIT_BUILT_LOCALES ?= &quot;POSIX en_GB&quot;

and its implied that if you change GLIBC_GENERATE_LOCALES, you need to change IMAGE_LINGUAS too to match.

I think we need to improve the documentation here and make the variables consistent but the failure is expected given the configuration you setup.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11890</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-02-20 21:34:39 +0000</bug_when>
    <thetext>Per Richard comment in(In reply to comment #2)

&gt; I think we need to improve the documentation here and make the variables
&gt; consistent but the failure is expected given the configuration you setup.

I am closing this as not a  bug, please verify you can get the correct behaviour by changing IMAGE_LINGUS as described.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>